Bug 141058 - PPTX to PDF: Images from deeper layers (covered by other objects) aren't omitted, and their decorative flag is ignored.
Summary: PPTX to PDF: Images from deeper layers (covered by other objects) aren't omit...
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
Version:
(earliest affected)
7.1.0.0.alpha0+
Hardware: All All
: medium minor
Assignee: Michael Stahl (allotropia)
URL:
Whiteboard: target:24.2.0 target:7.6.0.0.beta2
Keywords: accessibility, filter:pptx
Depends on:
Blocks: PDF-Accessibility PPTX-Images
  Show dependency treegraph
 
Reported: 2021-03-16 09:59 UTC by Miroslav Michalek
Modified: 2023-07-07 09:52 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Original ppt (979.59 KB, application/vnd.openxmlformats-officedocument.presentationml.presentation)
2021-03-16 10:01 UTC, Miroslav Michalek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Miroslav Michalek 2021-03-16 09:59:05 UTC
Description:
When exporting 5 layer PPT. Images on layer 4 and 5 with the decorative flag aren't omitted or converted to artifact. They are then reported in an accessibility check.

Actual Results:
Images with decorative flags from background layers. They aren't omitted. They are converted into figure tags with an empty alt text.

Expected Results:
It should be omitted at all. Or do not convert to figure with empty alt text.


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.1.0.3 / LibreOffice Community
Build ID: f6099ecf3d29644b5008cc8f48f42f4a40986e4c
CPU threads: 12; OS: Mac OS X 10.16; UI render: default; VCL: osx
Locale: ar-SA (en_CZ.UTF-8); UI: en-US
Calc: threaded
Comment 1 Miroslav Michalek 2021-03-16 10:01:15 UTC
Created attachment 170504 [details]
Original ppt
Comment 2 Buovjaga 2022-03-17 14:46:08 UTC
From the Navigator I can see what you mean, stuff like Picture 6. Please explain what is a decorative flag and how I can see it in the picture in the document.

Impress does not have layers as such. You are referring to the stacking order. So you are requesting that data loss would happen for elements that are underneath other elements.
Comment 3 QA Administrators 2022-09-14 03:38:48 UTC Comment hidden (obsolete)
Comment 4 QA Administrators 2022-10-15 03:40:32 UTC Comment hidden (obsolete)
Comment 5 Buovjaga 2022-10-18 08:42:22 UTC
I looked at this again, I unzipped the .pptx file and found these tags in the file ppt/slides/slide1.xml:

<adec:decorative xmlns:adec="http://schemas.microsoft.com/office/drawing/2017/decorative" val="1"/>

Bubli mentioned in the dev chat:
an image labelled that way should be exported as PDF /Artifact s.a. https://www.w3.org/WAI/WCAG20/Techniques/pdf/PDF4

Let's put this to NEW.
Comment 6 Commit Notification 2023-07-06 18:28:50 UTC
Michael Stahl committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/e751d59264c369cfc342dab5f0759be12341d306

tdf#141058 oox,sw: OOXML import/export of decorative on shapes

It will be available in 24.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 7 Commit Notification 2023-07-06 20:15:03 UTC
Michael Stahl committed a patch related to this issue.
It has been pushed to "libreoffice-7-6":

https://git.libreoffice.org/core/commit/2f75278ff1f437228d39cc3f71d6fa98d58fc1c1

tdf#141058 oox,sw: OOXML import/export of decorative on shapes

It will be available in 7.6.0.0.beta2.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 8 Michael Stahl (allotropia) 2023-07-07 09:52:19 UTC
The OOXML filters can handle the decorative attribute now.