PDF version 1.4 - file attached -----Original Message----- From: Paulo Soares [mailto:psoa...@glintt.com] Sent: Wednesday, June 23, 2010 12:35 PM To: Post all your questions about iText here Subject: Re: [iText-questions] remove watermark layer
What PDF are you using? Paulo -----Original Message----- From: jjalink [mailto:jaak...@syneron.com] Sent: Wednesday, June 23, 2010 9:25 AM To: itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] remove watermark layer I narrowed it down to 4 code lines, and it still throws a NullPointerException on close line. if i remove the Map line, i just get a copy of the inFile. PdfReader reader = new PdfReader(inFile); PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(outFile)); Map<String, PdfLayer> layers = stamper.getPdfLayers(); stamper.close(); Any idea why i get exception - or better yet, how to make it work??? Aviso Legal: Esta mensagem ? destinada exclusivamente ao destinat?rio. Pode conter informa??o confidencial ou legalmente protegida. A incorrecta transmiss?o desta mensagem n?o significa a perca de confidencialidade. Se esta mensagem for recebida por engano, por favor envie-a de volta para o remetente e apague-a do seu sistema de imediato. ? proibido a qualquer pessoa que n?o o destinat?rio de usar, revelar ou distribuir qualquer parte desta mensagem. Disclaimer: This message is destined exclusively to the intended receiver. It may contain confidential or legally protected information. The incorrect transmission of this message does not mean the loss of its confidentiality. If this message is received by mistake, please send it back to the sender and delete it from your system immediately. It is forbidden to any person who is not the intended receiver to use, distribute or copy any part of this message. ************************************************************************************ This footnote confirms that this email message has been scanned by PineApp Mail-SeCure for the presence of malicious code, vandals & computer viruses. ************************************************************************************ ************************************************************************************ This footnote confirms that this email message has been scanned by PineApp Mail-SeCure for the presence of malicious code, vandals & computer viruses. ************************************************************************************
test.pdf
Description: test.pdf
------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/