Hi,
When I try to convert the .ods format file to pdf it throws me an exception, but when i save the same file as .xls it produce me a pdf file.
below is the code that I am using to convert it to PDF (java)
Workbook workbook = new Workbook();
workbook.open(“abc.ods”);
workbook.save(“abc.pdf”,FileFormatType.PDF);
Also can you please let me know all the formats that can be converted to pdf.
Thanks,
Saumil
Hi,
Attached is the ods file ,
below is the exception that I am getting
Exception in thread “main” java.lang.NoSuchMethodError: org.dom4j.io.SAXReader.resetHandlers()V
at com.aspose.cells.fX.d(Unknown Source)
at com.aspose.cells.fX.a(Unknown Source)
at com.aspose.cells.fX.a(Unknown Source)
at com.aspose.cells.iG.a(Unknown Source)
at com.aspose.cells.iG.a(Unknown Source)
at com.aspose.cells.Workbook.open(Unknown Source)
at com.amazon.adriveworker.document.ExcelDocumentProcessor.generatePDF(ExcelDocumentProcessor.java:16)
at AsposeTest.main(AsposeTest.java:8)
Hi,
My bad,
Thanks for your prompt reply