<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - Draw -> Insert -> Image... PDF file incorrectly scaled"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=131971">131971</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Draw -> Insert -> Image... PDF file incorrectly scaled
</td>
</tr>
<tr>
<th>Product</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Version</th>
<td>6.3.5.2 release
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>Mac OS X (All)
</td>
</tr>
<tr>
<th>Status</th>
<td>UNCONFIRMED
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>Draw
</td>
</tr>
<tr>
<th>Assignee</th>
<td>libreoffice-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>simon@web.org.uk
</td>
</tr></table>
<p>
<div>
<pre>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 <a href="http://web.org.uk/tmp/draw/SL91.pdf">http://web.org.uk/tmp/draw/SL91.pdf</a>
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</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>