[Solved] OpenOffice convert to PDF with API

Creating a macro - Writing a Script - Using the API (OpenOffice Basic, Python, BeanShell, JavaScript)
Post Reply
paulao
Posts: 13
Joined: Thu Nov 22, 2007 7:25 pm

[Solved] OpenOffice convert to PDF with API

Post by paulao »

Someone has called an example of the libraries open Office to convert a document doc to pdf?

Many thanks
hol.sten
Volunteer
Posts: 495
Joined: Mon Oct 08, 2007 1:31 am
Location: Hamburg, Germany

Re: Open office convert to pdf

Post by hol.sten »

Take a look at the OOo Developer's Guide: http://api.openoffice.org/DevelopersGui ... Guide.html

After getting your first connection take a closer look at Writer / Text documents: http://api.openoffice.org/docs/Develope ... Text.xhtml

Try the storeTo() example and use the PDF filter "writer_pdf_Export" instead of the Word filter "MS Word 97".
OOo 3.2.0 on Ubuntu 10.04 • OOo 3.2.1 on Windows 7 64-bit and MS Windows XP
paulao
Posts: 13
Joined: Thu Nov 22, 2007 7:25 pm

Re: Open office convert to pdf

Post by paulao »

Many Thanks
Post Reply