pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Prasun K. Ghosh" <Prasun.Gho...@mastek.com>
Subject redaction in pdfBox
Date Mon, 16 Jun 2014 08:48:23 GMT
Hi all,

I want to know if anybody here has successfully tried out redaction for a pdf file content
and then saving it as a new file.
I have a third party api that is providing me with the strings to be replaced.
All I need to do is search those string in my PDF file and replace their characters by *

I managed to do so with tokens.
However, I am stuck with an issue where the part of the string to be replaced is present in
line 1 and the other part is present in line 2.
Example:- address.
Here the logic of string replacement fails as the content to be replaced will not be present
in a single line.

Kindly guide me through.

Prasun K. Ghosh
Software Engineer -
Technology Engg & Consulting Group
Mastek Ltd | MNDC, MBP Mahape, Navi Mumbai, India
| Mobile: +91-9819270934 |  www.mastek.com<http://www.mastek.com/>

In the US, we're called MAJESCOMASTEK

Opinions expressed in this e-mail are those of the individual and not that of Mastek Limited,
unless specifically indicated to that effect. Mastek Limited does not accept any responsibility
or liability for it. This e-mail and attachments (if any) transmitted with it are confidential
and/or privileged and solely for the use of the intended person or entity to which it is addressed.
Any review, re-transmission, dissemination or other use of or taking of any action in reliance
upon this information by persons or entities other than the intended recipient is prohibited.
This e-mail and its attachments have been scanned for the presence of computer viruses. It
is the responsibility of the recipient to run the virus check on e-mails and attachments before
opening them. If you have received this e-mail in error, kindly delete this e-mail from desktop
and server.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message