Is there an API in C # or .net for editing pdf documents?How do I need to get a specific text and replace it with my own text.
thanksNRK
This is not possible (in a clean and reliable way), from the iTextSharp tutorial :
You cannot βparseβ an existing PDF file using iText, you can only βreadβ its page onto a page. What does it mean? The pdf format is just a canvas, where text and graphics are placed without any structure information. As such, there are no "iText objects" in the PDF file. There will probably be a series of βlinesβ on each page, but you cannot restore the phrase or using these lines. [...] You cannot edit an existing PDF document by saying: for example, replace the word Louagie by Lowagie. To achieve this, you would need to know the exact location of the word Louagie, draw a white rectangle above it and draw the word Lowagie on this white rectangle. Please avoid such a βpatchβ working. Make your PDF file editing with Adobe.
There are several third-party libraries (for example, Aspose (a paid tool)), but in fact there is no native API,
However, PDF is an open standard , so you can get how the file is structured and analyze it yourself.