Ask Your Question
0

Command line export: Select design/options for Impress HTML export

asked 2015-02-19 09:27:24 +0200

frederick.schulz gravatar image

I have quite a large number of .ppt files to convert. The Impress HTML export does a very good job when started from GUI, even with the default design settings.

However, when I try to export from command line like this

/Applications/LibreOffice.app/Contents/MacOS/soffice --headless --convert-to html:"impress_html_Export" --outdir "./Desktop/test/" ./Desktop/test.ppt

I just get the flat HTML view.

How can I define a saved "design" to use with the Export filter or pass options to the filter?

I just need to use the default html linked pages settings.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2015-02-20 12:07:54 +0200

frederick.schulz gravatar image

Instead of calling office directly, I now use unoconv.py.

./unoconv.py -vvv --doctype=presentation --format=html -e "PublishMode"=0 -e "IsExportContentsPage"=false -output=test/ test.ppt

-e allows me to pass all kinds of options to the filter, which unfortunately are not that well documented.

For HTML export I found a good example at this forum.

"PublishMode" is the crucial one here, defaulting to 2 (single html), but I need 0 (pages) or 1 (frames), as per sequence in the export wizard dialogue.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2015-02-19 09:27:24 +0200

Seen: 966 times

Last updated: Feb 20 '15