I am looking for a code in Java that uses the Open Office API/Libraries.. to read an existing Ms Excel file in OO calc and export this to PDF format.
any help will be apreciated.
A team in my comp has used this solution for converting DOC and XLS to PDF:
import officetools.OfficeFile; // available at http://www.dancrintea.ro/xls-to-pdf/
FileInputStream fis = new FileInputStream(new File("test.xls"));
FileOutputStream fos = new FileOutputStream(new File("test.pdf"));
OfficeFile f = new OfficeFile(fis,"localhost","8100", true);
All possible convertions are:
xls to pdf, html, csv
doc to pdf, html, txt, rtf
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Participation.
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.