Error printing PDF document

These different converters modules enables you to convert your existin documents to the above formats. These are all parts of our Document Converter produt.
Here you can post all the installation and usage issues related to the document converters including our latest DOCX Converter
Post Reply
bpesner
Posts: 1
Joined: Tue Dec 19 2006

Error printing PDF document

Post by bpesner »

I am evaluating the java version pf PDF Creator. When I call the print method of an acDocument object I get the following exception:

Exception in thread "main" java.lang.IndexOutOfBoundsException: There are only 1
pages in this document and page 0 was requested!
at com.amyuni.d.a.d.f(d.java)
at com.amyuni.d.a.d.m(d.java)
at com.amyuni.d.a.g.print(g.java)
at printPDF.main(printPDF.java:14)

I understood that page numbering was 1 based, but of course I'm not specifying a page number at all. I am calling the open and getPageCount methods successfully.

This is probably unrelated, but I am not calling the acPDFComponent.setLicenseKey method. I don't know what to specify for the license key since I am using an evaluation copy of the software.

Thanks.
Jose
Amyuni Team
Posts: 553
Joined: Tue Oct 01 2002
Contact:

Post by Jose »

Hello,

We have just placed an updated version of the PDF Creator for Java on our website which resolves the issues you have described.

http://www.amyuni.com/en/developer/pdfc ... trial.html

Hope this helps?
Post Reply