Skip to content

Commit

Permalink
PDF/UA. Add rules about struct tree root parent.
Browse files Browse the repository at this point in the history
PDF/UA-1(7.1-12),PDF/UA-2(8.2.1-2)
  • Loading branch information
MaximPlusov authored and bdoubrov committed Dec 15, 2023
1 parent 195fe3f commit 16488d9
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
23 changes: 23 additions & 0 deletions PDF_UA/1/7.1 General/verapdf-profile-7-1-t12.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<profile xmlns="http://www.verapdf.org/ValidationProfile" flavour="PDFUA_1">
<details creator="veraPDF Consortium" created="2020-03-13T10:58:04.098+03:00">
<name>ISO 14289-1:2014 - 7.1 General - Struct element parent</name>
<description>Struct element shall contain the P entry according to ISO 32000-1:2008, 14.7.2, Table 355</description>
</details>
<hash></hash>
<rules>
<rule object="PDStructElem" tags="critical,machine,structure">
<id specification="ISO_14289_1" clause="7.1" testNumber="12"/>
<description>A struct element shall contain the P entry according to ISO 32000-1:2008, 14.7.2, Table 355</description>
<test>containsParent == true</test>
<error>
<message>A struct element does not contain the P entry</message>
<arguments/>
</error>
<references>
<reference specification="ISO 32000-1:2008" clause="14.7.2, Table 355"/>
</references>
</rule>
</rules>
<variables/>
</profile>
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<profile xmlns="http://www.verapdf.org/ValidationProfile" flavour="PDFUA_2">
<details creator="veraPDF Consortium" created="2023-03-13T10:58:04.098+03:00">
<name>ISO 14289-2:202x - 8.2 Logical structure - 8.2.1 General - Struct element parent</name>
<description>Struct element shall contain the P entry according to ISO 32000-2:2020, 14.7.2, Table 323</description>
</details>
<hash></hash>
<rules>
<rule object="PDDocument">
<id specification="ISO_14289_2" clause="8.2.1" testNumber="2"/>
<description>Struct element shall contain the P entry according to ISO 32000-2:2020, 14.7.2, Table 323</description>
<test>containsParent == true</test>
<error>
<message>A struct element does not contain the P entry</message>
<arguments/>
</error>
<references>
<reference specification="ISO 32000-2:2020" clause="14.7.2, Table 323"/>
</references>
</rule>
</rules>
<variables/>
</profile>

0 comments on commit 16488d9

Please sign in to comment.