Hello,
I'm having some problems printing a multi-page pdf document after using iText to create it. I'm trying to print it using the javax.print.* APIs and it's printing only the first page. I think the problem is in the pdf creation process. My flow is the following:
 
- read a pdf template using PdfReader - reader
- create a ByteArrayOutputStream - bs
- create a pdf stamper - PdfStamper(reader, bs)
- set some acro fields with their values
- insert another page to the stamper - stampler.insertPage()
- add another template to the stamper's under content layer

My second page is the same pdf template with different acro values.  When I print, it feels like there is an "end-of-page" tag at the end of the first page where the program quits. How does iText add the second page to the first? I'm not familiar with pdf tags but when I opened the new pdf document with Adobe Pro and looked at the tags, it looked like the second page is a component of the first, not a separate section.  Please, let me know if you are the right person to ask and if not, would you direct me. I can send the Java code I wrote if someone can help me. Thank you.

Reply via email to