Bug 166709 - Writer doc with shape exported as PDF fails to open in PDF reader.
Summary: Writer doc with shape exported as PDF fails to open in PDF reader.
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Printing and PDF export (show other bugs)
Version:
(earliest affected)
25.2.0.0 alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, filter:pdf, regression
Depends on:
Blocks: CairoSDPR
  Show dependency treegraph
 
Reported: 2025-05-23 21:27 UTC by Jazevedo
Modified: 2025-05-28 19:26 UTC (History)
8 users (show)

See Also:
Crash report or crash signature:


Attachments
A sample file to reproduce this issue (13.31 KB, application/vnd.oasis.opendocument.text)
2025-05-23 21:27 UTC, Jazevedo
Details
The output PDF that fails to open (5.11 MB, application/pdf)
2025-05-23 21:29 UTC, Jazevedo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jazevedo 2025-05-23 21:27:18 UTC
Created attachment 200936 [details]
A sample file to reproduce this issue

Steps:

- Open the sample file in Libreoffice 25.2.0.0.alpha0+ or later.
- Select: File > Export As > Export Directly as PDF
- Open the file in a PDF viewer application that uses poppler like: Evince, or Okular, or Papers 

Result: 

- The Exported PDF fails to open in the PDF viewer.
- It will open in a Browser PDF viewer like Firefox or chrome. 

A bisect indicates that this issue started with this commit: 

https://git.libreoffice.org/core/+/462d85709ead9c7cec33ce58fc608997263cb6aa%5E!
https://gerrit.libreoffice.org/c/core/+/170900

commit 462d85709ead9c7cec33ce58fc608997263cb6aa	[log]
author	Armin Le Grand (Collabora) <Armin.Le.Grand@me.com>	Tue Jul 23 13:26:34 2024 +0200
committer	Armin Le Grand <Armin.Le.Grand@me.com>	Tue Jul 23 18:35:26 2024 +0200
tree 3eef2f07a6bef84a3ba02d49c9536ab58d5abfbf
parent 863b90e33c4b9964a697684887aeb42cc538b019 [diff]

CairoSDPR: Support alpha for BitmapPrimitives


The bad commit in the Bibisect 25.2 bibisect repo is: 028867b464ec3569c3fbc557a5598259c4c7db2e

This commit causes another issue with Exported tagged PDF, as they are abnormally large in size. 
But I am not sure if that should be a separate issue.

Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 462d85709ead9c7cec33ce58fc608997263cb6aa
CPU threads: 20; OS: Linux 6.12; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 1 Jazevedo 2025-05-23 21:29:56 UTC
Created attachment 200937 [details]
The output PDF that fails to open
Comment 2 Jazevedo 2025-05-23 21:32:58 UTC
I made a mistake in the second step, what I meant was: 

Select: File > Export As > Export as PDF

Sorry for this mistake.
Comment 3 m_a_riosv 2025-05-23 21:56:43 UTC
Reproducible
Version: 25.8.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 3158b14e0b26875300a8098bc117a5e69b76f48f
CPU threads: 16; OS: Windows 11 X86_64 (build 26100); UI render: Skia/Raster; VCL: win
Locale: en-US (es_ES); UI: en-US
Calc: CL threaded

Deleting one of the shapes before exporting shows the issue.

But not sure if it is a LibreOffice bug or Adobe Acrobat but.
Comment 4 mikhail.machine 2025-05-26 06:51:26 UTC
Hello Jazevedo,

Thank you for reporting the bug. I can confirm that the bug is present in master.

Version: 25.2.2.2 (X86_64) / LibreOffice Community
Build ID: 7370d4be9e3cf6031a51beef54ff3bda878e3fac
CPU threads: 12; OS: Windows 10 X86_64 (10.0 build 19045); UI render: Skia/Raster; VCL: win
Locale: en-US (en_FI); UI: en-US
Calc: threaded
Comment 5 Timur 2025-05-26 09:06:11 UTC
This is LO bug. Although some PDF readers still can open it, prevoiously all could and size is much bigger.
Comment 6 Alan B. 2025-05-26 09:16:53 UTC
Oddly, attempting to open the sample ODT file in an effort to reproduce this bug crashes my LibreOffice entirely.

Version: 25.8.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 94231af057db7871fb993582e2015c0fa21dde46
CPU threads: 16; OS: Windows 10 X86_64 (build 19045); UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded
Comment 7 Jazevedo 2025-05-27 13:34:40 UTC Comment hidden (obsolete)
Comment 8 Telesto 2025-05-28 19:25:02 UTC
(In reply to Alan from comment #6)
> Oddly, attempting to open the sample ODT file in an effort to reproduce this
> bug crashes my LibreOffice entirely.

Related to: Skia/Vulkan. Covered by Bug 166715