OK, I'm a little further down the road with this. I've used the text extraction methods to check that I'm in the right place on the page, and separately used PRTokeniser to check the content of the page.
However, if I can piece together which tokens of the content I want to remove, how do I go about that? I don't see a way to basically read the tokens and then filter-out and write only the ones I want to (a la a PdfStamper type class). Bonus question: If I want to "set aside" the Strings that I'm not writing to the filtered-output-PDF, is there a way to determine more information about the String tokens (page location, font info, etc.)? Thanks again, AJ On 2/15/2012 9:32 AM, Leonard Rosenthol wrote: > You can't remove the entire stream - that would give you a blank page! > > As Bruno said, you need to parse/analyze the page content and determine what > is "good" and what is "bad". > > Leonard > > -----Original Message----- > From: AJ Weber [mailto:awe...@comcast.net] > Sent: Wednesday, February 15, 2012 9:27 AM > To: itext-questions@lists.sourceforge.net > Subject: Re: [iText-questions] Strip Annotations? > > On 2/14/2012 11:02 AM, Leonard Rosenthol wrote: >> Sure, it's possible that they are using some tool that adds text directly to >> the content instead of as an annotation. Perfectly valid. >> >> In which case, removal is MUCH harder (but not impossible) > OK...if I need to remove a page's /Contents object (and thus stream), can > anyone point to a quick method to do that? Do I need to use one of the > "lower level" methods, or which class/method would be recommended? > > Thanks again, > AJ > > ------------------------------------------------------------------------------ > Virtualization& Cloud Management Using Capacity Planning Cloud computing > makes use of virtualization - but cloud computing also focuses on allowing > computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > iText-questions mailing list > iText-questions@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/itext-questions > > iText(R) is a registered trademark of 1T3XT BVBA. > Many questions posted to this list can (and will) be answered with a > reference to the iText book: http://www.itextpdf.com/book/ Please check the > keywords list before you ask for examples: > http://itextpdf.com/themes/keywords.php > > ------------------------------------------------------------------------------ > Virtualization& Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > iText-questions mailing list > iText-questions@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/itext-questions > > iText(R) is a registered trademark of 1T3XT BVBA. > Many questions posted to this list can (and will) be answered with a > reference to the iText book: http://www.itextpdf.com/book/ > Please check the keywords list before you ask for examples: > http://itextpdf.com/themes/keywords.php ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php