Skip to content

Commit

Permalink
PDF/UA-2. Add rule 8.11.1-2
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximPlusov authored and github-actions[bot] committed Jun 6, 2024
1 parent 46d5565 commit 710b266
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 0 deletions.
12 changes: 12 additions & 0 deletions PDF_UA/PDFUA-2-ISO32005.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1090,6 +1090,18 @@
<reference specification="ISO 32000-2:2020" clause="14.3"/>
</references>
</rule>
<rule object="PDDocument" tags="metadata">
<id specification="ISO_14289_2" clause="8.11.1" testNumber="2"/>
<description>The Catalog dictionary of a conforming file shall contain the Metadata key whose value is a metadata stream as defined in ISO 32000-2:2020, 14.3</description>
<test>metadata_size == 1</test>
<error>
<message>The document catalog dictionary doesn't contain metadata key</message>
<arguments/>
</error>
<references>
<reference specification="ISO 32000-2:2020" clause="14.3.2"/>
</references>
</rule>
<rule object="CosDocument" tags="syntax">
<id specification="ISO_14289_2" clause="8.11.2" testNumber="1"/>
<description>The ViewerPreferences dictionary of the document catalog dictionary shall be present and shall contain at least the DisplayDocTitle key with a value of true, as described in ISO 32000-2:2020, Table 147</description>
Expand Down
12 changes: 12 additions & 0 deletions PDF_UA/PDFUA-2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1090,6 +1090,18 @@
<reference specification="ISO 32000-2:2020" clause="14.3"/>
</references>
</rule>
<rule object="PDDocument" tags="metadata">
<id specification="ISO_14289_2" clause="8.11.1" testNumber="2"/>
<description>The Catalog dictionary of a conforming file shall contain the Metadata key whose value is a metadata stream as defined in ISO 32000-2:2020, 14.3</description>
<test>metadata_size == 1</test>
<error>
<message>The document catalog dictionary doesn't contain metadata key</message>
<arguments/>
</error>
<references>
<reference specification="ISO 32000-2:2020" clause="14.3.2"/>
</references>
</rule>
<rule object="CosDocument" tags="syntax">
<id specification="ISO_14289_2" clause="8.11.2" testNumber="1"/>
<description>The ViewerPreferences dictionary of the document catalog dictionary shall be present and shall contain at least the DisplayDocTitle key with a value of true, as described in ISO 32000-2:2020, Table 147</description>
Expand Down
12 changes: 12 additions & 0 deletions PDF_UA/WTPDF-1-0-Accessibility.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1042,6 +1042,18 @@
<reference specification="ISO 32000-2:2020" clause="14.3"/>
</references>
</rule>
<rule object="PDDocument" tags="metadata">
<id specification="WTPDF_1_0" clause="8.11.1" testNumber="2"/>
<description>The Catalog dictionary of a conforming file shall contain the Metadata key whose value is a metadata stream as defined in ISO 32000-2:2020, 14.3</description>
<test>metadata_size == 1</test>
<error>
<message>The document catalog dictionary doesn't contain metadata key</message>
<arguments/>
</error>
<references>
<reference specification="ISO 32000-2:2020" clause="14.3.2"/>
</references>
</rule>
<rule object="CosDocument" tags="syntax">
<id specification="WTPDF_1_0" clause="8.11.2" testNumber="1"/>
<description>The ViewerPreferences dictionary of the document catalog dictionary shall be present and shall contain at least the DisplayDocTitle key with a value of true, as described in ISO 32000-2:2020, Table 147</description>
Expand Down
12 changes: 12 additions & 0 deletions PDF_UA/WTPDF-1-0-Reuse.xml
Original file line number Diff line number Diff line change
Expand Up @@ -906,6 +906,18 @@
<reference specification="ISO 32000-2:2020" clause="14.3"/>
</references>
</rule>
<rule object="PDDocument" tags="metadata">
<id specification="WTPDF_1_0" clause="8.11.1" testNumber="2"/>
<description>The Catalog dictionary of a conforming file shall contain the Metadata key whose value is a metadata stream as defined in ISO 32000-2:2020, 14.3</description>
<test>metadata_size == 1</test>
<error>
<message>The document catalog dictionary doesn't contain metadata key</message>
<arguments/>
</error>
<references>
<reference specification="ISO 32000-2:2020" clause="14.3.2"/>
</references>
</rule>
<rule object="CosFileSpecification" tags="syntax">
<id specification="WTPDF_1_0" clause="8.14.1" testNumber="1"/>
<description>The Desc entry shall be present on all file specification dictionaries present in the EmbeddedFiles name tree of a conforming document</description>
Expand Down

0 comments on commit 710b266

Please sign in to comment.