Bug 128379 - Exported v1.5 PDF with embedded PDF cannot be opened with Adobe Reader (other readers work)
Summary: Exported v1.5 PDF with embedded PDF cannot be opened with Adobe Reader (other...
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Printing and PDF export (show other bugs)
Version:
(earliest affected)
6.1.0.0.beta1+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: target:7.5.0
Keywords: bibisected, bisected
Depends on:
Blocks: PDF-Export-Invalid
  Show dependency treegraph
 
Reported: 2019-10-25 06:53 UTC by bagus
Modified: 2023-01-01 16:04 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
sample of generated pdf from impress (1.81 MB, application/wps-office.pdf)
2019-10-25 14:45 UTC, bagus
Details
add odp file (2.26 MB, application/vnd.oasis.opendocument.presentation)
2019-11-01 06:06 UTC, bagus
Details
Minimal sample (107.50 KB, application/vnd.oasis.opendocument.presentation)
2020-02-02 07:45 UTC, Aron Budea
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bagus 2019-10-25 06:53:49 UTC
Description:
pdf file generated by Impress cannot be open from windows.
Error message in adobe acrobat:  
  There was an error when processing a page. There was a problem reading this document (109)

Steps to Reproduce:
1.Open libreoffice impress
2.Make some slides
3.Click export as pdf (default setting)
4.Open generated pdf in windows

Actual Results:
Cannot open pdf file

Expected Results:
pdf file generated by Impress can be opened from Windows OS.


Reproducible: Always


User Profile Reset: Yes



Additional Info:
Version: 6.2.8.2
Build ID: 1:6.2.8~rc2-0ubuntu0.16.04.1
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk2; 
Locale: en-US (en_US.UTF-8); UI-Language: en-US
Calc: threaded
Comment 1 Xisco Faulí 2019-10-25 08:40:29 UTC Comment hidden (obsolete)
Comment 2 bagus 2019-10-25 14:45:53 UTC Comment hidden (obsolete)
Comment 3 bagus 2019-10-25 14:46:57 UTC Comment hidden (obsolete)
Comment 4 Timur 2019-10-26 19:13:19 UTC Comment hidden (obsolete)
Comment 5 bagus 2019-11-01 06:06:54 UTC
Created attachment 155437 [details]
add odp file

This is sample of odp file that generate pdf which can not be opened from windows.
Comment 6 Timur 2019-11-01 07:58:47 UTC
I can open attachment 155311 [details] PDF (19 pages) in Windows 7 with Master PDF Editor, PDF-Xchange and Adobe Reader. Maybe you attached the wrong PDF.

But I do repro in Windows with attachment 155437 [details] ODP, same the error when opening exported PDF with Adobe 2011 or Adobe 2019. Repro LO 6.1.0 and master 6.4+. So there's the bug.
But document opens with Master PDF Editor, PDF-Xchange. So I change the title.

No repro with LO 6.0 so I put regression. Bug 127217 and bug 127493 start from LO 6.3 in bug 113448, so not likely the same. 
Technically one can print to PDF so there's a workarund. But there's a number of bugs related to Adobe Reader, so they deserve to be looked at.
Comment 7 bagus 2019-11-01 08:06:44 UTC
Yes. Unfortunately, most windows users uses adobe as pdf reader. 
First attached pdf file is also wrong. Used the second odp file to generate pdf.
Comment 8 Aron Budea 2020-02-02 07:39:43 UTC
Issue started with the following commit. Let's assume this isn't a regression, but certain part of the export code isn't compatible with PDF 1.5 (or an incompatibility in Adobe Reader, but I'm guessing the former).

I also cut down the file to the problematic part, it seems that an embedded PDF is causing the problem.

https://cgit.freedesktop.org/libreoffice/core/commit/?id=99ac4ee05b039166eedfe361fb985682fd92dd13
author		Khaled Hosny <khaledhosny@eglug.org>	2018-04-24 09:57:00 +0200
committer	Miklos Vajna <vmiklos@collabora.co.uk>	2018-04-27 15:41:42 +0200

Change default PDF version to 1.5
Comment 9 Aron Budea 2020-02-02 07:45:47 UTC
Created attachment 157596 [details]
Minimal sample

Note that this isn't the only embedded PDF from the presentation that causes a problem after export (and not all embedded PDFs cause an error in Adobe Reader), so a fix should be double-checked against the original.
Comment 10 ⁨خالد حسني⁩ 2022-12-28 21:50:20 UTC

*** This bug has been marked as a duplicate of bug 119880 ***
Comment 11 Aron Budea 2022-12-31 20:18:49 UTC
This got fixed sometimes after 7.4.0.3, and is now fine in LO 7.6.0.0.alpha0+ (12e8d57e791bb1befc0716d4d02af7d1d1ccb4ae) / Windows.
I'm assuming this isn't a duplicate in bug 119880.
Comment 12 Aron Budea 2023-01-01 16:04:37 UTC
Reverse bibisecting points to the following fixing commit.

https://cgit.freedesktop.org/libreoffice/core/commit/?id=3f9e8ac6172f5b1dfd2869ee1c6aea4f24d3f480

author		Dennis Francis <dennis.francis@collabora.com>	2022-10-18 16:14:37 +0530
committer	Dennis Francis <dennis.francis@collabora.com>	2022-10-27 07:54:59 +0200

vcl: re-exporting broken pdfs -> empty pages