import java.io.*; import officetools.OfficeFile; // this is my tools package ... FileInputStream fis = new FileInputStream(new File("c:/test.html")); FileOutputStream fos = new FileOutputStream(new File("c:/test.pdf")); // suppose OpenOffice.org runs on localhost, port 8100 OfficeFile f = new OfficeFile(fis,"localhost","8100", true); f.convert(fos,"pdf");
View All Comments