Bug 116924 - Blank pages are inserted in command line PDF conversion of ODT
Summary: Blank pages are inserted in command line PDF conversion of ODT
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Printing and PDF export (show other bugs)
Version:
(earliest affected)
5.0.3.2 release
Hardware: Other Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 116923 127489 (view as bug list)
Depends on:
Blocks: Commandline
  Show dependency treegraph
 
Reported: 2018-04-10 14:00 UTC by Daniel Ingrácio
Modified: 2020-05-03 11:10 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Original ODT Document (207.76 KB, application/vnd.oasis.opendocument.text)
2018-04-10 14:02 UTC, Daniel Ingrácio
Details
Converted Windows Environment (241.35 KB, application/pdf)
2018-04-10 14:02 UTC, Daniel Ingrácio
Details
Converted Linux Environment (801.33 KB, application/pdf)
2018-04-10 14:03 UTC, Daniel Ingrácio
Details
GUI pdf (194.62 KB, application/pdf)
2019-04-19 07:22 UTC, mattia.b89
Details
command line PDF (195.23 KB, application/pdf)
2019-04-19 07:22 UTC, mattia.b89
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Ingrácio 2018-04-10 14:00:34 UTC
Description:
We are trying to convert a odt file to pdf, using the command line:
libreoffice --convert-to pdf:writer_pdf_Export --outdir <convertedfile> <originalfile>

Executing this command line in Windows environment it's OK (even executing directly at a server or exporting to pdf using desktop application). In Linux environment a blank page is inserted always before the image.

The original file and the converted ones are attached at this bug.

JBOSS version: 6.4.7.GA 
SO: 7.5.7.Final-redhat-3 
Hardware: BLADE HP BL460C G8_3 - 270.0 GHZ

Best regards,

Daniel

Steps to Reproduce:
1.libreoffice --convert-to pdf:writer_pdf_Export --outdir <convertedfile> <originalfile>

Actual Results:  
A file with a blank page inserted.

Expected Results:
A file with no blank page inserted.


Reproducible: Always


User Profile Reset: No



Additional Info:


User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:59.0) Gecko/20100101 Firefox/59.0
Comment 1 Daniel Ingrácio 2018-04-10 14:02:00 UTC
Created attachment 141262 [details]
Original ODT Document
Comment 2 Daniel Ingrácio 2018-04-10 14:02:43 UTC
Created attachment 141263 [details]
Converted Windows Environment
Comment 3 Daniel Ingrácio 2018-04-10 14:03:19 UTC
Created attachment 141264 [details]
Converted Linux Environment
Comment 4 Jacques Guilleron 2018-04-10 16:36:20 UTC
*** Bug 116923 has been marked as a duplicate of this bug. ***
Comment 5 Xavier Van Wijmeersch 2018-04-10 18:17:54 UTC
confirm

Version: 6.1.0.0.alpha0+
Build ID: 77e2d29bce92639498324814be56656f85a0f0fd
CPU threads: 8; OS: Linux 4.14; UI render: default; VCL: kde4; 
Locale: nl-BE (en_US.UTF-8); Calc: group
Comment 6 Buovjaga 2018-04-18 16:51:04 UTC
Yes, does not happen with GUI.

Arch Linux 64-bit
Version: 6.1.0.0.alpha0+
Build ID: c8c74a0b4ca6f3a3619f423b6548c80c52392ae0
CPU threads: 8; OS: Linux 4.15; UI render: default; VCL: kde4; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group
Built on April 15th 2018
Comment 7 QA Administrators 2019-04-19 03:01:46 UTC Comment hidden (obsolete)
Comment 8 mattia.b89 2019-04-19 07:21:26 UTC
I confirm the issue.
I would add: exporting to PDF using GUI, everything is perfect! The issue appears only using the command line.
I attach the two outputs for comparing purpose.

Version: 6.2.2.2
Build ID: 6.2.2-4
CPU threads: 4; OS: Linux 5.0; UI render: default; VCL: gtk3; 
Locale: it-IT (en_GB.UTF-8); UI-Language: en-GB
Calc: threaded
Comment 9 mattia.b89 2019-04-19 07:22:07 UTC
Created attachment 150870 [details]
GUI pdf
Comment 10 mattia.b89 2019-04-19 07:22:50 UTC
Created attachment 150871 [details]
command line PDF
Comment 11 Timur 2020-05-03 11:10:33 UTC
*** Bug 127489 has been marked as a duplicate of this bug. ***