Convert ODT to PDF

Use LibreOffice (OpenOffice.org) in command line mode to convert all of the ODT files in the directory to PDF files in subdirectory PDF:

  • libreoffice --headless --convert-to pdf --outdir PDF ./*.odt

P.S.

  1. Before you run this command, make sure that LibreOffice (OpenOffice.org) is not running in background. Otherwise it will fail.
  2. Use ./*.odt instead of simply *.odt, because otherwise the program will consider file names beginning with “-” to be an argument and will fail.
Advertisements

One Comment on “Convert ODT to PDF”

  1. […] like when converting ODT to PDF, you can use LibreOffice (OpenOffice.org) in command line mode for high quality conversion of all […]


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s