Replace the text from pdf saving the structure of the document #2652
Unanswered
NikitaIVll
asked this question in
Q&A
Replies: 1 comment
-
replacing text is very tricky : pdf is not a text but e-printed paper. The best that can be done would be to prepare pages using some other tools (ghostscript, print to pdf, fpdf2,...) and erase to original page content with remove_text() and remove_image() and/or with update_contents(None) then merge the new content in |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am attempting to use pypdf to translate PDF files while preserving the formatting and structure of the document. Could you please provide an example of how I can extract text and replace it with the translated text?
Beta Was this translation helpful? Give feedback.
All reactions