Skip to content

Commit

Permalink
Update error messages in PDF/A and PDF/UA profiles.
Browse files Browse the repository at this point in the history
PDF/UA-2 (8.2.5.26-2, 8.4.3-2, 8.4.3-3, 8.4.5.7-1, 8.4.5.8-2, 8.9.2.2-2, 8.10.2.3-2),
PDF/UA-1 (7.2-13, 7.2-14, 7.21.7-2),
PDF/A-4 (6.2.10.6-1, 6.2.10.7-1, 6.2.10.8-1),
PDF/A-2 (6.4.1-1, 6.4.1-2), PDF/A-2U (6.2.11.7.2-2).
Update readme
  • Loading branch information
bdoubrov authored and github-actions[bot] committed Feb 20, 2024
1 parent 5af45da commit b841aef
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 25 deletions.
6 changes: 3 additions & 3 deletions PDF_A/PDFA-2A.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1018,7 +1018,7 @@
<description>The Unicode values specified in the ToUnicode CMap shall all be greater than zero (0), but not equal to either U+FEFF or U+FFFE</description>
<test>toUnicode == null || (toUnicode.indexOf("\u0000") == -1 &amp;&amp; toUnicode.indexOf("\uFFFE") == -1 &amp;&amp; toUnicode.indexOf("\uFEFF") == -1)</test>
<error>
<message>The glyph has an invalid Unicode value, which is either 0, or is equal to U+FEFF or U+FFFE</message>
<message>The glyph has Unicode value 0, U+FEFF or U+FFFE, which is invalid by Unicode standard</message>
<arguments/>
</error>
<references/>
Expand Down Expand Up @@ -1137,7 +1137,7 @@
</rule>
<rule object="PDWidgetAnnot">
<id specification="ISO_19005_2" clause="6.4.1" testNumber="1"/>
<description>A Widget annotation dictionary shall not contains the A or AA keys</description>
<description>A Widget annotation dictionary shall not contain the A or AA keys</description>
<test>containsA == false &amp;&amp; containsAA == false</test>
<error>
<message>A Widget annotation contains %1 key(s)</message>
Expand All @@ -1149,7 +1149,7 @@
</rule>
<rule object="PDFormField">
<id specification="ISO_19005_2" clause="6.4.1" testNumber="2"/>
<description>A Field dictionary shall not contains the A or AA keys</description>
<description>A Field dictionary shall not contain the A or AA keys</description>
<test>containsAA == false</test>
<error>
<message>A Form field dictionary contains the AA entry</message>
Expand Down
4 changes: 2 additions & 2 deletions PDF_A/PDFA-2B.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1103,7 +1103,7 @@
</rule>
<rule object="PDWidgetAnnot">
<id specification="ISO_19005_2" clause="6.4.1" testNumber="1"/>
<description>A Widget annotation dictionary shall not contains the A or AA keys</description>
<description>A Widget annotation dictionary shall not contain the A or AA keys</description>
<test>containsA == false &amp;&amp; containsAA == false</test>
<error>
<message>A Widget annotation contains %1 key(s)</message>
Expand All @@ -1115,7 +1115,7 @@
</rule>
<rule object="PDFormField">
<id specification="ISO_19005_2" clause="6.4.1" testNumber="2"/>
<description>A Field dictionary shall not contains the A or AA keys</description>
<description>A Field dictionary shall not contain the A or AA keys</description>
<test>containsAA == false</test>
<error>
<message>A Form field dictionary contains the AA entry</message>
Expand Down
6 changes: 3 additions & 3 deletions PDF_A/PDFA-2U.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1018,7 +1018,7 @@
<description>The Unicode values specified in the ToUnicode CMap shall all be greater than zero (0), but not equal to either U+FEFF or U+FFFE</description>
<test>toUnicode == null || (toUnicode.indexOf("\u0000") == -1 &amp;&amp; toUnicode.indexOf("\uFFFE") == -1 &amp;&amp; toUnicode.indexOf("\uFEFF") == -1)</test>
<error>
<message>The glyph has an invalid Unicode value, which is either 0, or is equal to U+FEFF or U+FFFE</message>
<message>The glyph has Unicode value 0, U+FEFF or U+FFFE, which is invalid by Unicode standard</message>
<arguments/>
</error>
<references/>
Expand Down Expand Up @@ -1125,7 +1125,7 @@
</rule>
<rule object="PDWidgetAnnot">
<id specification="ISO_19005_2" clause="6.4.1" testNumber="1"/>
<description>A Widget annotation dictionary shall not contains the A or AA keys</description>
<description>A Widget annotation dictionary shall not contain the A or AA keys</description>
<test>containsA == false &amp;&amp; containsAA == false</test>
<error>
<message>A Widget annotation contains %1 key(s)</message>
Expand All @@ -1137,7 +1137,7 @@
</rule>
<rule object="PDFormField">
<id specification="ISO_19005_2" clause="6.4.1" testNumber="2"/>
<description>A Field dictionary shall not contains the A or AA keys</description>
<description>A Field dictionary shall not contain the A or AA keys</description>
<test>containsAA == false</test>
<error>
<message>A Form field dictionary contains the AA entry</message>
Expand Down
6 changes: 3 additions & 3 deletions PDF_A/PDFA-3A.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1018,7 +1018,7 @@
<description>The Unicode values specified in the ToUnicode CMap shall all be greater than zero (0), but not equal to either U+FEFF or U+FFFE</description>
<test>toUnicode == null || (toUnicode.indexOf("\u0000") == -1 &amp;&amp; toUnicode.indexOf("\uFFFE") == -1 &amp;&amp; toUnicode.indexOf("\uFEFF") == -1)</test>
<error>
<message>The glyph has an invalid Unicode value, which is either 0, or is equal to U+FEFF or U+FFFE</message>
<message>The glyph has Unicode value 0, U+FEFF or U+FFFE, which is invalid by Unicode standard</message>
<arguments/>
</error>
<references/>
Expand Down Expand Up @@ -1137,7 +1137,7 @@
</rule>
<rule object="PDWidgetAnnot">
<id specification="ISO_19005_3" clause="6.4.1" testNumber="1"/>
<description>A Widget annotation dictionary shall not contains the A or AA keys</description>
<description>A Widget annotation dictionary shall not contain the A or AA keys</description>
<test>containsA == false &amp;&amp; containsAA == false</test>
<error>
<message>A Widget annotation contains %1 key(s)</message>
Expand All @@ -1149,7 +1149,7 @@
</rule>
<rule object="PDFormField">
<id specification="ISO_19005_3" clause="6.4.1" testNumber="2"/>
<description>A Field dictionary shall not contains the A or AA keys</description>
<description>A Field dictionary shall not contain the A or AA keys</description>
<test>containsAA == false</test>
<error>
<message>A Form field dictionary contains the AA entry</message>
Expand Down
4 changes: 2 additions & 2 deletions PDF_A/PDFA-3B.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1103,7 +1103,7 @@
</rule>
<rule object="PDWidgetAnnot">
<id specification="ISO_19005_3" clause="6.4.1" testNumber="1"/>
<description>A Widget annotation dictionary shall not contains the A or AA keys</description>
<description>A Widget annotation dictionary shall not contain the A or AA keys</description>
<test>containsA == false &amp;&amp; containsAA == false</test>
<error>
<message>A Widget annotation contains %1 key(s)</message>
Expand All @@ -1115,7 +1115,7 @@
</rule>
<rule object="PDFormField">
<id specification="ISO_19005_3" clause="6.4.1" testNumber="2"/>
<description>A Field dictionary shall not contains the A or AA keys</description>
<description>A Field dictionary shall not contain the A or AA keys</description>
<test>containsAA == false</test>
<error>
<message>A Form field dictionary contains the AA entry</message>
Expand Down
6 changes: 3 additions & 3 deletions PDF_A/PDFA-3U.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1018,7 +1018,7 @@
<description>The Unicode values specified in the ToUnicode CMap shall all be greater than zero (0), but not equal to either U+FEFF or U+FFFE</description>
<test>toUnicode == null || (toUnicode.indexOf("\u0000") == -1 &amp;&amp; toUnicode.indexOf("\uFFFE") == -1 &amp;&amp; toUnicode.indexOf("\uFEFF") == -1)</test>
<error>
<message>The glyph has an invalid Unicode value, which is either 0, or is equal to U+FEFF or U+FFFE</message>
<message>The glyph has Unicode value 0, U+FEFF or U+FFFE, which is invalid by Unicode standard</message>
<arguments/>
</error>
<references/>
Expand Down Expand Up @@ -1125,7 +1125,7 @@
</rule>
<rule object="PDWidgetAnnot">
<id specification="ISO_19005_3" clause="6.4.1" testNumber="1"/>
<description>A Widget annotation dictionary shall not contains the A or AA keys</description>
<description>A Widget annotation dictionary shall not contain the A or AA keys</description>
<test>containsA == false &amp;&amp; containsAA == false</test>
<error>
<message>A Widget annotation contains %1 key(s)</message>
Expand All @@ -1137,7 +1137,7 @@
</rule>
<rule object="PDFormField">
<id specification="ISO_19005_3" clause="6.4.1" testNumber="2"/>
<description>A Field dictionary shall not contains the A or AA keys</description>
<description>A Field dictionary shall not contain the A or AA keys</description>
<test>containsAA == false</test>
<error>
<message>A Form field dictionary contains the AA entry</message>
Expand Down
6 changes: 3 additions & 3 deletions PDF_A/PDFA-4.xml
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,7 @@
<description>For all non-symbolic TrueType fonts used for rendering, the embedded TrueType font program shall contain at least Microsoft Unicode (3,1 – Platform ID=3, Encoding ID=1), or Macintosh Roman (1,0 – Platform ID=1, Encoding ID=0) 'cmap' subtable that all necessary glyph lookups are able to be carried out</description>
<test>isSymbolic == true || cmap31Present == true || cmap10Present == true</test>
<error>
<message>The embedded font program for a non-symbolic TrueType font does not contain Microsoft Symbol (3,0 – Platform ID=3, Encoding ID=0) or the Mac Roman (1,0 – Platform ID=1, Encoding ID=0) encoding</message>
<message>The embedded font program for a non-symbolic TrueType font does not contain Microsoft Symbol (3,1 – Platform ID=3, Encoding ID=1) or the Mac Roman (1,0 – Platform ID=1, Encoding ID=0) encoding</message>
<arguments/>
</error>
<references/>
Expand Down Expand Up @@ -880,7 +880,7 @@
<description>If a ToUnicode CMap is present, the Unicode values specified there shall all be greater than zero (0), but not equal to either U+FEFF or U+FFFE</description>
<test>toUnicode == null || (toUnicode.indexOf("\u0000") == -1 &amp;&amp; toUnicode.indexOf("\uFFFE") == -1 &amp;&amp; toUnicode.indexOf("\uFEFF") == -1)</test>
<error>
<message>The glyph has an invalid Unicode value, which is either 0, or is equal to U+FEFF or U+FFFE</message>
<message>The glyph has Unicode value 0, U+FEFF or U+FFFE, which is invalid by Unicode standard</message>
<arguments/>
</error>
<references/>
Expand All @@ -890,7 +890,7 @@
<description>The ActualText entry shall not contain any PUA values</description>
<test>containsPUA == false</test>
<error>
<message>The ActualText entry contains a Private Unicode Area value</message>
<message>The ActualText entry contains Unicode PUA (Private Use Area) code points</message>
<arguments/>
</error>
<references/>
Expand Down
6 changes: 3 additions & 3 deletions PDF_A/PDFA-4E.xml
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,7 @@
<description>For all non-symbolic TrueType fonts used for rendering, the embedded TrueType font program shall contain at least Microsoft Unicode (3,1 – Platform ID=3, Encoding ID=1), or Macintosh Roman (1,0 – Platform ID=1, Encoding ID=0) 'cmap' subtable that all necessary glyph lookups are able to be carried out</description>
<test>isSymbolic == true || cmap31Present == true || cmap10Present == true</test>
<error>
<message>The embedded font program for a non-symbolic TrueType font does not contain Microsoft Symbol (3,0 – Platform ID=3, Encoding ID=0) or the Mac Roman (1,0 – Platform ID=1, Encoding ID=0) encoding</message>
<message>The embedded font program for a non-symbolic TrueType font does not contain Microsoft Symbol (3,1 – Platform ID=3, Encoding ID=1) or the Mac Roman (1,0 – Platform ID=1, Encoding ID=0) encoding</message>
<arguments/>
</error>
<references/>
Expand Down Expand Up @@ -894,7 +894,7 @@
<description>If a ToUnicode CMap is present, the Unicode values specified there shall all be greater than zero (0), but not equal to either U+FEFF or U+FFFE</description>
<test>toUnicode == null || (toUnicode.indexOf("\u0000") == -1 &amp;&amp; toUnicode.indexOf("\uFFFE") == -1 &amp;&amp; toUnicode.indexOf("\uFEFF") == -1)</test>
<error>
<message>The glyph has an invalid Unicode value, which is either 0, or is equal to U+FEFF or U+FFFE</message>
<message>The glyph has Unicode value 0, U+FEFF or U+FFFE, which is invalid by Unicode standard</message>
<arguments/>
</error>
<references/>
Expand All @@ -904,7 +904,7 @@
<description>The ActualText entry shall not contain any PUA values</description>
<test>containsPUA == false</test>
<error>
<message>The ActualText entry contains a Private Unicode Area value</message>
<message>The ActualText entry contains Unicode PUA (Private Use Area) code points</message>
<arguments/>
</error>
<references/>
Expand Down
6 changes: 3 additions & 3 deletions PDF_A/PDFA-4F.xml
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,7 @@
<description>For all non-symbolic TrueType fonts used for rendering, the embedded TrueType font program shall contain at least Microsoft Unicode (3,1 – Platform ID=3, Encoding ID=1), or Macintosh Roman (1,0 – Platform ID=1, Encoding ID=0) 'cmap' subtable that all necessary glyph lookups are able to be carried out</description>
<test>isSymbolic == true || cmap31Present == true || cmap10Present == true</test>
<error>
<message>The embedded font program for a non-symbolic TrueType font does not contain Microsoft Symbol (3,0 – Platform ID=3, Encoding ID=0) or the Mac Roman (1,0 – Platform ID=1, Encoding ID=0) encoding</message>
<message>The embedded font program for a non-symbolic TrueType font does not contain Microsoft Symbol (3,1 – Platform ID=3, Encoding ID=1) or the Mac Roman (1,0 – Platform ID=1, Encoding ID=0) encoding</message>
<arguments/>
</error>
<references/>
Expand Down Expand Up @@ -880,7 +880,7 @@
<description>If a ToUnicode CMap is present, the Unicode values specified there shall all be greater than zero (0), but not equal to either U+FEFF or U+FFFE</description>
<test>toUnicode == null || (toUnicode.indexOf("\u0000") == -1 &amp;&amp; toUnicode.indexOf("\uFFFE") == -1 &amp;&amp; toUnicode.indexOf("\uFEFF") == -1)</test>
<error>
<message>The glyph has an invalid Unicode value, which is either 0, or is equal to U+FEFF or U+FFFE</message>
<message>The glyph has Unicode value 0, U+FEFF or U+FFFE, which is invalid by Unicode standard</message>
<arguments/>
</error>
<references/>
Expand All @@ -890,7 +890,7 @@
<description>The ActualText entry shall not contain any PUA values</description>
<test>containsPUA == false</test>
<error>
<message>The ActualText entry contains a Private Unicode Area value</message>
<message>The ActualText entry contains Unicode PUA (Private Use Area) code points</message>
<arguments/>
</error>
<references/>
Expand Down

0 comments on commit b841aef

Please sign in to comment.