Bug 82221 - PDF export with an SVG image mangles entire document
Summary: PDF export with an SVG image mangles entire document
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Printing and PDF export (show other bugs)
Version: 4.2.5.2 release
Hardware: Other Mac OS X (All)
: medium major
Assignee: Not Assigned
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-06 03:22 UTC by felipe
Modified: 2014-08-11 10:20 UTC (History)
4 users (show)

See Also:
i915 platform:
i915 features:


Attachments
What gets mangled … (152.71 KB, application/vnd.oasis.opendocument.text)
2014-08-06 03:22 UTC, felipe
Details
The SVG document that was included (9.61 KB, image/svg+xml)
2014-08-06 03:22 UTC, felipe
Details
The mangled PDF (141.84 KB, application/pdf)
2014-08-06 03:23 UTC, felipe
Details
PDF export from LibO 4.2.6 (116.51 KB, application/pdf)
2014-08-06 04:24 UTC, Jay Philips
Details

Description felipe 2014-08-06 03:22:05 UTC
Created attachment 104118 [details]
What gets mangled …

The attached document gets mangled when it exports PDF (attached).
Comment 1 felipe 2014-08-06 03:22:57 UTC
Created attachment 104119 [details]
The SVG document that was included
Comment 2 felipe 2014-08-06 03:23:29 UTC
Created attachment 104120 [details]
The mangled PDF
Comment 3 felipe 2014-08-06 03:24:04 UTC
NOTE: The mangling doesn’t happen if I don’t attach the SVG.

The SVG originates from Finale 2014c, btw.
Comment 4 felipe 2014-08-06 03:25:04 UTC
Also, I get transparency errors when I export to PDF.

Also, if I use the OS’s PDF export feature (“Save as PDF” in the print dialogue), it errors without saving a new file.
Comment 5 Jay Philips 2014-08-06 04:24:16 UTC
Created attachment 104121 [details]
PDF export from LibO 4.2.6

Hello felipe,

Thank you for submitting the bug. I tested the document on Linux with 4.2.6, 4.3.1 and master and it wasnt a problem. Its possible its not showing for me as i dont have the 'GoudyOlSt BT' font installed.
Comment 6 Jay Philips 2014-08-06 04:25:25 UTC
I have forward this onto our QA mac team to have a look at.
Comment 7 foss 2014-08-11 07:02:38 UTC
Trying to confirm this bug, the following happened:

* open LO 4.3.0.4 or 4.4.0.0a0+
* Insert > Image > From File
* select SVG (second attachment from this bug)

Result: the svg get's displayed wrong (no notes, but a "w" and a line.

Well, at least when exporting to PDF, I see the same.

Felipe: could you try with LO 4.3.0.4 and see, if you get identical results?

I'm setting this to NEW since either way we have a bug at hand. Either the svg is not displayed correctly (4.3.0.4) or the svg is not correctly exported (4.2.x) the latter which I didn't test and couldn't confirm with 4.3.0.4.
Comment 8 Alex Thurgood 2014-08-11 09:55:41 UTC
Image seems to display and export just fine for me on OSX 10.9.4

Version: 4.4.0.0.alpha0+
Build ID: a0b89100be8ccc2b60d08d7e3819cd247a6042b0

that is my master build
Comment 9 Alex Thurgood 2014-08-11 09:59:43 UTC
I used the posted ODT file for testing. 

SVG image import is known to be buggy, dependent on the svg image properties and the LO module code importing the svg, as far as I understand.
Comment 10 Alex Thurgood 2014-08-11 10:06:55 UTC
Also seems fine on LO 4242, am I perhaps missing something ? What is not being displayed correctly ?
Comment 11 Alex Thurgood 2014-08-11 10:15:14 UTC
Ah, now I see the problem. I downloaded the svg file and then opened it, by default in Safari, which shows the notes on the stave> Firefox, however, shows the same things as LO, hence my confusion.

Confirming that LO incorrectly displays svg file, hence export to pdf also wrong.
Comment 12 Alex Thurgood 2014-08-11 10:20:24 UTC
fwiw, the svg is also correctly displayed in Google Chrome


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.