OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

how to print a document as pdf over the api

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
neumonist
Guest





PostPosted: Sat Jan 17, 2004 11:11 am    Post subject: how to print a document as pdf over the api Reply with quote

Hi,

does anyone know how to export an document as pdf over the api. I could not find in example in the SDK.

Thanks for helping
Back to top
DannyB
Moderator
Moderator


Joined: 02 Apr 2003
Posts: 3991
Location: Lawrence, Kansas, USA

PostPosted: Sat Jan 17, 2004 11:40 am    Post subject: Reply with quote

You don't specify what type of document. Knowing the document type is very important. All docs can be exported to PDF, but the export filter name is different for each different type of document.

Here is an example of a Calc document that shows how to export a spreadsheet to PDF, Excel and Html.
http://www.oooforum.org/forum/viewtopic.php?t=4996
The example shows much more than that, so you'll only want to pay attention to the part showing how to export to PDF.

The technique to export other documents to PDF is the same, except that you need to use a different filter name on the storeToURL() method.

Here is a list of the various import/export filters.
http://www.oooforum.org/forum/viewtopic.php?t=3549

Here are other messages describing how to do document conversion....

Xcel to Calc conversion using the API
http://www.oooforum.org/forum/viewtopic.php?t=2668
This technique is the most relevant, just change the import/export filters.
A very similar one, converting Xcel to Text
http://www.oooforum.org/forum/viewtopic.php?t=2819
Again, same code, just change the filters to import your doc type and export to PDF.

Batch mode conversion
http://www.oooforum.org/forum/viewtopic.php?p=16056#16056

Document conversion
http://www.oooforum.org/forum/viewtopic.php?t=4163

VB: converting Excel files to txt files
http://www.oooforum.org/forum/viewtopic.php?t=3194

Converting Word -> PDF from the command line
http://www.oooforum.org/forum/viewtopic.php?t=3772

Converting SXW -> PDF
http://www.oooforum.org/forum/viewtopic.php?t=3017

In Python...
http://www.oooforum.org/forum/viewtopic.php?t=3451

Thread about converting document to PDF in Java
http://www.oooforum.org/forum/viewtopic.php?t=1480

I wrote a batch document converter
http://www.oooforum.org/forum/viewtopic.php?t=3525
you can get it here
http://www.ooomacros.org/user.php#95532
from the useful
http://OOoMacros.org
web site. You can study how my converter works.

This is not a complete list of what has been discussed here in the past, but it should be enough to get you started.
_________________
Want to make OOo Drawings like the colored flower design to the left?


Last edited by DannyB on Tue Apr 20, 2004 5:17 am; edited 1 time in total
Back to top
View user's profile Send private message
DannyB
Moderator
Moderator


Joined: 02 Apr 2003
Posts: 3991
Location: Lawrence, Kansas, USA

PostPosted: Fri Jan 23, 2004 8:26 am    Post subject: Reply with quote

In addition to the above links talking about document conversion, here are some more....

Macro to save in three formats
http://www.oooforum.org/forum/viewtopic.php?t=3612

http://www.oooforum.org/forum/viewtopic.php?t=3973
http://www.oooforum.org/forum/viewtopic.php?t=3768
http://www.oooforum.org/forum/viewtopic.php?t=3620
http://www.oooforum.org/forum/viewtopic.php?t=3545
http://www.oooforum.org/forum/viewtopic.php?t=3476
http://www.oooforum.org/forum/viewtopic.php?t=3017



Discussion that ends in DocConverter utility.
http://www.oooforum.org/forum/viewtopic.php?t=2668

Convert DBF into XLS, SXC, PDF and HTML
http://www.oooforum.org/forum/viewtopic.php?t=5728

Good Visual Basic code example...converting documents
http://www.oooforum.org/forum/viewtopic.php?t=7673



Import Export Filters list
==========================
http://www.oooforum.org/forum/viewtopic.php?t=3549
http://www.oooforum.org/forum/viewtopic.php?p=15416#15416
http://www.oooforum.org/forum/viewtopic.php?t=3545
http://www.oooforum.org/forum/viewtopic.php?t=3175

No documentation on filter options
http://www.oooforum.org/forum/viewtopic.php?t=2735
http://www.oooforum.org/forum/viewtopic.php?t=3458


Executing Macros via. URL or command line
or via. dispatcher
=========================================
http://www.oooforum.org/forum/viewtopic.php?t=4071
http://www.oooforum.org/forum/viewtopic.php?p=15589#15589
http://www.oooforum.org/forum/viewtopic.php?p=9861#9861
http://www.oooforum.org/forum/viewtopic.php?p=17377#17377
http://www.oooforum.org/forum/viewtopic.php?t=3196
http://www.oooforum.org/forum/viewtopic.php?t=2619
http://www.oooforum.org/forum/viewtopic.php?p=11794#11794

http://www.oooforum.org/forum/viewtopic.php?p=13053#13053

http://www.oooforum.org/forum/viewtopic.php?t=4285

http://www.oooforum.org/forum/viewtopic.php?t=3772

http://www.oooforum.org/forum/viewtopic.php?t=4163

http://www.oooforum.org/forum/viewtopic.php?t=2688
_________________
Want to make OOo Drawings like the colored flower design to the left?
Back to top
View user's profile Send private message
DannyB
Moderator
Moderator


Joined: 02 Apr 2003
Posts: 3991
Location: Lawrence, Kansas, USA

PostPosted: Wed Jun 02, 2004 7:38 am    Post subject: Reply with quote

Here is a short example program to convert PPT to HTML.

Convert PPT to HTML short example...
http://www.oooforum.org/forum/viewtopic.php?t=9437
_________________
Want to make OOo Drawings like the colored flower design to the left?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group