On Wed, Sep 05, 2007 at 09:01:55PM -0400, Leonard Rosenthol wrote:
> 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

I asked a question on the list a few weeks back, which I will now ask
again in hopes that someone knows of a way to do this.

Is there any way using iText to develop a heuristic which detects PDFs
which have been improperly redacted in the below fashion? Ever if it
is not 100% reliable.

In other words, can I programatically identify PDF's where a
rectangle has been superimposed over text content?

Thanks,
        c

> 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/

Reply via email to