Is Python really a scripting language?
Marc 'BlackJack' Rintsch
bj_666 at gmx.net
Sat Dec 15 03:58:52 EST 2007
On Sat, 15 Dec 2007 01:59:16 +0000, Steven D'Aprano wrote:
> In any case, I would say that your exercise is the Wrong Way to go about
> it. A task as simple as "produce PDF output from this file" shouldn't
> need access to the internals of the OpenOffice GUI application. The Right
> Way (in some Ideal World where OO wasn't so stupid) would be some
> variation of:
>
> oowriter --print some.doc | ps2pdf
Can be done this way… ::
soffice -invisible macro:///Standard.MyConversions.SaveAsPDF(some.doc)
…if you write a small macro in StarBasic for the conversion.
Full story:
http://www.xml.com/pub/a/2006/01/11/from-microsoft-to-openoffice.html
Ciao,
Marc 'BlackJack' Rintsch
More information about the Python-list
mailing list