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

            Bug ID: 162412
           Summary: Unexpected resizing of pages when converting docx to
                    pdf
           Product: LibreOffice
           Version: 7.4.7.2 release
          Hardware: All
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]

Description:
I wish to convert docx files to pdfs using the headless version of libreoffice.
I do this using the following command:
libreoffice --headless --convert-to pdf:writer_pdf_Export --outdir output_dir
input_path
For some reason, sometimes the pages in the output file are resized such that
images from the original docx are now cut and split across two pages and so the
original structure of the document is not maintained.

Running this command normally on my mac works as intended (using versions
24.2.5 as well as 7.4.7.2), however running it on a docker container (using the
python3.8 image) on version 7.4.7.2 causes the issue to occur. I would upgrade
to another version on the docker container if I could, but it seems like only
version 7.4.7.2 is available for the linux build in this image.

Steps to Reproduce:
1. Create a docker image using python3.8 as the base image, and copy a docx
file into the container (I don't know how I can provide an example document in
this ticket, but happy to provide in the future)
2. Run docker exec --it <your_image_id> /bin/sh to create an interactive shell
3. Run apt-get update and apt-get install libreoffice 
4. libreoffice --headless --convert-to pdf:writer_pdf_Export --outdir .
<your_docx_file>
5. Inspect the output pdf

Actual Results:
The output pdf document has more pages than the input document, with some
images spanning multiple pages

Expected Results:
The output pdf document should look exactly the same as the input docx
document.


Reproducible: Sometimes


User Profile Reset: Yes

Additional Info:
N/A

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

Reply via email to