| View previous topic :: View next topic |
| Author |
Message |
neumonist Guest
|
Posted: Sat Jan 17, 2004 11:11 am Post subject: how to print a document as pdf over the api |
|
|
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


Joined: 02 Apr 2003 Posts: 3991 Location: Lawrence, Kansas, USA
|
Posted: Sat Jan 17, 2004 11:40 am Post subject: |
|
|
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 |
|
 |
DannyB Moderator


Joined: 02 Apr 2003 Posts: 3991 Location: Lawrence, Kansas, USA
|
|
| Back to top |
|
 |
DannyB Moderator


Joined: 02 Apr 2003 Posts: 3991 Location: Lawrence, Kansas, USA
|
|
| Back to top |
|
 |
|
|
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
|