Bug 154777 - FILESAVE PDF PAC tool reports only one accessible form object
Summary: FILESAVE PDF PAC tool reports only one accessible form object
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Printing and PDF export (show other bugs)
Version:
(earliest affected)
7.6.0.0 alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: target:24.2.0 target:7.6.0.2
Keywords: accessibility
Depends on:
Blocks: PDF-Accessibility
  Show dependency treegraph
 
Reported: 2023-04-12 19:18 UTC by Gabor Kelemen (allotropia)
Modified: 2023-07-26 12:49 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Enhanced example file from Writer (25.49 KB, application/vnd.oasis.opendocument.text)
2023-04-12 19:18 UTC, Gabor Kelemen (allotropia)
Details
The original example file exported to PDF, in PAC tool Screen reader preview (25.08 KB, image/png)
2023-04-12 19:20 UTC, Gabor Kelemen (allotropia)
Details
The modified example file exported to PDF, in PAC tool Screen reader preview (10.29 KB, image/png)
2023-04-12 19:24 UTC, Gabor Kelemen (allotropia)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gabor Kelemen (allotropia) 2023-04-12 19:18:58 UTC
Created attachment 186626 [details]
Enhanced example file from Writer

This is a followup to bug 152234

If the example file is extended with accessible descriptions of the form controls, and exported as PDF/UA, there is only one form control exported with the accessible descriptions.

1. Open attached file
2. Enable Form - Design mode
3. Select the first Label Field control, right click and select Description. Check the fields are filled.
4. Do the same with the second Text box control, its Description fields are also filled.
5. File - Export As - Export As PDF
6. Check the PDF/UA box, save the file
7. Open it with the PAC tool, check the Screen Reader Preview.

-> There is only the second Text box visible, instead of 13 form controls. With the original file attachment 183804 [details] the Screen Reader Preview shows all of them.

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: fc6806c4be8585ce0d35a6b581bf8b3dbf858500
CPU threads: 14; OS: Windows 10.0 Build 19045; UI render: default; VCL: win
Locale: hu-HU (hu_HU); UI: hu-HU
Calc: threaded
Comment 1 Gabor Kelemen (allotropia) 2023-04-12 19:20:38 UTC
Created attachment 186627 [details]
The original example file exported to PDF, in PAC tool Screen reader preview

This is attachment 183804 [details] without the Description fields filled.
Comment 2 Gabor Kelemen (allotropia) 2023-04-12 19:24:35 UTC
Created attachment 186628 [details]
The modified example file exported to PDF, in PAC tool Screen reader preview
Comment 3 Buovjaga 2023-04-17 11:02:44 UTC
Repro

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 96c4c0fcffc4f0a1f5a49be576646d15d613228e
CPU threads: 2; OS: Windows 10.0 Build 22621; UI render: Skia/Raster; VCL: win
Locale: en-US (en_FI); UI: en-US
Calc: threaded
Comment 4 Michael Stahl (allotropia) 2023-07-10 13:37:23 UTC
apparently what happens here is that opening the context menu ends up selecting the form object, and then the Export PDF dialog has the "Selection" selected in "Range" instead of "All". 

this is not a bug, working as designed?

*BUT* there are some complaints about missing bounding boxes on 2 of the forms...
Comment 5 Commit Notification 2023-07-11 10:52:19 UTC
Michael Stahl committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/41d8bb928231372f3ef08ce4ba3ea91b17e3ae29

(related tdf#154777) drawinglayer: add BBox to Figure fallback of forms

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 6 Gabor Kelemen (allotropia) 2023-07-12 10:28:31 UTC
Hm, yes, maybe I got fooled by the default printing behavior extensively discussed in bug 139164 :(.
Comment 7 Gabor Kelemen (allotropia) 2023-07-18 10:45:20 UTC
Can confirm in 

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 6256d5fe2e7cb1bb002d5fe59527d3a3fbf6963f
CPU threads: 15; OS: Windows 10.0 Build 19045; UI render: default; VCL: win
Locale: hu-HU (hu_HU); UI: en-US
Calc: threaded

that the PAC tool no longer complains about bounding boxes like it used to: "Figure" element on a single page with no bounding box" 
no longer appears under the Logical Structure - Structure Elements - Figures.
Comment 8 Commit Notification 2023-07-26 12:49:36 UTC
Michael Stahl committed a patch related to this issue.
It has been pushed to "libreoffice-7-6":

https://git.libreoffice.org/core/commit/9f1c3ed96423ef6ffb6f6910c5ef497026129c5b

(related tdf#154777) drawinglayer: add BBox to Figure fallback of forms

It will be available in 7.6.0.2.

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.