#convert_to

Who Let The Dogs Out 🐾ashed@mastodon.ml
2025-04-15

LibreOffice documents batch conversion

#commandline #pdf #filter #libreoffice #headless #convert_to #filetype

`Convert-to` command line parameter

ask.libreoffice.org/t/convert-

The format for “convert-to” parameter is:

--convert-to output_file_extension[:output_filter_name] [--outdir output_dir]

What are the valid output_file_extension values? What are the valid output_filter_name values?

For the documentation, the soffice --help showed the --convert-to
parameter. The help->LibreOffice Help does not show this parameter.

This is the general format of convert-to (noting that on windows the parameter is -convert-to not --convert-to):

soffice --headless --convert-to <TargetFileExtension>:<NameOfFilter> file_to_convert.xxx

Use the link above (cgit.freedesktop.org/libreoffi) to look for the filter names in the .xcu files.

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst