Created attachment 186905 [details]
Example file from Writer with content controls in header and footer
This is similar to bug 154990
When content controls are placed in the document header or footer and exported as PDF, the PAC tool gives an error message about them.
1. Open attached file
2. Save as PDF with the PDF/UA option enabled
3. Open it in the PAC tool
-> There is an error about both controls ""Widget" annotation not nested inside a "Form" structure element"
(also their text is not visible in the PDF, but that may be bug 154984)
Version: 188.8.131.52.alpha0+ (X86_64) / LibreOffice Community
Build ID: 006b35d50024b1932d84380b5d2fec1f7066bccd
CPU threads: 14; OS: Windows 10.0 Build 19045; UI render: default; VCL: win
Locale: en-US (hu_HU); UI: en-US
Created attachment 186906 [details]
The example file saved to PDF
Created attachment 186907 [details]
Screenshot of the document in Writer and the issue in the PAC tool
Repro with PAC tool
Version: 184.108.40.206.alpha1+ (X86_64) / LibreOffice Community
Build ID: 6f1534940ac12ff8e46f4782e18cfb6cf585da39
CPU threads: 2; OS: Windows 10.0 Build 22621; UI render: default; VCL: win
Locale: en-US (en_FI); UI: en-US
the forms are annotations in PDF, otherwise they don't work as forms in PDF viewers:
11 0 obj
/Rect[284.299 56.701 308.351 70.499]
/P 1 0 R
/DR<</Font 7 0 R>>
/DA(0 0 0 rg /F2 12 Tf)
/N 28 0 R
1 0 obj
<</Type/Page/Parent 12 0 R/Resources 20 0 R/MediaBox[0 0 612 792]/Annots[
5 0 R 11 0 R ]
and these forms are in the header and footer - but headers and footers are artifacts, and so is everything in them:
7.1 General All real content shall be tagged as defined in ISO 32000-1:2008, 14.8. Artifacts (ISO 32000-1:2008, 220.127.116.11.2) shall not be tagged in the structure tree.
7.8 Page headers and footers Running headers and footers shall be identified as Pagination artifacts and shall be classified as either Header or Footer subtypes as per ISO 32000-1:2008, 18.104.22.168.2, Table 330.
so if we create Annot structure elements for the forms, they would need to be parented in some sort of structure element for the header/footer, which doesn't exist and isn't allowed.
the only obvious improvement that comes to mind here is that the Accessibility Check warning dialog should complain about the forms in headers.
if the user insists on doing this, then i think they have to live with these PAC/veraPDF warnings.
does anybody have a better idea?
Balazs Varga committed a patch related to this issue.
It has been pushed to "master":
tdf#155000 - A11Y - Add warning message if content control in header/footer
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:
Affected users are encouraged to test the fix and report feedback.