Issue 12817 - Export to PDF from commandline
Summary: Export to PDF from commandline
Alias: None
Product: General
Classification: Code
Component: ui (show other issues)
Version: OOo 1.1 Beta
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
Keywords: oooqa, rfe_eval_ok
: 26823 27478 62082 (view as issue list)
Depends on:
Reported: 2003-03-29 10:45 UTC by petrbalas
Modified: 2013-08-07 15:31 UTC (History)
2 users (show)

See Also:
Issue Type: FEATURE
Latest Confirmation in: ---
Developer Difficulty: ---


Note You need to log in before you can comment on or make changes to this issue.
Description petrbalas 2003-03-29 10:45:07 UTC
Please add commandline parametr for exporting given file to PDF.
Something like
soffice -exporttopdf file [pdf_file]
This can be very usefull for batch conversion.
Comment 1 h.ilter 2003-04-01 08:25:55 UTC
This is already possible,if you have installed a pdf-driver as printer.
Just type in the command line: soffice pt <printer> <file>

But may you haven't such driver and want the same possibility from the
function bar.
Comment 2 petrbalas 2003-04-01 10:22:56 UTC
PDF printer driver needs manually enter file name for PDF file.
(I'm using PdfCreator from
So this is not suitable for batch operations.
Comment 3 eric.savary 2003-04-16 15:31:24 UTC
Set to "NEW"
Comment 4 Unknown 2003-07-01 05:25:09 UTC
I am using OO in an intranet and such command would be very useful for
creating pdf views of OO files to be shown on line.
I strongly recommend it.
Comment 5 flibby05 2004-10-04 18:29:27 UTC
This may help you in the meantime:

"Experimental converter for documents", online version available at

source code here:
Comment 6 flibby05 2004-10-08 11:38:29 UTC
removing oooqa keyword
Comment 7 lohmaier 2005-08-06 18:28:19 UTC
*** Issue 26823 has been marked as a duplicate of this issue. ***
Comment 8 lohmaier 2005-08-06 18:29:25 UTC
*** Issue 27478 has been marked as a duplicate of this issue. ***
Comment 9 lohmaier 2005-08-06 18:33:11 UTC
setting keywords, reassigning.

Now that OOo has native-PDF export without the need for a PDF-"Printer" this
request makes more sense...
Comment 10 lohmaier 2005-08-06 18:35:04 UTC
forgot to correct component. This is not only for writer...
Comment 11 treblig 2006-01-22 18:05:18 UTC
Can we generalise this to be it should be possible to export to any supported
export form from the command line;

Certainly you would want to be able to go from any OOo format to pdf, html - but
why not just have an ooconvert which would take any supported file format
(either native or importable) and any corresponding output format (native or

That would certainly be a very useful feature.
Comment 12 lohmaier 2006-02-22 22:30:53 UTC
*** Issue 62082 has been marked as a duplicate of this issue. ***
Comment 13 yreveill 2006-02-23 16:22:46 UTC
I have the same ask :)

-------- START

The use of OpenOffice in server environment (juste console) will be a good thing.
At the moment, i understand that it is not possible to convert odt to pdf using
openoffice without launch openoffice.

the launch in silent mode is not the good methode because it necessite more
ressources and a continualy launch.

Why not propose to use the converter function simply as :

soffice -convertfromconsole_oncetime -filter odt2pdf -s file.odt -d file.pdf
-------- END

Concerning treblig'post :
the use of ooconvert require the opening of OpenOffice or i think with silent
mode to make macro in OpenOffice before the conversion process.

The goal here is not to open OpenOffice neither use ressources for open any
OpenOffice interface in case of a production server.
The idea is to simply convert a OpenOffice document to PDF using only the part
of OpenOffice that can do that.

After the installation of OpenOffice, just use a command like in a console mode :
soffice -convertfromconsole_oncetime -filter odt2pdf -s file.odt -d file.pdf

Thanks :)