Is there an API in C # or .net for editing pdf documents?

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.

thanks
NRK

+7
api pdf pdf-generation
source share
2 answers

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.

+7
source share

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.

+1
source share

All Articles