Bug 166051 - Spacing problems with PDF
Summary: Spacing problems with PDF
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.2.0.4 release
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: PDF-Export
  Show dependency treegraph
 
Reported: 2025-04-06 12:26 UTC by Daniel
Modified: 2025-08-12 19:15 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
This is the document creating spacing issues (17.18 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2025-04-06 12:26 UTC, Daniel
Details
PDF created by WORD (26.23 KB, application/pdf)
2025-04-06 12:27 UTC, Daniel
Details
PDF created by Libreoffice (36.92 KB, application/pdf)
2025-04-06 12:27 UTC, Daniel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel 2025-04-06 12:26:16 UTC
Description:
I received a document created in MS Word.  When I opened the document in Libreoffice and converted to PDF, one of the lines had an issue with spacing.  The issue did not occur when I used MS Word and save-as PDF.

Steps to Reproduce:
Used the following command line to convert the document to PDF and libreoffice generated spacing issues.

soffice --nologo --headless --norestore --convert-to pdf:writer_pdf_Export --outdir /tmp /tmp/file.docx




Actual Results:
Used the following command line to convert the document to PDF and libreoffice generated spacing issues.

soffice --nologo --headless --norestore --convert-to pdf:writer_pdf_Export --outdir /tmp /tmp/file.docx




Expected Results:
The converted document had spacing issue.


Reproducible: Always


User Profile Reset: Yes

Additional Info:
microsoft word 2021
adobe acrobat pro
Comment 1 Daniel 2025-04-06 12:26:56 UTC
Created attachment 200183 [details]
This is the document creating spacing issues
Comment 2 Daniel 2025-04-06 12:27:26 UTC
Created attachment 200184 [details]
PDF created by WORD
Comment 3 Daniel 2025-04-06 12:27:46 UTC
Created attachment 200185 [details]
PDF created by Libreoffice
Comment 4 Daniel 2025-04-06 12:28:42 UTC
Here i have attached the source document created in Microsoft Word that shows the spacing issues


2 more PDFs ... one PDF created by WORD, the next one created by LibreOffice
Comment 5 Mateusz Wlazłowski 2025-04-06 13:04:23 UTC
I can confirm.

The space below "International news" (and therefore the yellow background) is lacking when opening the file in Writer and exporting to pdf.


Version: 25.2.2.2 (X86_64) / LibreOffice Community
Build ID: 7370d4be9e3cf6031a51beef54ff3bda878e3fac
CPU threads: 8; OS: Linux 6.11; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Flatpak
Calc: threaded


Version: 25.2.2.2 (X86_64) / LibreOffice Community
Build ID: 7370d4be9e3cf6031a51beef54ff3bda878e3fac
CPU threads: 2; OS: Windows 11 X86_64 (10.0 build 22621); UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded
Comment 6 Telesto 2025-05-01 18:41:36 UTC
Also in
Versie: 4.2.0.4 
Build ID: 05dceb5d363845f2cf968344d7adab8dcfb2ba71

even worse in
Versie: 4.1.0.4 
Build ID: 89ea49ddacd9aa532507cbf852f2bb22b1ace28