If it helps I don't think its specific to using the command line. I'm having the same problem of random blank pages being added using the normal GUI version. I think its a more widespread fundamental problem. This seems to mostly happen when there are a lot of pages and images involved. This is basically the same report I put in here:
https://bugs.documentfoundation.org/show_bug.cgi?id=98698 I'm using: Libreoffice version: Version: 6.2.7.1 Build ID: 6.2.7-1 CPU threads: 4; OS: Linux 5.2; UI render: default; VCL: gtk3; Locale: en-GB (en_GB.UTF-8); UI-Language: en-GB Calc: threaded OS: Linux 0 5.2.11-arch1-1-ARCH -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to libreoffice in Ubuntu. https://bugs.launchpad.net/bugs/1812754 Title: Libreoffice writer adds blank pages on multiple inputs Status in LibreOffice: Incomplete Status in libreoffice package in Ubuntu: Confirmed Bug description: When I have multiple .txt files on the command line and start libreoffice writer, it adds (many) blank pages to the documents. These blanks contain nothing at all and I have not figured out how to remove them. But they are included when I print them. I'm attaching a file on which this happens. It contains an anonymized fragment of the original, repeates a number of times. I suggest you create two copies, called perhaps junk1.txt and junk2.txt. I use the command "soffice junk*" to load them into the writer, and I get the extra blank pages. If, however, I just do soffice junk1.txt, I get a document of the correct size. I can do that of course, but it is still an annoying and inconvenient error for my workflow. --- One hint to debugging: if I do this: for i in junk1.txt junk2.txt do soffice $i & done I see the problem. If, however, I introduce a delay the problem does not appear. Like so: for i in junk1.txt junk2.txt do sleep 2 soffice $i & done ProblemType: Bug DistroRelease: Ubuntu 18.04 Package: libreoffice-writer 1:6.0.7-0ubuntu0.18.04.2 ProcVersionSignature: Ubuntu 4.15.0-43.46-generic 4.15.18 Uname: Linux 4.15.0-43-generic x86_64 ApportVersion: 2.20.9-0ubuntu7.5 Architecture: amd64 CurrentDesktop: XFCE Date: Mon Jan 21 13:58:01 2019 InstallationDate: Installed on 2018-10-18 (95 days ago) InstallationMedia: Xubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 (20180725) SourcePackage: libreoffice UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/df-libreoffice/+bug/1812754/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp