Bug 132142 - Special image breaks exported PDF readability in Acrobat Reader
Summary: Special image breaks exported PDF readability in Acrobat Reader
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Printing and PDF export (show other bugs)
Version:
(earliest affected)
6.4.2.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-16 07:02 UTC by Karel Hruska
Modified: 2020-04-26 14:52 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Source document (209.50 KB, application/vnd.oasis.opendocument.text)
2020-04-16 07:03 UTC, Karel Hruska
Details
PDF export with only JPEG compression; opens fine in Acrobat Reader (56.69 KB, application/pdf)
2020-04-16 07:04 UTC, Karel Hruska
Details
PDF export with only losless compression; opens fine in Acrobat Reader (56.69 KB, application/pdf)
2020-04-16 07:05 UTC, Karel Hruska
Details
PDF export with JPEG compression and resolution reduced to 300 dpi; does not open in Acrobat Reader (56.19 KB, application/pdf)
2020-04-16 07:06 UTC, Karel Hruska
Details
PDF export with lossless compression and resolution reduced to 300 dpi; does not open in Acrobat Reader (56.19 KB, application/pdf)
2020-04-16 07:07 UTC, Karel Hruska
Details
PDF file produced by current master (lossless + 300dpi reduction) (67.04 KB, application/pdf)
2020-04-19 10:15 UTC, Jean-Baptiste Faure
Details
PDF file produced by current master (jpeg+300 dpi reduction) (67.04 KB, application/pdf)
2020-04-19 10:17 UTC, Jean-Baptiste Faure
Details
PDF export with JPEG compression and resolution reduced to 300 dpi; does not open in Acrobat Reader (LO 6.4.3) (64.79 KB, application/pdf)
2020-04-19 18:49 UTC, Karel Hruska
Details
PDF export with lossless compression and resolution reduced to 300 dpi; does not open in Acrobat Reader (LO 6.4.3) (64.79 KB, application/pdf)
2020-04-19 18:50 UTC, Karel Hruska
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Karel Hruska 2020-04-16 07:02:06 UTC
Description:
The exported PDF with attached image is unreadable for Acrobat reader when reduction of dpi is applied.

Steps to Reproduce:
1. Open attached document
2. Export file to PDF with some resolution reduction (e.g. 300 dpi)
3. Open the exported file in Acrobat Reader (either Windows or Linux version)
4. The file cannot be read (error message: "There was an error processing a page. There was a problem reading this document (109)."

Actual Results:
The file cannot be opened.

Expected Results:
The file should be opened.


Reproducible: Always


User Profile Reset: No



Additional Info:
The image in the file origins from this source: https://indico.cern.ch/event/626654/attachments/1523851/2381785/Superconducting_Cables_-_Dr._Mathias_Noe.pdf

The original PDF was opened using Draw, then I changed used fonts and translated axes description into Czech. Then I copy-pasted the image to Writer while choosing "Insert as GDI metafile". After PDF export with change of resolution and the saved PDF file is unreadable to Acrobat Reader.

Further findings:
The output PDF is readable for Okular.
When choosing lossless compression, the output PDF is readable to Acrobat Reader.
When choosing JPEG compression, the output PDF is readable to Acrobat Reader.
Comment 1 Karel Hruska 2020-04-16 07:03:13 UTC
Created attachment 159605 [details]
Source document
Comment 2 Karel Hruska 2020-04-16 07:04:39 UTC
Created attachment 159606 [details]
PDF export with only JPEG compression; opens fine in Acrobat Reader
Comment 3 Karel Hruska 2020-04-16 07:05:23 UTC
Created attachment 159607 [details]
PDF export with only losless compression; opens fine in Acrobat Reader
Comment 4 Karel Hruska 2020-04-16 07:06:30 UTC
Created attachment 159608 [details]
PDF export with JPEG compression and resolution reduced to 300 dpi; does not open in Acrobat Reader
Comment 5 Karel Hruska 2020-04-16 07:07:38 UTC
Created attachment 159609 [details]
PDF export with lossless compression and resolution reduced to 300 dpi; does not open in Acrobat Reader
Comment 6 Jean-Baptiste Faure 2020-04-19 10:13:55 UTC
I can confirm that there is a problem when exporting with resolution reduced to 300 dpi. If I believe it, muPDF viewer says that there is errors in these PDF file, but opens the files without further notice.

I tested PDF export with Version : 6.4.4.0.0+
Build ID : f075eaf3e6e4244cb7b92420e4286848bf22ed91
Threads CPU : 4; OS : Linux 4.15; UI Render : par défaut; VCL: gtk3; 
Ubuntu_18.04_x86-64
Locale : fr-FR (fr_FR.UTF-8); Langue IHM : fr-FR
Calc: threaded

When exported from LibreOffice 7.0.0.0.alpha0+, muPDF opens the files without noticing about error. I will attach both PDF files. Could you test them with your Adobe Reader? I do not have it on my PC and do not want install that Adobe product.

Status set to NEEDINFO, please set it back to UNCONFIRMED once requested
informations are provided.

Best regards. JBF
Comment 7 Jean-Baptiste Faure 2020-04-19 10:15:36 UTC
Created attachment 159698 [details]
PDF file produced by current master (lossless + 300dpi reduction)
Comment 8 Jean-Baptiste Faure 2020-04-19 10:17:51 UTC
Created attachment 159699 [details]
PDF file produced by current master (jpeg+300 dpi reduction)
Comment 9 Karel Hruska 2020-04-19 17:16:22 UTC
Hi Jean-Baptiste,
I've tested your both files with Acrobat and both of them work fine. It seems it has been fixed in the meantime.

Best regards,
K.H.
Comment 10 Karel Hruska 2020-04-19 18:49:58 UTC
Created attachment 159725 [details]
PDF export with JPEG compression and resolution reduced to 300 dpi; does not open in Acrobat Reader (LO 6.4.3)
Comment 11 Karel Hruska 2020-04-19 18:50:47 UTC
Created attachment 159726 [details]
PDF export with lossless compression and resolution reduced to 300 dpi; does not open in Acrobat Reader (LO 6.4.3)
Comment 12 Karel Hruska 2020-04-19 18:53:29 UTC
Recently I did an upgrade to LibreOffice 6.4.3. The resolution change does not work as well, but what is strange, the size of the output file is different for each release with the same settings.
Comment 13 Jean-Baptiste Faure 2020-04-26 14:52:05 UTC
(In reply to Karel Hruska from comment #9)
> Hi Jean-Baptiste,
> I've tested your both files with Acrobat and both of them work fine. It
> seems it has been fixed in the meantime.
> 
> Best regards,
> K.H.

Thank you. So closing as RESOLVED/WorksForMe. Please, feel free to reopen if you the problem again with current master.

Best regards. JBF