Error printing PDF document

The Amyuni PDF Creator for Java is a powerful tool designed to enable Java software developers to create and annotate complex documents, and reports while using the standard PDF format.
If you have any questions about the Java library please post them here.

Error printing PDF document

Postby bpesner on Thu Dec 21 2006

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.
bpesner
 
Posts: 1
Joined: Tue Dec 19 2006

Postby Jose on Fri Jan 05 2007

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?
Jose
Amyuni Team
 
Posts: 461
Joined: Tue Oct 01 2002


Return to Amyuni PDF Creator for Java

Who is online

Users browsing this forum: No registered users and 1 guest