Changing 
PdfContentByte dc = stamper.getWriter().getDirectContent();
to
PdfContentByte dc = stamper.getUnderContent(1);

Brought all the objects over (thanks!) except for the image that was in 
reader1... any clue as to why? Does PdfImportedPage include images?

Thanks!

>>> Bruno Lowagie <[EMAIL PROTECTED]> 12/9/2005 10:11 am >>>
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_idv37&alloc_id865&op=click
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to