8

I have a requirement to open an existing pdf file and need to add some comments or edit existing content and save the same file.

I spent so many hours on this and most people referred itextsharp or pdf clown but unfortunately didn't get any samples or how to use itextsharp or pdf clown to do the requirement.

Thanks in advance

Bruno Lowagie
  • 75,994
  • 9
  • 109
  • 165
user2218549
  • 155
  • 2
  • 2
  • 7
  • http://www.codeproject.com/Articles/277065/Creating-PDF-documents-with-iTextSharp – default Jun 12 '13 at 10:52
  • http://simpledotnetsolutions.wordpress.com/2012/04/08/itextsharp-few-c-examples/ – default Jun 12 '13 at 10:53
  • http://stackoverflow.com/questions/4599897/where-can-i-find-good-examples-tutorials-for-itext-using-net – default Jun 12 '13 at 10:53
  • 1
    I found these after googling "itextsharp example". May I ask where you tried to find sample code for itextsharp? – default Jun 12 '13 at 10:54
  • Mikedotnetting website for me has a lot of examples as starter http://www.mikesdotnetting.com/Article/80/Create-PDFs-in-ASP.NET-getting-started-with-iTextSharp – Edper Jun 12 '13 at 10:55
  • Editing PDF content, unless specified to only apply to special cases, can prove extremely difficult. Be sure to have very clear requirements and can expect sane pdfs as input. – mkl Jun 12 '13 at 11:38
  • My homegrown solution for patching the text inside PDF: https://github.com/astef/PatchPdfText – astef Dec 17 '20 at 15:18

1 Answers1

3

Again mikesdotnetting website is a good starter when i made one and it works.

Here's for adding text with chunks, phrases and paragraph example

And here's one for editing an already existing pdf file here.

Edper
  • 9,144
  • 1
  • 27
  • 46
  • I would like to add though @user2218549 that you need to use a template of the pdf in order to replace the content and it's doable for free. – Edper Jun 13 '13 at 05:57