Bug 117398 - Pdf export should not autorotate pdf image
Summary: Pdf export should not autorotate pdf image
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.4.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, regression
: 127456 129287 (view as bug list)
Depends on:
Blocks: PDF-Export
  Show dependency treegraph
 
Reported: 2018-05-02 21:57 UTC by Wolfram Fischer
Modified: 2023-12-01 15:58 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
testfile with image in portrait orientation (71.99 KB, application/vnd.oasis.opendocument.text)
2018-05-02 21:57 UTC, Wolfram Fischer
Details
pdf image imported (in portrait orientation) (12.48 KB, application/pdf)
2018-05-02 21:59 UTC, Wolfram Fischer
Details
Pdf export of testfile with autorotated image (landscape orientation) (27.90 KB, application/pdf)
2018-05-02 22:00 UTC, Wolfram Fischer
Details
6.4.7.2 vs. 7.6.2 (144.99 KB, image/png)
2023-11-22 15:27 UTC, kdub
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Wolfram Fischer 2018-05-02 21:57:58 UTC
Created attachment 141851 [details]
testfile with image in portrait orientation

- I rotated a landscape image by `pdftk x.pdf cat 1left output x-rot270.pdf`.
- I imported this pdf image (with portrait orientation) into LibreOffice Writer.
- I made a pdf export.
--> The image in the pdf export file is autoratated into landscape orientation.
Comment 1 Wolfram Fischer 2018-05-02 21:59:05 UTC
Created attachment 141852 [details]
pdf image imported (in portrait orientation)
Comment 2 Wolfram Fischer 2018-05-02 22:00:30 UTC
Created attachment 141853 [details]
Pdf export of testfile with autorotated image (landscape orientation)
Comment 3 raal 2018-05-03 16:03:27 UTC
Confirm, Version: 6.1.0.0.alpha1+
Build ID: 4dbce627d3643babaf90a93c70b365ff08abfca6
CPU threads: 4; OS: Linux 4.4; UI render: default; VCL: gtk3; 

regression
Comment 4 Xisco Faulí 2018-05-04 10:37:42 UTC
Before https://cgit.freedesktop.org/libreoffice/core/commit/?id=1ec8557d86d53c9df5afd5607a953ec72c33702f, it was exported as displayed in attachment 141467 [details], then the export is broken for some commits, and finally it works again after https://cgit.freedesktop.org/libreoffice/core/commit/?id=242a9b634213acf03cabc373928555dc81afc672, when the output is already incorrect

Adding Miklos to the loop...
Comment 5 QA Administrators 2019-05-05 03:30:34 UTC Comment hidden (obsolete)
Comment 6 Timur 2019-09-17 07:03:05 UTC
Repro 64+. I guess we have duplicates here.
Comment 7 Xisco Faulí 2019-09-23 15:41:52 UTC
*** Bug 127456 has been marked as a duplicate of this bug. ***
Comment 8 Timur 2019-12-09 19:09:11 UTC
*** Bug 129287 has been marked as a duplicate of this bug. ***
Comment 9 QA Administrators 2021-12-09 04:30:14 UTC Comment hidden (obsolete)
Comment 10 kdub 2023-11-22 15:27:33 UTC
Created attachment 190971 [details]
6.4.7.2 vs. 7.6.2

Hey Wolfram,

I can confirm that this bug is still present on 6.4.7.2 and 7.6.2. Interestingly, in version 7.6.2, the bug is a bit different in that the image is not found at all. I have attached a screenshot. Left is 6.4.7.2 and right is 7.6.2.
Comment 11 Buovjaga 2023-12-01 15:58:35 UTC
This was fixed in 7.2 with d7d43cf460d66354a40ffa3b34c0f9efcd42d0be

I don't reproduce the blankness shown in comment 10 with 7.6 or 24.2 on Linux or Windows.

kdub: could the blankness be macOS-specific? If you can reproduce it with 24.2, you might create a new report. You don't have to upload the test file again, you can reference it by saying: attachment 141851 [details]