Skip to content

Commit

Permalink
Update rules 6.3.5-3,6.5.3-3(PDF/A-1), 6.2.11.4.2-2(PDF/A-2)
Browse files Browse the repository at this point in the history
and 7.21.4.2-2(PDF/UA-1)
  • Loading branch information
MaximPlusov authored and bdoubrov committed Oct 20, 2023
1 parent b8843c6 commit 8dda4f0
Show file tree
Hide file tree
Showing 14 changed files with 25 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<id specification="ISO_19005_1" clause="6.3.5" testNumber="3"/>
<description>For all CIDFont subsets referenced within a conforming file, the font descriptor dictionary shall include a
CIDSet stream identifying which CIDs are present in the embedded CIDFont file, as described in PDF Reference Table 5.20</description>
<test>fontName.search(/[A-Z]{6}\+/) != 0 || (CIDSet_size == 1 &amp;&amp; cidSetListsAllGlyphs == true)</test>
<test>fontName.search(/[A-Z]{6}\+/) != 0 || (containsCIDSet == true &amp;&amp; cidSetListsAllGlyphs == true)</test>
<error>
<message>A CIDSet entry in the Font descriptor is missing or does not correctly identify all glyphs
present in the embedded font subset and used for rendering</message>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
<id specification="ISO_19005_1" clause="6.5.3" testNumber="3"/>
<description>An annotation dictionary shall not contain the C array or the IC array unless the colour space of the
DestOutputProfile in the PDF/A-1 OutputIntent dictionary, defined in 6.2.2, is RGB</description>
<test>(C_size == 0 &amp;&amp; IC_size == 0) || gOutputCS == &quot;RGB &quot;</test>
<test>(containsC == false &amp;&amp; containsIC == false) || gOutputCS == &quot;RGB &quot;</test>
<error>
<message>Annotation's color (C size = %1) or interior color (IC size = %2) is used without specifying RGB-based destination output profile</message>
<message>Annotation's color (C present = %1) or interior color (IC present = %2) is used without specifying RGB-based destination output profile</message>
<arguments>
<argument>C_size</argument>
<argument>IC_size</argument>
<argument>containsC</argument>
<argument>containsIC</argument>
</arguments>
</error>
<references/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<id specification="ISO_19005_2" clause="6.2.11.4.2" testNumber="2"/>
<description>If the FontDescriptor dictionary of an embedded CID font contains a CIDSet stream, then it shall identify all CIDs which are present in the font program,
regardless of whether a CID in the font is referenced or used by the PDF or not.</description>
<test>fontFile_size == 0 || fontName.search(/[A-Z]{6}\+/) != 0 || CIDSet_size == 0 || cidSetListsAllGlyphs == true</test>
<test>fontFile_size == 0 || fontName.search(/[A-Z]{6}\+/) != 0 || containsCIDSet == false || cidSetListsAllGlyphs == true</test>
<error>
<message>A CIDSet entry in the Font descriptor does not correctly identify all glyphs present in the embedded font subset</message>
<arguments/>
Expand Down
10 changes: 5 additions & 5 deletions PDF_A/PDFA-1A.xml
Original file line number Diff line number Diff line change
Expand Up @@ -808,7 +808,7 @@
<id specification="ISO_19005_1" clause="6.3.5" testNumber="3"/>
<description>For all CIDFont subsets referenced within a conforming file, the font descriptor dictionary shall include a
CIDSet stream identifying which CIDs are present in the embedded CIDFont file, as described in PDF Reference Table 5.20</description>
<test>fontName.search(/[A-Z]{6}\+/) != 0 || (CIDSet_size == 1 &amp;&amp; cidSetListsAllGlyphs == true)</test>
<test>fontName.search(/[A-Z]{6}\+/) != 0 || (containsCIDSet == true &amp;&amp; cidSetListsAllGlyphs == true)</test>
<error>
<message>A CIDSet entry in the Font descriptor is missing or does not correctly identify all glyphs
present in the embedded font subset and used for rendering</message>
Expand Down Expand Up @@ -1020,12 +1020,12 @@
<id specification="ISO_19005_1" clause="6.5.3" testNumber="3"/>
<description>An annotation dictionary shall not contain the C array or the IC array unless the colour space of the
DestOutputProfile in the PDF/A-1 OutputIntent dictionary, defined in 6.2.2, is RGB</description>
<test>(C_size == 0 &amp;&amp; IC_size == 0) || gOutputCS == &quot;RGB &quot;</test>
<test>(containsC == false &amp;&amp; containsIC == false) || gOutputCS == &quot;RGB &quot;</test>
<error>
<message>Annotation's color (C size = %1) or interior color (IC size = %2) is used without specifying RGB-based destination output profile</message>
<message>Annotation's color (C present = %1) or interior color (IC present = %2) is used without specifying RGB-based destination output profile</message>
<arguments>
<argument>C_size</argument>
<argument>IC_size</argument>
<argument>containsC</argument>
<argument>containsIC</argument>
</arguments>
</error>
<references/>
Expand Down
10 changes: 5 additions & 5 deletions PDF_A/PDFA-1B.xml
Original file line number Diff line number Diff line change
Expand Up @@ -808,7 +808,7 @@
<id specification="ISO_19005_1" clause="6.3.5" testNumber="3"/>
<description>For all CIDFont subsets referenced within a conforming file, the font descriptor dictionary shall include a
CIDSet stream identifying which CIDs are present in the embedded CIDFont file, as described in PDF Reference Table 5.20</description>
<test>fontName.search(/[A-Z]{6}\+/) != 0 || (CIDSet_size == 1 &amp;&amp; cidSetListsAllGlyphs == true)</test>
<test>fontName.search(/[A-Z]{6}\+/) != 0 || (containsCIDSet == true &amp;&amp; cidSetListsAllGlyphs == true)</test>
<error>
<message>A CIDSet entry in the Font descriptor is missing or does not correctly identify all glyphs
present in the embedded font subset and used for rendering</message>
Expand Down Expand Up @@ -1006,12 +1006,12 @@
<id specification="ISO_19005_1" clause="6.5.3" testNumber="3"/>
<description>An annotation dictionary shall not contain the C array or the IC array unless the colour space of the
DestOutputProfile in the PDF/A-1 OutputIntent dictionary, defined in 6.2.2, is RGB</description>
<test>(C_size == 0 &amp;&amp; IC_size == 0) || gOutputCS == &quot;RGB &quot;</test>
<test>(containsC == false &amp;&amp; containsIC == false) || gOutputCS == &quot;RGB &quot;</test>
<error>
<message>Annotation's color (C size = %1) or interior color (IC size = %2) is used without specifying RGB-based destination output profile</message>
<message>Annotation's color (C present = %1) or interior color (IC present = %2) is used without specifying RGB-based destination output profile</message>
<arguments>
<argument>C_size</argument>
<argument>IC_size</argument>
<argument>containsC</argument>
<argument>containsIC</argument>
</arguments>
</error>
<references/>
Expand Down
2 changes: 1 addition & 1 deletion PDF_A/PDFA-2A.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1062,7 +1062,7 @@
<id specification="ISO_19005_2" clause="6.2.11.4.2" testNumber="2"/>
<description>If the FontDescriptor dictionary of an embedded CID font contains a CIDSet stream, then it shall identify all CIDs which are present in the font program,
regardless of whether a CID in the font is referenced or used by the PDF or not.</description>
<test>fontFile_size == 0 || fontName.search(/[A-Z]{6}\+/) != 0 || CIDSet_size == 0 || cidSetListsAllGlyphs == true</test>
<test>fontFile_size == 0 || fontName.search(/[A-Z]{6}\+/) != 0 || containsCIDSet == false || cidSetListsAllGlyphs == true</test>
<error>
<message>A CIDSet entry in the Font descriptor does not correctly identify all glyphs present in the embedded font subset</message>
<arguments/>
Expand Down
2 changes: 1 addition & 1 deletion PDF_A/PDFA-2B.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1062,7 +1062,7 @@
<id specification="ISO_19005_2" clause="6.2.11.4.2" testNumber="2"/>
<description>If the FontDescriptor dictionary of an embedded CID font contains a CIDSet stream, then it shall identify all CIDs which are present in the font program,
regardless of whether a CID in the font is referenced or used by the PDF or not.</description>
<test>fontFile_size == 0 || fontName.search(/[A-Z]{6}\+/) != 0 || CIDSet_size == 0 || cidSetListsAllGlyphs == true</test>
<test>fontFile_size == 0 || fontName.search(/[A-Z]{6}\+/) != 0 || containsCIDSet == false || cidSetListsAllGlyphs == true</test>
<error>
<message>A CIDSet entry in the Font descriptor does not correctly identify all glyphs present in the embedded font subset</message>
<arguments/>
Expand Down
2 changes: 1 addition & 1 deletion PDF_A/PDFA-2U.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1062,7 +1062,7 @@
<id specification="ISO_19005_2" clause="6.2.11.4.2" testNumber="2"/>
<description>If the FontDescriptor dictionary of an embedded CID font contains a CIDSet stream, then it shall identify all CIDs which are present in the font program,
regardless of whether a CID in the font is referenced or used by the PDF or not.</description>
<test>fontFile_size == 0 || fontName.search(/[A-Z]{6}\+/) != 0 || CIDSet_size == 0 || cidSetListsAllGlyphs == true</test>
<test>fontFile_size == 0 || fontName.search(/[A-Z]{6}\+/) != 0 || containsCIDSet == false || cidSetListsAllGlyphs == true</test>
<error>
<message>A CIDSet entry in the Font descriptor does not correctly identify all glyphs present in the embedded font subset</message>
<arguments/>
Expand Down
2 changes: 1 addition & 1 deletion PDF_A/PDFA-3A.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1062,7 +1062,7 @@
<id specification="ISO_19005_3" clause="6.2.11.4.2" testNumber="2"/>
<description>If the FontDescriptor dictionary of an embedded CID font contains a CIDSet stream, then it shall identify all CIDs which are present in the font program,
regardless of whether a CID in the font is referenced or used by the PDF or not.</description>
<test>fontFile_size == 0 || fontName.search(/[A-Z]{6}\+/) != 0 || CIDSet_size == 0 || cidSetListsAllGlyphs == true</test>
<test>fontFile_size == 0 || fontName.search(/[A-Z]{6}\+/) != 0 || containsCIDSet == false || cidSetListsAllGlyphs == true</test>
<error>
<message>A CIDSet entry in the Font descriptor does not correctly identify all glyphs present in the embedded font subset</message>
<arguments/>
Expand Down
2 changes: 1 addition & 1 deletion PDF_A/PDFA-3B.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1062,7 +1062,7 @@
<id specification="ISO_19005_3" clause="6.2.11.4.2" testNumber="2"/>
<description>If the FontDescriptor dictionary of an embedded CID font contains a CIDSet stream, then it shall identify all CIDs which are present in the font program,
regardless of whether a CID in the font is referenced or used by the PDF or not.</description>
<test>fontFile_size == 0 || fontName.search(/[A-Z]{6}\+/) != 0 || CIDSet_size == 0 || cidSetListsAllGlyphs == true</test>
<test>fontFile_size == 0 || fontName.search(/[A-Z]{6}\+/) != 0 || containsCIDSet == false || cidSetListsAllGlyphs == true</test>
<error>
<message>A CIDSet entry in the Font descriptor does not correctly identify all glyphs present in the embedded font subset</message>
<arguments/>
Expand Down
2 changes: 1 addition & 1 deletion PDF_A/PDFA-3U.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1062,7 +1062,7 @@
<id specification="ISO_19005_3" clause="6.2.11.4.2" testNumber="2"/>
<description>If the FontDescriptor dictionary of an embedded CID font contains a CIDSet stream, then it shall identify all CIDs which are present in the font program,
regardless of whether a CID in the font is referenced or used by the PDF or not.</description>
<test>fontFile_size == 0 || fontName.search(/[A-Z]{6}\+/) != 0 || CIDSet_size == 0 || cidSetListsAllGlyphs == true</test>
<test>fontFile_size == 0 || fontName.search(/[A-Z]{6}\+/) != 0 || containsCIDSet == false || cidSetListsAllGlyphs == true</test>
<error>
<message>A CIDSet entry in the Font descriptor does not correctly identify all glyphs present in the embedded font subset</message>
<arguments/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<id specification="ISO_14289_1" clause="7.21.4.2" testNumber="2"/>
<description>If the FontDescriptor dictionary of an embedded CID font contains a CIDSet stream, then it shall identify all CIDs which are present in the font program,
regardless of whether a CID in the font is referenced or used by the PDF or not.</description>
<test>fontFile_size == 0 || fontName.search(/[A-Z]{6}\+/) != 0 || CIDSet_size == 0 || cidSetListsAllGlyphs == true</test>
<test>fontFile_size == 0 || fontName.search(/[A-Z]{6}\+/) != 0 || containsCIDSet == false || cidSetListsAllGlyphs == true</test>
<error>
<message>A CIDSet entry in the Font descriptor does not correctly identify all glyphs present in the embedded font subset</message>
<arguments/>
Expand Down
2 changes: 1 addition & 1 deletion PDF_UA/PDFUA-1.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1279,7 +1279,7 @@
<id specification="ISO_14289_1" clause="7.21.4.2" testNumber="2"/>
<description>If the FontDescriptor dictionary of an embedded CID font contains a CIDSet stream, then it shall identify all CIDs which are present in the font program,
regardless of whether a CID in the font is referenced or used by the PDF or not.</description>
<test>fontFile_size == 0 || fontName.search(/[A-Z]{6}\+/) != 0 || CIDSet_size == 0 || cidSetListsAllGlyphs == true</test>
<test>fontFile_size == 0 || fontName.search(/[A-Z]{6}\+/) != 0 || containsCIDSet == false || cidSetListsAllGlyphs == true</test>
<error>
<message>A CIDSet entry in the Font descriptor does not correctly identify all glyphs present in the embedded font subset</message>
<arguments/>
Expand Down
2 changes: 1 addition & 1 deletion PDF_UA/WCAG-21-Complete.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2172,7 +2172,7 @@
<id specification="ISO_14289_1" clause="7.21.4.2" testNumber="2"/>
<description>If the FontDescriptor dictionary of an embedded CID font contains a CIDSet stream, then it shall identify all CIDs which are present in the font program,
regardless of whether a CID in the font is referenced or used by the PDF or not.</description>
<test>fontFile_size == 0 || fontName.search(/[A-Z]{6}\+/) != 0 || CIDSet_size == 0 || cidSetListsAllGlyphs == true</test>
<test>fontFile_size == 0 || fontName.search(/[A-Z]{6}\+/) != 0 || containsCIDSet == false || cidSetListsAllGlyphs == true</test>
<error>
<message>A CIDSet entry in the Font descriptor does not correctly identify all glyphs present in the embedded font subset</message>
<arguments/>
Expand Down

0 comments on commit 8dda4f0

Please sign in to comment.