[Libreoffice-bugs] [Bug 131971] New: Draw -> Insert -> Image... PDF file incorrectly scaled

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Apr 7 22:47:37 UTC 2020


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

            Bug ID: 131971
           Summary: Draw -> Insert -> Image... PDF file incorrectly scaled
           Product: LibreOffice
           Version: 6.3.5.2 release
          Hardware: All
                OS: Mac OS X (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Draw
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: simon at web.org.uk

Description:
Draw is able to insert a PDF file as a non-editable, placed image. This is
good, and has a different utility to File -> Open... PDF.

However, an A4 PDF file has a MediaBox that is typically defined as 595 x 842
points which is 8.26" x 11.69" at 72 points/inch.

Draw is Insert -> Image... importing the PDF at an effective scale of 96.78
points/inch and as a result the A4 PDF is rendered at a size of 6.15" x 8.7"
rather than A4 size.

(Note: When File -> Open... foo.pdf is used, the PDF comes in at the correct A4
size)

Tested on two different MacBook Pros running OS X 10.11 (El Capitan), and with
v6.3.5.2 and v6.4.2.2

Using a Draw page size smaller than 6.15" x 8.7" causes the imported PDF to be
scaled down to fit the non-margined area of the page (I believe this is
expected behaviour).

Using an A4 page size with zero margins does not fix the problem.

Using a page size larger than A4 does not fix the problem. Tested up to A0 in
size, inserted PDF continues to come in at the 6.15" x 8.7" dimensions.

Important Note: If I insert the same PDF as a background image on the Master
page (Page -> Set Background Image...) then it comes in at the correct size.

Steps to Reproduce:
1. Create new Draw page with 0 margins and A4 in size
2. Use Insert -> Image... and select a PDF file containing one A4 page
3. Observe that resulting inserted image is the incorrect size (not A4)

Actual Results:
The result is an inserted image that is 6.15" x 8.7" in size, instead of 8.26"
x 11.69"

Expected Results:
A PDF inserted in this way should be sized based on its MediaBox dimensions
scaled at 72 points per inch


Reproducible: Always


User Profile Reset: Yes



Additional Info:
An example PDF is available at http://web.org.uk/tmp/draw/SL91.pdf

The attached screenshot shows the same example PDF when used for the Page ->
Set Background Image (correct size) and the size it appears when Insert ->
Image... is used.

Version: 6.4.2.2
Build ID: 4e471d8c02c9c90f512f7f9ead8875b57fcb1ec3
CPU threads: 8; OS: Mac OS X 10.11.6; UI render: default; VCL: osx; 
Locale: en-GB (en.UTF-8); UI-Language: en-US
Calc: threaded

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200407/0b05095c/attachment.htm>


More information about the Libreoffice-bugs mailing list