From 2cc32d7fe9b4933828f94ec855ceb2be6550176c Mon Sep 17 00:00:00 2001 From: Luc Didry Date: Fri, 24 Aug 2018 10:28:57 +0200 Subject: [PATCH] Add --writer option to soffice convert command If you edit `src/templates/export_html.html` to remove the `` 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. --- src/node/utils/LibreOffice.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/node/utils/LibreOffice.js b/src/node/utils/LibreOffice.js index 3cf63e1d6..9127d18d2 100644 --- a/src/node/utils/LibreOffice.js +++ b/src/node/utils/LibreOffice.js @@ -63,6 +63,7 @@ function doConvertTask(task, callback) { '--invisible', '--nologo', '--nolockcheck', + '--writer', '--convert-to', task.type, task.srcFile, '--outdir', tmpDir