What you are trying to accomplish is called "Redaction" and it is a
VERY complex operation with PDF, since you can't just draw over - you
need to actually remove things. As such, iText is NOT the tool for
the job.
Try Acrobat 8 - it has excellent redaction tools.
If you need a server-side solution, Redax from Appligent (http://
www.appligent.com)
Leonard
On Sep 5, 2007, at 2:54 PM, Bailey, Jeffrey wrote:
> I'm trying to hide or remove some text information in the margins of a
> PDF that we use before publication. In the published PDF we don't
> want
> the user to see this text. I can hide the information by using fill
> (),
> but the user can still select the text underneath. Is there a way to
> prevent that? Here's my code:
>
> PdfReader reader = new PdfReader(INPUT_PDF);
> int n = reader.getNumberOfPages();
> PdfStamper stamp = new PdfStamper(reader,
>
> new FileOutputStream(coverFileName));
> int i = 0;
>
> PdfContentByte over;
> while (i < n) {
> i++;
> over = stamp.getOverContent(i);
> over.setColorFill(Color.white);
> over.rectangle(20, 30, 32, 760);
> over.fill();
> }
>
> stamp.close();
>
> I just bought iText in Action hoping it would solve my problem, but it
> doesn't look like its possible with iText. Any ideas or other
> tools to
> use for doing this would be much appreciated.
>
> Thanks,
> Jeff Bailey
>
> ----------------------------------------------------------------------
> ---
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a
> browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> Buy the iText book: http://itext.ugent.be/itext-in-action/
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/