invoke Impress via ant (or shell) to create .pdf

Java, C++, C#, Delphi, ??? - Using the UNO bridges

invoke Impress via ant (or shell) to create .pdf

Postby brutzman » Sat Feb 16, 2008 8:31 pm

i have a bunch of .odp presentations that occasionally get collected into a .zip archive.

would like to automate the production of .pdf versions

wondering, how can i invoke Impress using an ant build.xml script to create .pdf ?

alternatively, how can i invoke Impress to create .pdf via command line?
brutzman
 
Posts: 5
Joined: Sat Feb 16, 2008 2:38 am
Location: Monterey California USA

Re: invoke Impress via ant (or shell) to create .pdf

Postby hol.sten » Sun Feb 17, 2008 9:54 am

brutzman wrote:alternatively, how can i invoke Impress to create .pdf via command line?

Try this for example: http://www.oooforum.org/forum/viewtopic.phtml?t=3772
Although the title suggests, that the macro covers only converting WORD to PDF, you can easily alter that to ANY of OOo's file formats to PDF. The only line you must change is the line setting the "FilterName" for storing the PDF. In the linked thread it looks like this:
Code: Select all   Expand viewCollapse view
MakePropertyValue( "FilterName", "writer_pdf_Export" ),_
This is the PDF export filter for OOo's text documents.

To export an Impress file format change that line to:
Code: Select all   Expand viewCollapse view
MakePropertyValue( "FilterName", "impress_pdf_Export" ),_
You'll find more available PDF export filters in this list: http://wiki.services.openoffice.org/wik ... st_OOo_2_1
OOo 3.2.0 on Ubuntu 10.04 • OOo 3.2.1 on Windows 7 64-bit and MS Windows XP
hol.sten
Volunteer
 
Posts: 495
Joined: Mon Oct 08, 2007 1:31 am
Location: Hamburg, Germany


Return to External Programs

Who is online

Users browsing this forum: No registered users and 1 guest