Skip to content

Commit

Permalink
PDF/UA-1. Fix specification for 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 30298f9 commit c9c4a91
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions core/src/main/resources/org/verapdf/pdfa/validation/PDFUA-1.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,18 @@
</error>
<references/>
</rule>
<rule object="CosDocument" tags="syntax">
<id specification="ISO_14289_1" 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>
<rule object="SEMarkedContent" tags="artifact">
<id specification="ISO_14289_1" clause="7.1" testNumber="1"/>
<description>Content marked as Artifact should not present inside tagged content</description>
Expand Down Expand Up @@ -1287,18 +1299,6 @@
</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 c9c4a91

Please sign in to comment.