<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 - FILESAVE PDF Embedded and cropped PDF is incorrectly exported to PDF"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=135002">135002</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>FILESAVE PDF Embedded and cropped PDF is incorrectly exported to PDF
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>5.4.0.3 release
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Keywords</th>
          <td>implementationError
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Printing and PDF export
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>libreoffice@nisz.hu
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>nemeth@numbertext.org, vmiklos@collabora.com
          </td>
        </tr>

        <tr>
          <th>Blocks</th>
          <td>103378
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=163342" name="attach_163342" title="Example document with embedded PDF">attachment 163342</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=163342&action=edit" title="Example document with embedded PDF">[details]</a></span>
Example document with embedded PDF

Attached user made (in 6.3) document contains an image embedded in the header
that was originally a PDF file. 
This file contains a larger image that is cropped to show a smaller, relevant
portion of the image.
Upon exporting the whole document to PDF the image from the PDF is incorrectly
cropped and a different portion of the larger image is visible.

Steps to reproduce:
1.      Open attached file
2.      Go to the header and select Insert - Image
3.      Insert the attached PDF file as image
4.      Export the document to PDF

Actual results:
The exported PDF shows a grey box with text “II. AZ EMBLÉMA SZÍNE”

Expected results:
Exported PDF contains the image cropped the same way as in the editor.

LibreOffice details:
Version: 7.1.0.0.alpha0+ (x64)
Build ID: a3e52f63c92876b4a3ac6df61e05b1d3510ba9c9
CPU szálak: 4; OS: Windows 6.3 Build 9600; Felületmegjelenítés:
alapértelmezett; VCL: win
Locale: hu-HU (hu_HU); UI: hu-HU
Calc: CL

Also happens in
Version: 5.4.0.3
Build ID: 92c2794a7c181ba4c1c5053618179937228ed1fb
CPU threads: 4; OS: Windows 6.2; UI render: GL; 
Locale: en-US (hu_HU); Calc: CL

In 5.3 the PDF was not imported cropped in the editor.
In 5.2 and older the export looked correct, although probably because of the
placeholder PNG which is also saved.

Additional Information: 

Bibisected the current state using bibisect-win32-5.4 to: 
URL:
<a href="https://cgit.freedesktop.org/libreoffice/core/commit/?id=242a9b634213acf03cabc373928555dc81afc672">https://cgit.freedesktop.org/libreoffice/core/commit/?id=242a9b634213acf03cabc373928555dc81afc672</a> 
author  Miklos Vajna <<a href="mailto:vmiklos@collabora.co.uk">vmiklos@collabora.co.uk</a>>  2017-04-05 15:35:13 +0200
committer       Miklos Vajna <<a href="mailto:vmiklos@collabora.co.uk">vmiklos@collabora.co.uk</a>>  2017-04-05 19:07:32
+0200

<a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - PDF export: pdf images mishandled for LO writer pdf export output"
   href="show_bug.cgi?id=106972">tdf#106972</a> vcl PDF export, PDF images: handle indirect font references

Right before this there was only an empty space exported… but before this
commit:
<a href="https://cgit.freedesktop.org/libreoffice/core/commit/?id=9c944b0d1bff9a0ab1b7e8454c9ac5e7194aa533">https://cgit.freedesktop.org/libreoffice/core/commit/?id=9c944b0d1bff9a0ab1b7e8454c9ac5e7194aa533</a>
author  Miklos Vajna <<a href="mailto:vmiklos@collabora.co.uk">vmiklos@collabora.co.uk</a>>  2017-03-29 09:47:09 +0200
committer       Miklos Vajna <<a href="mailto:vmiklos@collabora.co.uk">vmiklos@collabora.co.uk</a>>  2017-03-29 08:46:52
+0000

vcl PDF export, norefxobj: add UI for this

The correct image (or PDF?) was exported. With current master turning ON the
“Use reference XObjects” option on the PDF Export dialog also creates this
expected result.

Adding CC to: Miklos Vajna - not necessarily regression, but perhaps an
improvement opportunity for the new PDF export method :)</pre>
        </div>
      </p>

        <div id="referenced">
          <hr style="border: 1px dashed #969696">
          <b>Referenced Bugs:</b>
          <ul>
              <li>
                [<a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [META] PDF export bugs and enhancements"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=103378">Bug 103378</a>] [META] PDF export bugs and enhancements
              </li>
          </ul>
        </div>
        <br>

      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>