| View previous topic :: View next topic |
| Author |
Message |
son_t Newbie

Joined: 09 Feb 2006 Posts: 2
|
Posted: Thu Feb 09, 2006 4:20 am Post subject: Word to PDF Conversion |
|
|
Hello
Could someone give me pointers if this subject has been discussed before or help me out otherwise.
I am using OO on Solaris (10) to convert MS Word documents to PDF.
Currently I am using OO version 1.1.5 using this command:
/opt/OpenOffice.org1.1.5/soffice -display :5.0 -headless -pt lw
In other words I am using OO to open up a word document (on a virtual display) and sending it to a Postscript printer. With the printer output file I use GhostScript (ps2pdf) to generate the PDF.
The problem I am having is that these process works sometimes and not others and hence I would like to find another way of converting Word (or anyother OO) documents to PDF.
I found this document outlining a conversion of Word to PDF using the OO API. But unfortunately this is only on the Windows platform:
http://www.wynia.org/wordpress/word-to-pdf-converter-in-php-word2pdf/
In short, how do I go about achieving the same effects for a UNIX platform using the OO's API. Where do I begin? Any pointers would be appreciated.
Regards |
|
| Back to top |
|
 |
SergeM Super User

Joined: 09 Sep 2003 Posts: 3211 Location: Troyes France
|
|
| Back to top |
|
 |
son_t Newbie

Joined: 09 Feb 2006 Posts: 2
|
Posted: Fri Feb 10, 2006 3:52 am Post subject: |
|
|
Thanks for your pointers.
I mananged to get the macro code from the first link to work. Initially I got the same exception error as the first reply, but using the full path of the document I wanted to convert fixed the problem.
In the meantime I found this sourceforge project PHP DocWriter, but haven't had time to look at it. Might be useful to someone else reading here:
http://phpdocwriter.sourceforge.net/links.php?lang=en
Regards |
|
| Back to top |
|
 |
|