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.
------------------------------------------------------------------------------
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/