You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Jürgen Debus (Jira)" <ji...@apache.org> on 2020/10/17 07:33:00 UTC
[jira] [Created] (PDFBOX-4989) How to change and replace text in
pdf
Jürgen Debus created PDFBOX-4989:
------------------------------------
Summary: How to change and replace text in pdf
Key: PDFBOX-4989
URL: https://issues.apache.org/jira/browse/PDFBOX-4989
Project: PDFBox
Issue Type: Wish
Environment: windows 10
Reporter: Jürgen Debus
Hi @all,
First: I'm not sure if this is the right forum.
If not, can you please tell me where to ask the question.
We've used the text search and replace approach of Ulf Dittmer here:
[https://www.ulfdittmer.com/view?PdfboxReplace]
This worked fine.
But because of changes in the PDF generating we get a crypted text that we can't replace:
Example:
Old: (sont liés. En cas de questions, consultez impérativement votre conseiller fiscal.) Tj
New: (6"<.%S\)J:+d";,MO/$:;L+,+%:"L.:/+"<.%S+;JJ+/"I;S<$J3) Tj
When using PDFTextStripper to read the text it is „translated" in the right way.
What can we do to „decrypt" the text and save a new one?
Best regards,
Jürgen
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org