Programmatically replace text to PDF

I have PDF files with text to replace. More specifically, the text should be translated and replaced by the translated version. It is important that the rest of the PDF structure remains intact. Note that text is available in PDF files, and methods like OCr are not needed. Also, it would be nice to save the font and other text attributes.

Which libraries would you recommend extracting text into an editable format (for example, CSV) and reinserting new text?

+4
source share
1 answer

Assuming you replace the text with a different language, in most cases you will have to choose a different font, and the choice of font is non-trivial. I used Foxit libraries to successfully modify text or create PDF files.

+1
source

All Articles