Eric Anderson wrote:

Changed the line
PdfImportedPage page = stamper.getWriter().getImportedPage(reader1, 1);
to
PdfImportedPage page = stamper.getImportedPage(reader1, 1);

same result..


java.lang.NullPointerException
        at com.lowagie.text.pdf.PdfContentByte.addTemplate(Unknown Source)
        at com.lowagie.text.pdf.PdfContentByte.addTemplate(Unknown Source)

Sorry, I forgot to mention that you should also remove the getWriter in this line:

PdfContentByte dc = stamper.getWriter().getDirectContent();

br,
Bruno




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to