Skip to content

Commit

Permalink
PDF/UA-2. Update rules 8.2.4-3, 8.9.2.1-1 and 8.9.2.4.9-1
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximPlusov authored and bdoubrov committed Jan 31, 2024
1 parent d5ec3d0 commit 1d3bdaa
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@
<profile xmlns="http://www.verapdf.org/ValidationProfile" flavour="PDFUA_2">
<details creator="veraPDF Consortium" created="2023-03-13T10:58:04.137+03:00">
<name>ISO 14289-2:202x - 8.2 Logical structure - 8.2.4 Structure types - Same namespace mapping</name>
<description>Structure types shall not be role mapped to other structure types in the same namespace</description>
<description>Within a given explicitly provided namespace, structure types shall not be role mapped to other
structure types in the same namespace</description>
</details>
<hash></hash>
<rules>
<rule object="PDStructElem" tags="structure">
<id specification="ISO_14289_2" clause="8.2.4" testNumber="3"/>
<description>Structure types shall not be role mapped to other structure types in the same namespace</description>
<description>Within a given explicitly provided namespace, structure types shall not be role mapped to other
structure types in the same namespace</description>
<test>roleMapToSameNamespaceTag == null</test>
<error>
<message>Structure type %1 is role mapped to other structure type in the same namespace</message>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@
<profile xmlns="http://www.verapdf.org/ValidationProfile" flavour="PDFUA_2">
<details creator="veraPDF Consortium" created="2023-03-13T10:53:06.894+03:00">
<name>ISO 14289-2:202x - 8.9 Annotations - 8.9.2 Semantics and content - Annotations in structure tree</name>
<description>Annotations shall be included in the structure tree unless explicitly excluded by the following
subclauses</description>
<description>Annotations shall be included in the structure tree unless explicitly excluded by the specification
(popups, printer marks, invisible annotations)</description>
</details>
<hash></hash>
<rules>
<rule object="PDAnnot" tags="annotation,structure">
<id specification="ISO_14289_2" clause="8.9.2.1" testNumber="1"/>
<description>Annotations shall be included in the structure tree unless explicitly excluded by the following
subclauses</description>
<description>Annotations shall be included in the structure tree unless explicitly excluded by the
specification (popups, printer marks, invisible annotations)</description>
<test>(structParentType != null &amp;&amp; isArtifact == false) ||
(Subtype == &quot;Popup&quot;) || <!-- rule 8.9.2.4.9-1 -->
(Subtype == &quot;PrinterMark&quot;) || <!-- rule 8.9.2.4.14-1 -->
(Subtype == &quot;Widget&quot; &amp;&amp; width == 0 &amp;&amp; height == 0) || <!-- rule 8.9.2.4.13-1 -->
((F &amp; 1) == 1) || ((F &amp; 32) == 1 &amp;&amp; (F &amp; 256) == 0) <!-- rule 8.9.2.2-1 -->
((F &amp; 1) == 1) || ((F &amp; 32) == 1 &amp;&amp; (F &amp; 256) == 0) <!-- rules 8.9.2.2-1 & 8.9.2.2-2 -->
</test>
<error>
<message>Annotation is not included in the structure tree</message>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<rule object="PDPopupAnnot" tags="annotation,artifact">
<id specification="ISO_14289_2" clause="8.9.2.4.9" testNumber="1"/>
<description>Popup annotations shall not be present in the structure tree</description>
<test>structParentType == null || isArtifact == true</test>
<test>structParentType == null</test>
<error>
<message>A Popup annotation is included in logical structure with tag %1 (standard type = %2)</message>
<arguments>
Expand Down

0 comments on commit 1d3bdaa

Please sign in to comment.