Hello Zak, On Sunday 06 December 2009, 19:47, Zak McKracken wrote: > Hi there, > > I'm not new to scripting, I know my Python (and some VBasic), but I've > never done a Macro in OOo. Now I'd like to do the following: > > write a macro that will open an OOo file (I have drawings, texts and > presentations), export it as a PDF (with a certain set of options) and > close it again. > By recording the pdf export, I coud find out the syntax for that, but > recording only works if a document is open. > > Also, I'd need to tell OO to use the default name for the pdf, but in my > recorded macro it's hard-coded. I'd need something in the form of > "argv1(1) = [documentname]+'pdf'" > > Can anyone here help me?
don't know about the macro recorder, but you can use OOo API (in Python, Java, C++, OOo Basic, ...) to fully automatize the PDF export, see http://wiki.services.openoffice.org/wiki/API/Tutorials/PDF_export > Feel free to redirect me elsewhere if this is OT > for this group. you can join the OOo API mailing list: [email protected] Regards -- Ariel Constenla-Haile La Plata, Argentina --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
