What is the correct syntax to use for convert-to filter options?

I am trying to use --convert-to option to convert OOXML files to PDF and HTML but I couldn’t find any information how to use specific filter options. Specifically, I want to use ExportNotes and ExportNotesPages for impress_pdf_Export filter and Publishmode for ‘XHTML Impress File’ filter. I tried the following and none of them make any difference:

libreoffice --headless --convert-to pdf:“impress_pdf_Export:ExportNotesPages” myfile.pptx

libreoffice --headless --convert-to pdf:“impress_pdf_Export:ExportNotesPages=1” myfile.pptx

libreoffice --headless --convert-to pdf:“impress_pdf_Export:ExportNotesPages=true” myfile.pptx

libreoffice --headless --convert-to pdf:“impress_pdf_Export:ExportNotesPages 1” myfile.pptx

libreoffice --headless --convert-to html:“XHTML Impress File:Publishmode” myfile.pptx

libreoffice --headless --convert-to html:“XHTML Impress File:Publishmode=1” myfile.pptx

libreoffice --headless --convert-to html:“XHTML Impress File:Publishmode 1” myfile.pptx

Thanks in advance!

1 Like

Well, this is a very old question but I think what you’re looking for is.

libreoffice --headless --convert-to pdf:"impress_pdf_Export:ExportNotesPages=True" myfile.pptx

That’s the same as one of your examples above but with a capital “T” on True.

But be warned, the behaviour may not be very useful. When I run this I get a PDF with:

  • All the slides one page at a time.

  • Followed by a repeat of the presentation in a fairly useless format - if there are notes then you get the notes but not the slide on a page, if there are NO notes then you get the slide.

This is with LibreOffice 4.3.7.2 on OS X. (Actually the command in this case is soffice not libreoffice)

If anyone knows the flags for a more useful export it would be great to post them here the filters in Libreoffice are not documented anywhere.

See this for import/export filters.