Hi, I want to remove the PDF/X comment from an existing PDF by using the PDF stamper. I tried with this code, but it didn't work. Did I made something wrong?
PdfReader reader = new PdfReader( FileIn ); reader.getCatalog().remove( PdfName.OUTPUTINTENTS ); reader.getCatalog().remove( PdfName.GTS_PDFXVERSION ); reader.getCatalog().remove( PdfName.GTS_PDFX ); reader.removeUnusedObjects(); PdfStamper stamper = new PdfStamper(reader, new FileOutputStream( FileOut ) ); stamper.close(); Thanks for any feedback Georg ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Do you like iText? Buy the iText book: http://www.1t3xt.com/docs/book.php Or leave a tip: https://tipit.to/itexttipjar
