You come up with your own heuristics, unfortunately, since there is nothing "specific" in the PDF.
-----Original Message----- From: AJ Weber [mailto:awe...@comcast.net] Sent: Tuesday, February 14, 2012 11:23 AM To: itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] Strip Annotations? Right. How do I determine if the text in the /Contents stream is the intended contents of the page, or whether someone added it after-the-fact? Ugh. Users... ;) 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) > > -----Original Message----- > From: AJ Weber [mailto:awe...@comcast.net] > Sent: Tuesday, February 14, 2012 10:54 AM > To: itext-questions@lists.sourceforge.net > Subject: Re: [iText-questions] Strip Annotations? > > >I'm using RUPS to view a PDF that has some kind of text annotation/stamp, > but I can't find the actual object (even>though it's a one-page document and > there aren't that many entries in RUPS at all!) to determine exactly what > my>target object is... > > OK, I found the "offending text". It's in the Page's /Contents "stream"??? > > Background: the original PDF is a PDF/Image (actually created using iText > 2.1.4 by a third party, according to the metadata). > > So is a user somehow inserting their comment-text as the plain-text contents > of the page (even though the original/image is still there)? > (I'm not entirely clear on what the /Contents stream is supposed to > traditionally be.) > > I can't send the document, but I can take a screen-shot of the page's subtree > from RUPS if that helps (and I'm allowed to attach a jpeg or something to the > post). > > Thanks again, > AJ > > ---------------------------------------------------------------------- > -------- Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers is > just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro > Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > 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 > > ---------------------------------------------------------------------- > -------- Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft > developers is just $99.99! Visual Studio, SharePoint, SQL - plus > HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you > subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > 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 ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ 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 ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ 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