0

I want to replace a specific word in existing PDF file using iTextSharp.I did a lot of research but couldn't find proper way. Can somebody share some sample code to do this?

  • You are confusing the Portable Document Format (PDF) with a Word processing format. Please read the intro of [Chapter 6 of my book](https://manning-content.s3.amazonaws.com/download/3/3c9ca46-76da-4de2-8972-b82efbe0bf88/samplechapter6.pdf) to understand why your assumption that you can replace a specific word in an existing PDF *using any software* is wrong. – Bruno Lowagie Sep 22 '15 at 08:12
  • 2
    Note that this is a duplicate of [Editing PDF text using Java and Itext](http://stackoverflow.com/questions/24679505/editing-pdf-text-using-java-and-itext) – Bruno Lowagie Sep 22 '15 at 08:14
  • I want to use iTextSharp dll (progamitacally) to replace the string in my PDF not by using any software. – avinash singh Sep 22 '15 at 09:36
  • Er... the iTextSharp DLL is software. I am telling you that you are trying to do something that is **not done** in general. – Bruno Lowagie Sep 22 '15 at 10:05
  • 1
    Sorry but I also have to agree with Bruno. The reason that you couldn't find a "proper" was is that it doesn't exist. [This answer](http://stackoverflow.com/a/29602320/231316) also does a great job of going over the very top level things – Chris Haas Sep 22 '15 at 13:21
  • possible duplicate of [iTextSharp Replace Text in existing PDF without loosing formation](http://stackoverflow.com/questions/29600750/itextsharp-replace-text-in-existing-pdf-without-loosing-formation) – mkl Sep 22 '15 at 15:13

0 Answers0