Click here to Skip to main content
15,903,175 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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
Comments
ZurdoDev 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 ??
ZurdoDev 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.
Member 12409180 13-Sep-17 7:10am    
I want to do same in my application i.e. Edit PDF ,please mail me the sample of your code if possible

1 solution

Try Below useful Link:-

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

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900