https://bugs.documentfoundation.org/show_bug.cgi?id=170833
Bug ID: 170833
Summary: PDF conversion via command line causes header text to
overlap image (DOCX → PDF)
Product: LibreOffice
Version: 26.2.0.3 release
Hardware: All
OS: Windows (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Draw
Assignee: [email protected]
Reporter: [email protected]
Description:
When converting a DOCX file to PDF using soffice.exe in headless mode, header
text overlaps an image located in the header:
soffice.exe --headless --convert-to pdf:draw_pdf_Export D:\test.docx --outdir
D:\
The same document exported to PDF via the LibreOffice UI renders correctly
without layout issues.
Alternative Attempt
Conversion was also tested using Writer export:
soffice.exe --headless --convert-to pdf:writer_pdf_Export D:\test3.docx
--outdir D:\
Result is the same — text overlaps the image in the header.
Version: 26.2.0.3 (X86_64)
Build ID: 620(Build:3)
CPU threads: 8; OS: Windows 11 X86_64 (build 26200); UI render: Skia/Raster;
VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded
Steps to Reproduce:
1.Download input docx file to D:\
2.Run command line:
soffice.exe --headless --convert-to pdf:draw_pdf_Export D:\test.docx --outdir
D:\
3.Open and inspect result pdf file (test.pdf)
Actual Results:
Text in the header overlaps the image when converted via command line (headless
mode).
Expected Results:
The PDF layout should match the original DOCX layout, with text properly
positioned under the image (no overlap), consistent with UI export behavior.
Reproducible: Always
User Profile Reset: No
Additional Info:
Exporting the same document via LibreOffice UI → Export to PDF produces correct
layout.
The issue appears to be specific to headless/CLI conversion.
Version: 26.2.0.3 (X86_64)
Build ID: 620(Build:3)
CPU threads: 8; OS: Windows 11 X86_64 (build 26200); UI render: Skia/Raster;
VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded
--
You are receiving this mail because:
You are the assignee for the bug.