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

            Bug ID: 164240
           Summary: Exported PDF doesn't take "Spacing to Borders" into
                    account properly
           Product: LibreOffice
           Version: 24.8.3.2 release
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Printing and PDF export
          Assignee: [email protected]
          Reporter: [email protected]

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

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

Reply via email to