Bug 152231 - FILESAVE PDF PAC tool reports "Text object not tagged" error with comment in margin
Summary: FILESAVE PDF PAC tool reports "Text object not tagged" error with comment in ...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Printing and PDF export (show other bugs)
Version:
(earliest affected)
7.5.0.0 alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: accessibility
Depends on:
Blocks: PDF-Accessibility
  Show dependency treegraph
 
Reported: 2022-11-26 09:16 UTC by Gabor Kelemen (allotropia)
Modified: 2023-03-08 08:10 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Example file with comment (30.75 KB, application/vnd.oasis.opendocument.text)
2022-11-26 09:16 UTC, Gabor Kelemen (allotropia)
Details
The example file exported to PDF (41.73 KB, application/pdf)
2022-11-26 09:17 UTC, Gabor Kelemen (allotropia)
Details
Screenshot of the issue in the PAC tool (215.54 KB, image/png)
2022-11-26 09:19 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) 2022-11-26 09:16:31 UTC
Created attachment 183797 [details]
Example file with comment

When the attached file with a comment in the margin is exported to PDF with PDF/UA enabled and the file is checked in the PAC tool, the reported error is "Text object not tagged".

1, Open attached file
2, In the Print dialog, LO Writer tab set the Comments option to "Place in margins" (somehow this is also applied to the PDF export), and press Cancel (no print happens, but the option setting is retained).
2, Export it as PDF, with enabled PDF/UA option.
3, Check with the PAC tool: https://pdfua.foundation/en/pdf-accessibility-checker-pac

PAC would report the error on the attached screenshot.

VeraPDF https://demo.verapdf.org/ with PDF/UA setting on the second page, reports:

Validation information
Rule	Status
Specification: ISO 14289-1:2014, Clause: 7.1, Test number: 3	
Content shall be marked as Artifact or tagged as real content	Failed
3 occurrences 	Hide
SESimpleContentItem	
parentStructureTag != null || parentsTags.split('&').filter(elem => elem == 'Artifact').length > 0	
root/document[0]/pages[0](1 0 obj PDPage)/contentStream[0](2 0 obj PDSemanticContentStream)/content[15]/contentItem[0]
root/document[0]/pages[0](1 0 obj PDPage)/contentStream[0](2 0 obj PDSemanticContentStream)/content[15]/contentItem[1]
root/document[0]/pages[0](1 0 obj PDPage)/contentStream[0](2 0 obj PDSemanticContentStream)/content[15]/contentItem[2]

Version: 7.5.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 5116d6ad85d804e7b7897bc57a4a4bf9d5bed4f1
CPU threads: 14; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: de-DE (hu_HU); UI: en-US
Calc: threaded
Comment 1 Gabor Kelemen (allotropia) 2022-11-26 09:17:34 UTC
Created attachment 183798 [details]
The example file exported to PDF
Comment 2 Gabor Kelemen (allotropia) 2022-11-26 09:19:33 UTC
Created attachment 183799 [details]
Screenshot of the issue in the PAC tool
Comment 3 Buovjaga 2023-03-08 08:10:00 UTC
I repro.

Note: there is no longer need to set the option in Print dialog. The PDF export dialog has a checkbox option to add comments to margin. As a matter of fact, the Print dialog trick does not even work anymore by itself.

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: a179f6c91692076e7e17babf4890638caa398384
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