Bug 159067

Summary: PDF export from Calc creates untagged objects from form control marked as decorative
Product: LibreOffice Reporter: Gabor Kelemen (allotropia) <kelemeng>
Component: Printing and PDF exportAssignee: Tibor Nagy <tibor.nagy.extern>
Status: RESOLVED FIXED    
Severity: normal CC: ilmari.lauhakangas
Priority: medium Keywords: accessibility
Version: 24.8.0.0 alpha0+   
Hardware: All   
OS: All   
Whiteboard: target:24.8.0
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 139007    
Attachments: Example file from Calc with decorative form control
The document in Calc and PDF version in PAC tool

Description Gabor Kelemen (allotropia) 2024-01-08 01:11:29 UTC
Created attachment 191804 [details]
Example file from Calc with decorative form control

When the attached Calc document is exported to PDF with PDF/UA enabled, the PAC tool gives error message about untagged path objects and text objects.

1. Open attached document
2. Go to Tools - Forms - Design mode
3. Right click on the label form control, select Alt text to see that it is marked as Decorative. The other has Alt text set is exported fine.
4. File - Export as PDF, enable PDF/UA in the dialog
5. Open the PDF in the PAC tool
-> Error message: 
Nicht getaggtes Pfadobjekt
Nicht getaggtes Textobjekt

This happens in master with the patch of bug 123870 applied (https://gerrit.libreoffice.org/c/core/+/161581 ), but not before this.
Comment 1 Gabor Kelemen (allotropia) 2024-01-08 01:11:43 UTC
Created attachment 191805 [details]
The document in Calc and PDF version in PAC tool
Comment 2 Buovjaga 2024-01-18 18:42:21 UTC
Repro

Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 25276df12abd9d002f7f899900434617b256f745
CPU threads: 2; OS: Windows 10.0 Build 22621; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded
Comment 3 Commit Notification 2024-01-19 10:55:35 UTC
Tibor Nagy committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/01e41414847bcc3670df9537bbcba6a98ebd5190

tdf#159067 drawinglayer: fix untagged form control (PDF/UA export)

It will be available in 24.8.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.