Hello,
I cannot replace text from documents that are edited with Adobe Acrobat Pro.
I Use PdfTextReplacer to edit the document, in order to keep polices for edited texts.
For each edit only the 3 firsts characters are replaced, and there are wrong characters after that. Here is an example for the effect it does.
BioLoire44400-x : the original file saved with Acrobat
BioLoire44400-modele : the result file
We can see lot of 'square' characters in the result file, as if the replacement text was corrupted.
I don't have the issue with a document not saved from Acrobat Pro.
I try different ways of saving the document from Acrobat Pro
- pdf - different compatibility versions
- police embedded
- all embedded
- pdf-x
The project is available from the post pdfdocument-usedfonts-exception-on-my-testfile-pdf-t10390.html
Cordially,
Sammy