Bug 164240 - Exported PDF doesn't take "Spacing to Borders" into account properly
Summary: Exported PDF doesn't take "Spacing to Borders" into account properly
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Printing and PDF export (show other bugs)
Version:
(earliest affected)
24.8.3.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: QA:needsComment
Keywords:
Depends on:
Blocks: PDF-Export
  Show dependency treegraph
 
Reported: 2024-12-08 12:13 UTC by Joshua Ali
Modified: 2025-01-08 15:59 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
Original .odg file that was exported (10.81 KB, application/vnd.oasis.opendocument.graphics)
2024-12-08 12:21 UTC, Joshua Ali
Details
Exported PDF file (16.78 KB, application/pdf)
2024-12-08 12:23 UTC, Joshua Ali
Details
Screenshot from the .odg file (12.87 KB, image/png)
2024-12-08 12:23 UTC, Joshua Ali
Details
Screenshot from the PDF file (10.67 KB, image/png)
2024-12-08 12:24 UTC, Joshua Ali
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joshua Ali 2024-12-08 12:13:48 UTC
Description:
I created a square and typed a plus sign inside (Font: Libertinus Math, 24pt, Bold); however, this issue happens with any font. However, I wanted the the plus sign to be centered exactly in the middle of the square. By default, with proportional spacing to borders (1.35 mm from all sides), it was a little bit below and left of the center. So I had to change it left and top spacing to 1.00 mm and 0.6 mm respectively. This way the plus sign would be centered in the middle of the square. 
The problem is that when I exported this document as a PDF file, the plus sign is off center. It is a Hybrid PDF file. So, I can view the editable .odg file to confirm that it has been exported properly.

Steps to Reproduce:
1. Create a LibreOffice Draw document.
2. Enable "Snap to Grid" and make sure that grid subdivisions are small enough to accommodate this procedure. I used 1 mm subdivisions.
3. Draw a square, 10 mm sides, for example.
4. Draw 2 diagonal lines, as well as a vertical and a horizontal line through the center of the square to pinpoint its center
5. Write a plus sign inside the square
6. Zoom in. The center off the plus sign will appear off the center of the square.
7. Change the "Spacing to Border" to align their centers.
8. Export the document as PDF and compare them.

Actual Results:
The centers of the square and the plus sign are not aligned in the exported PDF document.

Expected Results:
The plus sign should appear exactly where it appeas in the .odg file.


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 24.8.3.2 (X86_64)
Build ID: 480(Build:2)
CPU threads: 16; OS: Linux 6.11; UI render: default; VCL: kf6 (cairo+wayland)
Locale: de-DE (en_GB.UTF-8); UI: en-US
Calc: CL threaded
Comment 1 Joshua Ali 2024-12-08 12:21:42 UTC
Created attachment 198006 [details]
Original .odg file that was exported
Comment 2 Joshua Ali 2024-12-08 12:23:02 UTC
Created attachment 198007 [details]
Exported PDF file
Comment 3 Joshua Ali 2024-12-08 12:23:49 UTC
Created attachment 198008 [details]
Screenshot from the .odg file
Comment 4 Joshua Ali 2024-12-08 12:24:20 UTC
Created attachment 198009 [details]
Screenshot from the PDF file