How can I read/write Microsoft Word document from Java?
Printable View
How can I read/write Microsoft Word document from Java?
Have a look here : http://schmidt.devlib.org/java/libraries-word.html
Another solution:
import officetools.OfficeFile;
...
FileInputStream fis = new FileInputStream(new File("test.doc")); // works with xls also
FileOutputStream fos = new FileOutputStream(new File("test.pdf"));
OfficeFile f = new OfficeFile(fis,"localhost","8100", true);
f.convert(fos,"pdf");
All possible convertions:
html --> pdf
doc --> pdf, html, txt, rtf
xls --> pdf, html, csv
ppt --> pdf, swf
from dancrintea.ro/html-to-pdf/
And from where exactly do you import the class officetools.OfficeFile?
My company has bought it and it has integrated it into a project.
This guy is providing it: http://dancrintea.ro/html-to-pdf/