on ‎2005 Aug 01 3:41 PM
Hello,
I am looking for a way to convert word files to pdf using Java. I am familiar with the jakarta POI project but unfortunally it doesn't contain this option. Does anyone have a sample code to do that?
Roy
Request clarification before answering.
This solution may not be appropriate but if you have either Adobe or one of several PDF generating libraries installed then they work as a printer driver. You can start word and via its automation interface have it print the document using the PDF printer driver. This will give you a PDF file.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Roy, hi Chris,
this is somewhat the mechanism I thought of using StarOffice (using StarOffice and not Word, for having the Java API at hand, even if - already said - the API for accessing such internals is all but intuitive).
So the aim would be to (programatically) "press" the "print" button / PDF Generator button (or, that's the StarOffice-thought, to simulate all this).
Also "printing" as PostScript into a certain subdir would do it if Adobe Acrobat is fully installed (and watching this directory); then Acrobat will convert the PS into PDF on the fly.
Hope it helps
Detlev
| User | Count |
|---|---|
| 15 | |
| 9 | |
| 6 | |
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.