pdfaccessibilitywcagtagged-pdfpdf-ua

PDF Outlines compliance with PDF/UA-2


With the tool veraPDF I get the follow error if I try to create PDF files with PDF/UA-2 compliance: All destinations whose target lies within the current document shall be structure destinations

The problem is the /Dest attribute in the follow PDF code:

19 0 obj
<<  /Title (þÿ C h o c o l a d e) /Parent 18 0 R  /Next 26 0 R  /Dest [15 0 R  /XYZ 0 521 0]
 >>
endobj

15 0 R is a reference to page object.

I try to replace the page reference with a structure element reference 17 0 R but with no lack. For veraPDF then all is ok but Adobe Reader can't navigate with it.

17 0 obj
<< /Type/StructElem/S/Sect/Pg 15 0 R /P 4 0 R /NS 3 0 R  >>
endobj

I have also try /SE 17 0 R with same effect. Valid but does not work.

How must I define the outline items that it work with Adobe Reader and that veraPDF produce no errors?

Minimal Reproducible Example (MRE)


Solution

  • You may use Named destinations instead of Explicit ones.

    Here are the details, based on your object's numbers

    % Catalog

    1 0 obj

    <</Type/Catalog

    /Names 11 0 R

    ...

    endobj

    % 'Names' dictionary

    11 0 obj

    <</Dests 12 0 R>>

    endobj

    % Named destinations' dictionary

    12 0 obj

    <</Names [(id_1) <</D [15 0 R /XYZ 0 521 0] /SD [17 0 R /XYZ 0 521 0]>> ...]>>

    endobj

    % An outline entry

    19 0 obj

    <</Dest (id_1) /Title (Chocolade) /Parent 18 0 R /Next 26 0 R>>

    endobj