Antonio Gutiļæ½rrez Mayoral wrote:

Hi all.

I have a question about convert documents using OOo macros.

At the moment, I have a web app that converts from an OpenOffice.org
writer document to different document formats, like PDF, PS, HTML, DOC,
etc. I am using a shell script that calls different macros on command
line. These macros, convert the document passed as parameter to their
corresponding formats. The problem resides in the necessity to have a
fake X server to be able to execute the macros on command line:

/usr/bin/xvfb-run -n0 /usr/bin/ooffice -headless -invisible
'macro:///ConversionLibrary.Conversions.ConvertToPDF(%s)'

where %s represents the file to be converted, and 'xvfb-run' the script
that create a new display for execute the requested command. I would
like to know if there is a way to make these conversions without use the
X server (with OOo components, uno, etc.)

Thanks in advance.

Un saludo,

Antonio.


I think that Laurant Godard has already written a system to do this..... Search for his posts in either the dev list or the oooforum.... I know that I reference this in my book (which I do not have with me at the moment), I do know, however, that he wrote a document transformer that sounds like it will do what you want....

--
Andrew Pitonyak
My Macro Document: http://www.pitonyak.org/AndrewMacro.sxw
My Macro Book: http://www.hentzenwerke.com/catalog/oome.htm
Free Info:  http://www.pitonyak.org/oo.php


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to