Bug 104720 - XLSX file is not correctly converted to PDF
Summary: XLSX file is not correctly converted to PDF
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Printing and PDF export (show other bugs)
Version:
(earliest affected)
5.2.4.1 rc
Hardware: x86 (IA32) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-16 22:43 UTC by Witalik
Modified: 2016-12-29 15:15 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
source of XLSX file (9.35 MB, application/zip)
2016-12-16 22:43 UTC, Witalik
Details
should be like this PDF file: correctly converted by url https://online2pdf.com/convert-xlsx-to-pdf (1.34 MB, application/pdf)
2016-12-16 22:52 UTC, Witalik
Details
PDF file converted from source of XLSX file - LibreOffice_5.2.4.1_Win_x86 (7.08 MB, application/pdf)
2016-12-16 22:57 UTC, Witalik
Details
another source of XLSX file - which not correctly converted to PDF (5.27 MB, application/zip)
2016-12-16 23:00 UTC, Witalik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Witalik 2016-12-16 22:43:02 UTC
Created attachment 129699 [details]
source of XLSX file
Comment 1 Witalik 2016-12-16 22:52:14 UTC
the main problem - a pictures stretch full page
Comment 2 Witalik 2016-12-16 22:52:35 UTC
Created attachment 129700 [details]
should be like this PDF file: correctly converted by url https://online2pdf.com/convert-xlsx-to-pdf

the picture does not stretch to full page
Comment 3 Witalik 2016-12-16 22:57:17 UTC
Created attachment 129701 [details]
PDF file converted from source of XLSX file - LibreOffice_5.2.4.1_Win_x86

Pictures stretched and imposed on the entire page
Comment 4 Witalik 2016-12-16 23:00:18 UTC
Created attachment 129702 [details]
another source of XLSX file - which not correctly converted to PDF

Pictures stretched and imposed on the entire page
Comment 5 MM 2016-12-18 12:10:22 UTC
It looks like that picture is corrupted in the first place. It has a height of 0 and is flipped vertically. That's why it looks wrong when saving to pdf.
Comment 6 Buovjaga 2016-12-18 19:08:33 UTC
(In reply to MM from comment #5)
> It looks like that picture is corrupted in the first place. It has a height
> of 0 and is flipped vertically. That's why it looks wrong when saving to pdf.

Witalik: do you agree?
Comment 7 Witalik 2016-12-19 20:11:16 UTC
maybe you're right,

but MS Office
- shows the picture correctly (not corrupted).
site: https://online2pdf.com/convert-xlsx-to-pdf
site: https://smallpdf.com/excel-to-pdf
- show converted picture correctly (not corrupted).
Comment 8 MM 2016-12-23 20:09:10 UTC
It -looks- that the picture in case is a double on that page, named 'picture 16'. Maybe it got there when doing a faulty copy/paste in excel. And when opened again, excel might ignore this one aswell.
If I convert the file to xls or pdf it seems this corrupt picture is ignored (not written to file), so everything looks fine. If you remove that picture and save, it also looks fine when importing and save to pdf.
Comment 9 Buovjaga 2016-12-29 15:15:35 UTC
(In reply to Witalik from comment #7)
> maybe you're right,
> 
> but MS Office
> - shows the picture correctly (not corrupted).

Not true: according to your PDF and my test on MSO 2013, the corrupted pictures are NOT shown AT ALL.

As this is about the difference of displaying or not displaying corrupt pictures, I don't think we can see this as a bug. Closing.