Skip to content

Commit

Permalink
PDF/UA-1. Update rules 7.18.1-1 - 7.18.1-3
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximPlusov authored and bdoubrov committed Apr 12, 2024
1 parent b7f83ec commit 9fe24a3
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
<profile xmlns="http://www.verapdf.org/ValidationProfile" flavour="PDFUA_1">
<details creator="veraPDF Consortium" created="2020-03-13T10:53:06.894+03:00">
<name>ISO 14289-1:2014 - 7.18 Annotations - 7.18.1 General - Annot tag</name>
<description>An annotation, excluding annotations of subtype Widget, Popup or Link, shall be nested within an Annot tag</description>
<description>An annotation, excluding annotations of subtype Widget, PrinterMark or Link, shall be nested within an Annot tag</description>
</details>
<hash></hash>
<rules>
<rule object="PDAnnot" tags="major,machine,annotation">
<id specification="ISO_14289_1" clause="7.18.1" testNumber="1"/>
<description>An annotation, excluding annotations of subtype Widget, Popup or Link, shall be nested within an Annot tag</description>
<test>Subtype == 'Widget' || Subtype == 'Popup' || Subtype == 'Link' || isOutsideCropBox == true ||
<description>An annotation, excluding annotations of subtype Widget, PrinterMark or Link, shall be nested within an Annot tag</description>
<test>Subtype == 'Widget' || Subtype == 'PrinterMark' || Subtype == 'Link' || isOutsideCropBox == true ||
(F &amp; 2) == 2 || structParentStandardType == 'Annot'</test>
<error>
<message>%1 annotation is an Artifact or is nested within %2 tag (standard type = %3) instead of Annot</message>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,18 @@
<profile xmlns="http://www.verapdf.org/ValidationProfile" flavour="PDFUA_1">
<details creator="veraPDF Consortium" created="2020-03-13T10:53:06.894+03:00">
<name>ISO 14289-1:2014 - 7.18 Annotation - 7.18.1 General - Alt in annotation</name>
<description>An annotation (except annotations of type Link, Widget or Popup, or hidden annotations,
<description>An annotation (except Widget annotations or hidden annotations,
or those having rectangle outside the crop-box) shall have either Contents key or an Alt entry
in the enclosing structure element</description>
</details>
<hash></hash>
<rules>
<rule object="PDAnnot" tags="major,machine,annotation,alt-text">
<id specification="ISO_14289_1" clause="7.18.1" testNumber="2"/>
<description>An annotation (except annotations of type Link, Widget or Popup, or hidden annotations,
<description>An annotation (except Widget annotations or hidden annotations,
or those having rectangle outside the crop-box) shall have either Contents key or an Alt entry
in the enclosing structure element</description>
<test>Subtype == 'Widget' || Subtype == 'Popup' || Subtype == 'Link'
|| isOutsideCropBox == true || (F &amp; 2) == 2 || (Contents != null &amp;&amp; Contents != '') ||
<test>Subtype == 'Widget' || isOutsideCropBox == true || (F &amp; 2) == 2 || (Contents != null &amp;&amp; Contents != '') ||
(Alt != null &amp;&amp; Alt != '')</test>
<error>
<message>%1 annotation whose hidden flag is not set and whose rectangle is not outside the crop-box
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,19 @@
<profile xmlns="http://www.verapdf.org/ValidationProfile" flavour="PDFUA_1">
<details creator="veraPDF Consortium" created="2020-03-13T10:53:06.894+03:00">
<name>ISO 14289-1:2014 - 7.18 Annotation - 7.18.1 General - Alt in form field</name>
<description>A form field whose hidden flag is not set and whose rectangle is not outside the crop-box
shall have a TU key present or all its Widget annotations shall have alternative descriptions
(in the form of an Alt entry in the enclosing structure elements)</description>
<description>A form field shall have a TU key present or all its Widget annotations shall have alternative
descriptions (in the form of an Alt entry in the enclosing structure elements)</description>
</details>
<hash></hash>
<rules>
<rule object="PDWidgetAnnot" tags="major,machine,annotation,alt-text">
<id specification="ISO_14289_1" clause="7.18.1" testNumber="3"/>
<description>A form field whose hidden flag is not set and whose rectangle is not outside the crop-box
shall have a TU key present or all its Widget annotations shall have alternative descriptions
(in the form of an Alt entry in the enclosing structure elements)</description>
<description>A form field shall have a TU key present or all its Widget annotations shall have alternative
descriptions (in the form of an Alt entry in the enclosing structure elements)</description>
<test>isOutsideCropBox == true || (F &amp; 2) == 2 || (TU != null &amp;&amp; TU != '') || (Alt != null &amp;&amp; Alt != '')</test>
<error>
<message>A form field whose hidden flag is not set and whose rectangle is not outside the crop-box
neither has TU key nor its Widget annotations have alternative descriptions (in the form of an Alt
entry in the enclosing structure element)</message>
<message>A form field neither has TU key nor its Widget annotations have alternative descriptions
(in the form of an Alt entry in the enclosing structure element)</message>
<arguments/>
</error>
<references/>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?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.137+03:00">
<name>ISO 14289-1:2014 - 7.4 Headings - 7.4.4 Unnumbered headings - Number of H </name>
<name>ISO 14289-1:2014 - 7.4 Headings - 7.4.4 Unnumbered headings - Number of H</name>
<description>Each node in the tag tree shall contain at most one child H tag</description>
</details>
<hash></hash>
Expand Down

0 comments on commit 9fe24a3

Please sign in to comment.