Hi,

We are using iText jars itextpdf and itextpdfa jars with version 5.5.1 to
generate tagged PDF , facing below exception in unix environmnet but it is 
working fine in windows.

Please find the attached sample code


2014-09-30 08:21:39,300, WARNING
[org.eclipse.birt.report.engine.layout.emitter.PageDeviceRender.log]  : The
page 2 was requested but the document has only 1
pages.java.lang.RuntimeException: The page 2 was requested but the document
has only 1 pages.
        at com.itextpdf.text.pdf.PdfWriter.close(PdfWriter.java:1248)
        at com.itextpdf.text.pdf.PdfAWriter.close(PdfAWriter.java:360)
        at com.itextpdf.text.pdf.PdfDocument.close(PdfDocument.java:882)
        at com.itextpdf.text.Document.close(Document.java:416)
        at
com.wf.birt.report.engine.pdf.emitter.PdfLayoutPageDevice.close(PdfLayoutPageDevice.java:106)
        at
org.eclipse.birt.report.engine.layout.emitter.PageDeviceRender.end(PageDeviceRender.java:144)
        at
com.wf.birt.report.engine.pdf.emitter.PdfExPageDeviceRender.end(PdfExPageDeviceRender.java:511)
        at
org.eclipse.birt.report.engine.layout.emitter.PageEmitter.end(PageEmitter.java:65)
        at
org.eclipse.birt.report.engine.nLayout.LayoutEngine.end(LayoutEngine.java:347)
        at
org.eclipse.birt.report.engine.api.impl.RenderTask$PageRangeRender.render(RenderTask.java:733)
        at
org.eclipse.birt.report.engine.api.impl.RenderTask.render(RenderTask.java:321)



PdfLayoutPageDevice.java
<http://itext-general.2136553.n4.nabble.com/file/n4660427/PdfLayoutPageDevice.java>
  





--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/PdfDocument-close-doesn-t-work-in-unix-tp4660427.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to