OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

Word to PDF Conversion

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
son_t
Newbie
Newbie


Joined: 09 Feb 2006
Posts: 2

PostPosted: Thu Feb 09, 2006 4:20 am    Post subject: Word to PDF Conversion Reply with quote

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
View user's profile Send private message
SergeM
Super User
Super User


Joined: 09 Sep 2003
Posts: 3211
Location: Troyes France

PostPosted: Thu Feb 09, 2006 8:51 am    Post subject: Reply with quote

See :
How to convert Word -> PDF from the command line http://www.oooforum.org/forum/viewtopic.phtml?t=3772
Error exporting to PDF (Java) http://www.oooforum.org/forum/viewtopic.phtml?t=29664&highlight=
Export selection to PDF in landscape mode? http://www.oooforum.org/forum/viewtopic.phtml?t=28408
http://www.oooforum.org/forum/viewtopic.phtml?t=4998
Export a document from OpenOffice writer as Acrobat http://www.oooforum.org/forum/viewtopic.phtml?t=12922&highlight=
_________________
Linux & Windows OOo3.0
UNO & C++ : WIKI
http://wiki.services.openoffice.org/wiki/Using_Cpp_with_the_OOo_SDK
In French
http://wiki.services.openoffice.org/wiki/Documentation/FR/Cpp_Guide
Back to top
View user's profile Send private message Visit poster's website
son_t
Newbie
Newbie


Joined: 09 Feb 2006
Posts: 2

PostPosted: Fri Feb 10, 2006 3:52 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group