https://bugs.documentfoundation.org/show_bug.cgi?id=171022

            Bug ID: 171022
           Summary: PDF "GoTo" actions in PDF/UA-2 have to be links to
                    structure elements
           Product: LibreOffice
           Version: 25.8.0.4 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Printing and PDF export
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected], [email protected],
                    [email protected]
        Depends on: 168057
            Blocks: 103378

+++ This bug was initially created as a clone of Bug #168057 +++

Description:
The accessible PDF/UA-2 documents generated by LibreOffice when exporting to
PDF 2.0 do not comply with the PDF/UA-2 spec.

Steps to Reproduce:
Opened a document in LibreOffice writer, selected export to PDF, select PDF/A-4
and tick the "universal accessibility" option.

Verified the resulting PDF against the PDF/UA-2 specification and found it had
failed in a some areas. Two free online validators are:

https://bfo.com/blog/2017/11/08/verify_pdfa_online/
https://demo.verapdf.org


Actual Results:
PDF/UA-2 document failed to verify as compliant

Expected Results:
PDF/UA-2 document should verify as compliant


Reproducible: Always


User Profile Reset: No

Additional Info:
First, it's really great that you added support for these two specs, thank you.
But there are substantial differences between PDF/UA-1 and PDF/UA-2 and while
it looks like you've found most of them, there's a little bit of tweaking to
do.

The PDF/UA-2 spec (properly, ISO14289-2:2022) can be downloaded for free at
https://www.pdfa-inc.org/product/pdf-ua-bundle/ and you would be very welcome
in the PDF/UA technical working group at
https://pdfa.org/community/pdf-ua-technical-working-group/

I tested a few simple documents here and I can tell right away what two issues
are:

* PDF "GoTo" actions in PDF/UA-2 have to be links to structure elements - this
means any GoTo actions need to have an "SD" entry which points to the correct
StructureElement in Structure Tree. This applies even to the "Document Open"
action and any actions in bookmarks. See ISO32000 section 12.6.4.2 and 12.3.2.3

* You're using custom tags in the Structure Tree, eg "Standard", and
rolemapping them to "P" for paragraph. But you're using a "RoleMap" structure
for this, and for tags with namespaces (which is what you're using; correctly
for PDF2) you need to use a "RoleMapNS" structure. See ISO32000 section 14.8.6


Referenced Bugs:

https://bugs.documentfoundation.org/show_bug.cgi?id=103378
[Bug 103378] [META] PDF export bugs and enhancements
https://bugs.documentfoundation.org/show_bug.cgi?id=168057
[Bug 168057] PDF/UA-2 generation is incorrect
-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to