Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

In basic terms, if you want to convert all your LO readable file formats to PDF you can use file globbing i.e.,

$ soffice --headless --convert-to pdf *.*

Obviously though if you have a.odp, a.ods, a.odt, etc. you are going to overwrite the output PDF from a.odp and a.ods with that for a.odt, so this may not be an ideal solution. For a more complex solution I think you would need to write a script to iterate through your known file types and perform the needed file checking.