Add --writer option to soffice convert command

If you edit `src/templates/export_html.html` to remove the
`<meta name="changedby" content="Etherpad">` tag[1], PDF export with
soffice has a bug: the first word of the pad is deleted and a blank page
is inserted as first page (the pad's text begins on the second page).
The `--writer` soffice option avoids that bug.

[1] you may want to delete that tag since it is inserted as a comment in
.doc or .odt soffice export.
This commit is contained in:
Luc Didry 2018-08-24 10:28:57 +02:00 committed by muxator
parent 06476f7ad2
commit 2cc32d7fe9

View file

@ -63,6 +63,7 @@ function doConvertTask(task, callback) {
'--invisible',
'--nologo',
'--nolockcheck',
'--writer',
'--convert-to', task.type,
task.srcFile,
'--outdir', tmpDir