Skip to content

Commit

Permalink
PDF/UA-1. Add tags to rule 6.1-1
Browse files Browse the repository at this point in the history
  • Loading branch information
Git User committed Jan 28, 2025
1 parent 6b0c8d4 commit 30298f9
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion core/src/main/resources/org/verapdf/pdfa/validation/PDFUA-1.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1014,7 +1014,7 @@
<description>Links shall contain an alternate description via their Contents key as described in ISO 32000-1:2008, 14.9.3</description>
<test>(Contents != null &amp;&amp; Contents != '') || isOutsideCropBox == true || (F &amp; 2) == 2</test>
<error>
<message>A link annotation does not include an alternate description in the Contents Key</message>
<message>A link annotation does not include an alternate description in the Contents key</message>
<arguments/>
</error>
<references>
Expand Down Expand Up @@ -1287,6 +1287,18 @@
</error>
<references/>
</rule>
<rule object="CosDocument" tags="syntax">
<id specification="ISO_19005_2" clause="6.1" testNumber="1"/>
<description>The file header shall consist of "%PDF-1.n" followed by a single EOL marker, where 'n' is a single digit number between 0 (30h) and 7 (37h)</description>
<test>/^%PDF-1\.[0-7]$/.test(header)</test>
<error>
<message>File header %1 does not match the pattern %PDF-1.n, where 'n' is a single digit number between 0 and 7</message>
<arguments>
<argument>header</argument>
</arguments>
</error>
<references/>
</rule>
</rules>
<variables>
<variable name="gContainsCatalogLang" object="PDDocument">
Expand Down

0 comments on commit 30298f9

Please sign in to comment.