Click here to Skip to main content
13,005,198 members (60,564 online)
Rate this:
Please Sign up or sign in to vote.
I want to create a desktop application, whose functioning is as follows :
1. user opens a pdf file in the form
2. then, it gets opened up on the UI. After that, user performs certain editing using mouse
like drawing a rectangle, crossing a certain region (similar to paint)
3. Then, after doing all the editing, he saves that file into another pdf (edited one)

I am doing it in c#. Can you suggest, how to do it ?
Posted 25-Mar-13 2:00am
ryanb31 25-Mar-13 8:04am
I believe iTextSharp is a dll that will allow you to do that, although I have never used it.
amitt0488 25-Mar-13 8:14am
Yes, you are right.
The approach i am following is :
1) Create a panel on the UI and add the pictureboxes to it dynamically based on number of pages in the pdf. I will do this using iTextSharp
2) Then, i will add every page of pdf as an image into those picture boxes
3) After this, user will perform editing on those images
4) After all the editing is done, then I will convert all those images back to PDF

This looks feasible to me (any other suggestion is most welcome). But, the main issue is that Is it posible to draw shapes on the Image in the picture boxes ??
ryanb31 25-Mar-13 8:18am
I haven't done it before but I believe you can use the System.Drawing namespace to allow drawing on the controls. I believe WPF may also be better suited for this.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Try Below useful Link:-

Manipulate (Add/Edit) PDF using .NET[^]

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170627.1 | Last Updated 25 Mar 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100