Bug 134730 - LibreOffice Draw's PDF export rotates imported image
Summary: LibreOffice Draw's PDF export rotates imported image
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
7.0.0.1 rc
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-11 09:51 UTC by Erik
Modified: 2022-07-17 17:00 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
export as pdf with unexpected rotation of imported image (274.72 KB, application/octet-stream)
2020-07-11 09:56 UTC, Erik
Details
export as pdf without rotation of imported image (170.85 KB, application/octet-stream)
2020-07-11 09:59 UTC, Erik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Erik 2020-07-11 09:51:19 UTC
Description:
When "Exporting as PDF" or "Direct export as PDF" in some cases an imported image gets rotated; contrary to what the editing screen shows. This does not happen when printing to PDF.

The bug is limited to specific images, but I have no idea why. Maybe it could be because the image originated from a (rotated) PDF but I am not sure.



Steps to Reproduce:
1. open .odg with an imported image 
2. export as PDF

Actual Results:
In some cases, the imported image is rotated 90° consistently.

Expected Results:
Just print the image as shown on screen.



Reproducible: Always


User Profile Reset: No



Additional Info:
Print what is shown on the editing screen.

I could provide two files: one with an image where the unexpected rotation happens and one where this rotation does not happen.

This bug occurs in 7.0.0 RC1 as well as in 6.4 versions.
Comment 1 Erik 2020-07-11 09:56:48 UTC
Created attachment 162900 [details]
export as pdf with unexpected rotation of imported image

An .odg file where the unexpected rotation of imported image occurs.
Comment 2 Erik 2020-07-11 09:59:25 UTC
Created attachment 162901 [details]
export as pdf without rotation of imported image

A similar .odg file where the imported image is preserved; so without that unexpected rotation.
Comment 3 Tomaz Vajngerl 2020-07-11 16:15:25 UTC
Hmm.. interesting issue. We embed the PDF graphic into the exporting PDF, so that the fidelity is preserved. Seems that there is an issue with that with some kinds of PDFs (landscape oriented maybe).

If you want a quick workaround, then enable "Use reference XObjects" in the PDF export dialog and it should show correctly, however the vector PDF will be converted to raster image in this case.
Comment 4 QA Administrators 2022-07-12 03:32:57 UTC Comment hidden (obsolete)
Comment 5 Erik 2022-07-17 17:00:39 UTC
Version: 7.3.4.2 (x64) / LibreOffice Community
Build ID: 728fec16bd5f605073805c3c9e7c4212a0120dc5
CPU threads: 8; OS: Windows 10.0 Build 19044; UI render: Skia/Vulkan; VCL: win
Locale: nl-BE (nl_BE); UI: nl-NL
Calc: threaded