https://bugs.documentfoundation.org/show_bug.cgi?id=165530

            Bug ID: 165530
           Summary: PDF Result Discrepancy between Linux and MacOS
           Product: LibreOffice
           Version: 25.2.1.2 release
          Hardware: x86-64 (AMD64)
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Printing and PDF export
          Assignee: [email protected]
          Reporter: [email protected]

Description:
Hi community,

I'm working on a python project and one of the subtask is to convert a xlsx
table to pdf. I use LibreOffice in command line to do so. The command I use is:

soffice --headless --convert-to pdf:calc_pdf_Export --outdir output_dir
xlsx_dir

It works actually. But when I run the same job on my local (macOS) and my EC2
server (AL2023) in AWS, the result pdf files are slightly different. As you can
see in the picture below, they're not the same size. The table on EC2 is
smaller. This discrepancy causes some trouble for later processing. I like the
result from macOS.

To fix this, I’ve checked/fixed the following, but still got no luck:

•⁠ ⁠LibreOffice version: they use the same 25.2.1 version

•⁠ ⁠⁠Python environment: Same and actually not relevant, the results are
different even directly run ⁠ soffice ⁠ command in command line

•⁠ ⁠⁠conversion command/argument type: exactly the same

•⁠ ⁠⁠missing fonts: changed the fonts in excel to Arial, didn’t help

•⁠ ⁠⁠locale setting: Updated EC2’s to en_US.UTF-8, same as local, didn’t help

I have no idea how to fix this now. Checking if I can get this resolved here.
Any ideas and suggestions is appreciated! TIA!

Steps to Reproduce:
1. run the command soffice --headless --convert-to pdf:calc_pdf_Export --outdir
output_dir xlsx_dir
2.
3.

Actual Results:
The table height in the pdf from amazon linux OS (AL2023) is only 2/3 of the
height of macOS.
>From ubuntu, it's slight higher than AL2023, but still much shorter than macOS.

Expected Results:
They should have the same result?


Reproducible: Always


User Profile Reset: Yes

Additional Info:
not sure how I can attach the excel file and the final result to here.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to