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.
-- 
Antonio Guti�rrez Mayoral << http://gsyc.info/~agutierr >>
Grupo de Sistemas y Comunicaciones << http://gsyc.info/ >>
Escuela Superior de CC Experimentales y Tecnolog�a
Universidadad Rey Juan Carlos << http://www.urjc.es >>

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

Reply via email to