Hi,
I’m testing the new version of Aspose Cells for java,
in order to convert an xls (or xlsx) document to pdf, but I have some troubles.
This is the java code:
Workbook workbook = new Workbook();
workbook.open(“input\xls1.xls”);
workbook.save(“output\xls1.xml”, FileFormatType.ASPOSE_PDF);
Pdf pdf1 = new Pdf();
pdf1.bindXML(“output\xls1.xml”, null);
pdf1.save(“output\xls1.pdf”);
I’m getting this error:
java.lang.Exception: PageHeight is: 84168.0 PageWidth is: 59544.0. The
minimum allowed page size is 3 by 3 units (approximately 0.04 by 0.04
inch);
the maximum is 14,400 by 14,400 units (200 by 200 inches).
at aspose.pdf.xml.L.a(SourceFile:602)
at aspose.pdf.xml.n.a(SourceFile:732)
at aspose.pdf.xml.P.a(SourceFile:105)
at aspose.pdf.xml.w.a(SourceFile:112)
at aspose.pdf.Pdf.save(SourceFile:911)
…
I understand that the problem is connected to the size of pdf pages.
But if I use a previous version of Aspose.Cells, for example the one of
12/2/2010, everything goes right.
Can you help me?
Thanks & Regards,
Sandra