You'll need PdfStamper for the output, PdfReader.getPageContent(), PdfReader.setPageContent() and PdfContentParser.
Paulo ----- Original Message ----- From: "Lim, Doug" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Saturday, October 11, 2008 1:54 AM Subject: [iText-questions] Editing PDF Stream Hi, I will apologize up-front. I am a complete newbie to iText and PDF files. The problem I am trying to solve is that I have a bunch of PDF files that are incorrectly formed. They can be read and viewed by Adobe Reader 9, but not by our embedded PDF reader. The error in the PDF file can be characterized by an "h" (close subpath) command immediately following an "ET" (end text) command in a stream. Using a commercial PDF editor we can delete all of the "h" commands that immediately follow an "ET" command and our reader can read the documents. The short term solution I am trying to implement is to remove any "h" commands immediately following the "ET" command programmatically. Is iText the right tool for solving this problem? If not can anyone suggest another tool or approach to solving this problem? Thanks, Doug ________ Carl Zeiss Meditec, Inc. Research and Development Senior Staff Software Engineer 5160 Hacienda Drive Dublin, CA 94568 D o u g L i m Phone: +1 925.557.4453 Fax: +1 925.557.4615 mailto:[EMAIL PROTECTED] http://www.meditec.zeiss.com ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
