<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - LibODev 7.0 Beta 1 regression in insertion of PDF image wrt image size"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=133546#c9">Comment # 9</a>
              on <a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - LibODev 7.0 Beta 1 regression in insertion of PDF image wrt image size"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=133546">bug 133546</a>
              from <span class="vcard"><a class="email" href="mailto:sergio.callegari@gmail.com" title="sergio.callegari@gmail.com">sergio.callegari@gmail.com</a>
</span></b>
        <pre>I have attached a test case. To reproduce, it is sufficient to fire up LibO
draw and use insert->image.

In LibO 6.4 the image gets inserted correctly. The inserted image is 100mm x
100 mm as it should.

In LibO 7 beta the image gets inserted at a too big size, namely it is scaled
to the margins even if the original image was small enough to fit in the
margin.

There are also other minor problems. They will probably best be addressed in
separate bugs, but I'd like to also mention them here just in case they can get
fixed as side effects of fixing the principal issue:

1. When the image is scaled to the margins, its position is not aligned to the
margins.

2. The resolution by which the pdf image is inserted visualizing a raster
version of it for efficiency is too low. This is likely a side effect of LibO 7
beta scaling the image up. However, the same thing also happens in LibO 6.x if
one inserts the image and then manually scales it up to a larger size. Because,
LibO knows the original vector image, the bitmap should probably be
automatically refreshed when the image is scaled, in order to get an
appropriate resolution.

3. The original PDF image has no background. However, the inserted image has a
solid white background. This is <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Pdfium based insertion of a PDF as image results in unwanted solid background, enhancement request to support break after insert (comment 4)"
   href="show_bug.cgi?id=106581">bug 106581</a>.</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>