[Libreoffice-bugs] [Bug 135002] New: FILESAVE PDF Embedded and cropped PDF is incorrectly exported to PDF

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Jul 21 07:00:14 UTC 2020


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

            Bug ID: 135002
           Summary: FILESAVE PDF Embedded and cropped PDF is incorrectly
                    exported to PDF
           Product: LibreOffice
           Version: 5.4.0.3 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Keywords: implementationError
          Severity: normal
          Priority: medium
         Component: Printing and PDF export
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: libreoffice at nisz.hu
                CC: nemeth at numbertext.org, vmiklos at collabora.com
            Blocks: 103378

Created attachment 163342
  --> https://bugs.documentfoundation.org/attachment.cgi?id=163342&action=edit
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:
https://cgit.freedesktop.org/libreoffice/core/commit/?id=242a9b634213acf03cabc373928555dc81afc672 
author  Miklos Vajna <vmiklos at collabora.co.uk>  2017-04-05 15:35:13 +0200
committer       Miklos Vajna <vmiklos at collabora.co.uk>  2017-04-05 19:07:32
+0200

tdf#106972 vcl PDF export, PDF images: handle indirect font references

Right before this there was only an empty space exported… but before this
commit:
https://cgit.freedesktop.org/libreoffice/core/commit/?id=9c944b0d1bff9a0ab1b7e8454c9ac5e7194aa533
author  Miklos Vajna <vmiklos at collabora.co.uk>  2017-03-29 09:47:09 +0200
committer       Miklos Vajna <vmiklos at collabora.co.uk>  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 :)


Referenced Bugs:

https://bugs.documentfoundation.org/show_bug.cgi?id=103378
[Bug 103378] [META] PDF export bugs and enhancements
-- 
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/20200721/f289a808/attachment.htm>


More information about the Libreoffice-bugs mailing list