Workbook save to pdf/a option not available in java

WorkBook book = new WorkBook(“C:/temp.xls”);


book.save(“C:/TestResults/temp.pdf”,new PdfSaveOptions());

This particular code complains that save does not have a method signature with SaveOptions as second parameter. I have aspose cells 7.6.1 on my classpath.

Does the evaluation version not allow conversion to pdf/a ??

Hi,

Thanks for your posting and using Aspose.Cells for Java.

Please try the following code. It creates a workbook object from a source file and save in the pdf format after setting the compliance to PDF/A1b.

There is no limitation in the evaluation version except that it adds a watermark text in the output pdf pages.

Java


String filePath = “F:\Shak-Data-RW\Downloads\Test.xls”;


Workbook book = new Workbook(filePath);


PdfSaveOptions opts = new PdfSaveOptions();

opts.setCompliance(PdfCompliance.PDF_A_1_B);


book.save(filePath + “.out.pdf”, opts);



It did create the file as pdf/a-1b. But when I verify its conformance with adobes preflight it fails.


So the file is not truly complaint.

Hi,

Thanks for your feedback and using Aspose.Cells.

Please provide us your source workbook which you are converting to pdf and the screenshots showing the adobe preflight getting failed while verifying the conformance.

We will then log this issue for investigation in our database so that it could be fixed asap.

Attached is the orignal xls and the corressponding pdf/a report as well.

Hi Zoharat.

Thank you for providing your sample spreadsheet for our review.

We have evaluated your presented scenario on our end while using the latest build of Aspose.Cells for Java 7.6.1.4. Adobes’ Preflight module seems to show a few errors when Aspose.Cells generated PDF file is verified for PDF/A-1b compliance. A ticket under Id CELLSJAVA-40692 has been logged in our bug tracking system to investigate this matter further, and to provide a fix, if applicable. Please spare us little time to properly analyze the problem cause. In the meanwhile, we will keep you posted with updates in this regard.

Hi Zoharat,

Thanks for using Aspose.Cells for Java.

Please download and try this fix: Aspose.Cells for Java v8.2.2.1 and let us know your feedback.

The issues you have found earlier (filed as CELLSJAVA-40692) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.