Bug 1081968

Summary: libreoffice produces incorrect PDF export of cropped SVG graphics
Product: [Fedora] Fedora Reporter: Paul DeStefano <prd-fedora>
Component: libreofficeAssignee: Caolan McNamara <caolanm>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: caolanm, dtardon, erack, ltinkl, majzoube, mstahl, sbergman
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-04-01 09:04:37 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Bad PDF output
none
Source file for the bad PDF export none

Description Paul DeStefano 2014-03-28 10:52:46 UTC
Created attachment 879784 [details]
Bad PDF output

Description of problem:

PDF Export function produces bad output for cropped graphics, sometimes.

Version-Release number of selected component (if applicable):
libreoffice-writer-4.2.2.1-7.fc20.x86_64

How reproducible:
The output is wrong every time I export it, but I'm not sure what is the dependence on the source.  I haven't seen this before, and I've use cropping in the past.

Steps to Reproduce:
1. add graphic to file
2. right click > picture > crop tab
3. Make adjustments and print to PDF.

Actual results:
Cropped image is not cropped, although image border is smaller than full image.


Expected results:
Crop should hide parts of image.


Additional info:
I'm not sure what type of graphic this is; I can't find the original source file.  Plus, the original document was created with and older version of libreoffice (F19).  But, I copied the image from the old document into a new document and was able to reproduce the error.

Comment 1 Paul DeStefano 2014-03-28 10:53:36 UTC
Created attachment 879785 [details]
Source file for the bad PDF export

Comment 2 Michael Stahl 2014-03-28 14:03:20 UTC
it's a regression, worked in LO 3.6.7 but broken since LO 4.0 (with the new SVG implementation)

Comment 3 Eric M 2017-08-04 01:08:09 UTC
This is still broken in 5.3.4.2. Importing images in either jpeg, or eps, and cropping results in incorrect exported PDFs. Also, just closing the ods file and reopening using the same LibreOffice results in loss of aspect ratio somehow.