diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2022-02-04 10:55:28 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2022-02-04 16:42:55 +0100 |
commit | 50682cea4196819980c8e2d4018f80384097ce6f (patch) | |
tree | d31454565bd1707859c9d907788b77d592379a97 /extensions | |
parent | ad674edf394bd1c9b56410b5f53587c303693fcc (diff) |
PDF export: improve precision of pdf image sizes
This helps exporting full-page PDF images from Draw more accurately. In
case the page size was A4, then the page height is 841.8897637795276
i.e. 842 points. Full-page PDF images are scaled to this size, so the
referred PDF form XObject has the reciprocal of that scaling. We used
to just write 0.00118, doubling the precision leads to
0.0011878840.
In practice the old precision resulted in e.g. hyperlink rectangles to
get out of sync with link text after 2 roundtrips, while the new
precision doesn't result in any noticeable modification to the link text
position after a roundtrip.
Change-Id: I72cc68696b9b9bcc1cbfde8df331c2b9c5f9eb29
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129482
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'extensions')
0 files changed, 0 insertions, 0 deletions