Eric,
I know there the ability to print from the command line, so if you have a ghostscript printer driver or some other PDF printer driver you could print to PDF directly from the command line. As such I do not know of any command line switch that will export right to PDF. However, there is the /m command line switch where you can execute a macro, so perhaps you can have the macro do the export. I was using the .NET API dlls to perform the automation (which essentially works the same as OpenOffice in that you can control the application and make it do what you want). As a side note the "Save As PDF" plugin for Office 2007 works for all their applications (well at least Word, Excel, Powerpoint, Publisher - I've tried those). Email me directly if you have more questions since this is pretty much no longer SWFTools related. Matt From: swftools-common-bounces+matthew.richer=conceptshare....@nongnu.org [mailto:swftools-common-bounces+matthew.richer=conceptshare....@nongnu.org] On Behalf Of Eric Wood Sent: Friday, January 22, 2010 8:38 AM To: [email protected] Subject: Re: [Swftools-common] Word Document to PDF conversion Matthew, This interests me. Is there some kind of .cmd wrapper script on the server which is executes winword.exe with an argument to that Word2PDF function? Can you give some details about how you connected the dots? Much appreciated. -Eric Wood CTO International Plastics, Inc. ----- Original Message ----- From: Matthew Richer <mailto:[email protected]> We use Office 2007 to do the automation server side. Technically Microsoft frowns upon it, but it works. Office 2007 has a "Save As PDF" plugin (or it included in Service Pack 2). Here go (if the list smashes my code indenting you can email me directly and I'll send it over (FYI Office's API is not all that great but it gets the job done):
