Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#4.0 PDF itextsharp
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 3:00am
Comments
ryanb31 at 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 at 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 at 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
good
Please Sign up or sign in to vote.

Solution 1

Try Below useful Link:-
 
Manipulate (Add/Edit) PDF using .NET[^]
  Permalink  

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

  Print Answers RSS
0 Afzaal Ahmad Zeeshan 259
1 Maciej Los 240
2 BillWoodruff 240
3 OriginalGriff 220
4 Sergey Alexandrovich Kryukov 195
0 OriginalGriff 6,419
1 Sergey Alexandrovich Kryukov 6,008
2 DamithSL 5,183
3 Manas Bhardwaj 4,673
4 Maciej Los 4,070


Advertise | Privacy | Mobile
Web04 | 2.8.1411019.1 | Last Updated 25 Mar 2013
Copyright © CodeProject, 1999-2014
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