Skip to content

Commit

Permalink
Update profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximPlusov authored and bdoubrov committed Nov 28, 2023
1 parent 09823b0 commit b90fdc9
Show file tree
Hide file tree
Showing 383 changed files with 3,579 additions and 6,007 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
as described in PDF Reference 5.9, unless the font meets any of the following three conditions:
(*) fonts that use the predefined encodings MacRomanEncoding, MacExpertEncoding or WinAnsiEncoding, or that use the predefined Identity-H or Identity-V CMaps;
(*) Type 1 fonts whose character names are taken from the Adobe standard Latin character set or the set of named characters in the Symbol font, as defined in PDF Reference Appendix D;
(*) Type 0 fonts whose descendant CIDFont uses the Adobe-GB1, Adobe-CNS1, Adobe-Japan1 or Adobe-Korea1 character collections.</description>
(*) Type 0 fonts whose descendant CIDFont uses the Adobe-GB1, Adobe-CNS1, Adobe-Japan1 or Adobe-Korea1 character collections</description>
</details>
<hash></hash>
<rules>
Expand All @@ -16,7 +16,7 @@
as described in PDF Reference 5.9, unless the font meets any of the following three conditions:
(*) fonts that use the predefined encodings MacRomanEncoding, MacExpertEncoding or WinAnsiEncoding, or that use the predefined Identity-H or Identity-V CMaps;
(*) Type 1 fonts whose character names are taken from the Adobe standard Latin character set or the set of named characters in the Symbol font, as defined in PDF Reference Appendix D;
(*) Type 0 fonts whose descendant CIDFont uses the Adobe-GB1, Adobe-CNS1, Adobe-Japan1 or Adobe-Korea1 character collections.</description>
(*) Type 0 fonts whose descendant CIDFont uses the Adobe-GB1, Adobe-CNS1, Adobe-Japan1 or Adobe-Korea1 character collections</description>
<test>toUnicode != null</test>
<error>
<message>The font does not define Unicode character map</message>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
<profile xmlns="http://www.verapdf.org/ValidationProfile" flavour="PDFA_1_A">
<details creator="veraPDF Consortium" created="2016-02-15T10:53:07.146+03:00">
<name>ISO 19005-1:2005 - 6.7.11 XMP Package - PDF/A Identification Schema.</name>
<description>A Level A conforming file shall specify the value of pdfaid:conformance as A.</description>
<description>A Level A conforming file shall specify the value of pdfaid:conformance as A</description>
</details>
<hash></hash>
<rules>
<rule object="PDFAIdentification">
<id specification="ISO_19005_1" clause="6.7.11" testNumber="3"/>
<description>A Level A conforming file shall specify the value of pdfaid:conformance as A.</description>
<description>A Level A conforming file shall specify the value of pdfaid:conformance as A</description>
<test>conformance == &quot;A&quot;</test>
<error>
<message>The &quot;conformance&quot; property of the PDF/A Identification Schema is %1 instead of &quot;A&quot; for PDF/A-1a conforming file.</message>
<message>The &quot;conformance&quot; property of the PDF/A Identification Schema is %1 instead of &quot;A&quot; for PDF/A-1a conforming file</message>
<arguments>
<argument>conformance</argument>
</arguments>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
<profile xmlns="http://www.verapdf.org/ValidationProfile" flavour="PDFA_1_A">
<details creator="veraPDF Consortium" created="2016-02-15T10:58:04.098+03:00">
<name>ISO 19005-1:2005 - 6.8.2 Tagged PDF - 6.8.2.2 Mark information dictionary - Marked entry</name>
<description>The document catalog dictionary shall include a MarkInfo dictionary with a Marked entry in it, whose value shall be true.</description>
<description>The document catalog dictionary shall include a MarkInfo dictionary with a Marked entry in it, whose value shall be true</description>
</details>
<hash></hash>
<rules>
<rule object="CosDocument">
<id specification="ISO_19005_1" clause="6.8.2.2" testNumber="1"/>
<description>The document catalog dictionary shall include a MarkInfo dictionary with a Marked entry in it, whose value shall be true.</description>
<description>The document catalog dictionary shall include a MarkInfo dictionary with a Marked entry in it, whose value shall be true</description>
<test>Marked == true</test>
<error>
<message>MarkInfo dictionary is not present in the document catalog, or Marked entry is set to false or
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
<details creator="veraPDF Consortium" created="2016-02-15T10:58:04.137+03:00">
<name>ISO 19005-1:2005 - 6.8.3 Artifacts - 6.8.3.4 Structure types - Standard roles</name>
<description>All non-standard structure types shall be mapped to the nearest functionally equivalent standard type, as
defined in PDF Reference 9.7.4, in the role map dictionary of the structure tree root.</description>
defined in PDF Reference 9.7.4, in the role map dictionary of the structure tree root</description>
</details>
<hash></hash>
<rules>
<rule object="SENonStandard">
<id specification="ISO_19005_1" clause="6.8.3.4" testNumber="1"/>
<description>All non-standard structure types shall be mapped to the nearest functionally equivalent standard type, as
defined in PDF Reference 9.7.4, in the role map dictionary of the structure tree root.</description>
defined in PDF Reference 9.7.4, in the role map dictionary of the structure tree root</description>
<test>circularMappingExist == true</test>
<error>
<message>Non-standard structure type %1 is not mapped to a standard type</message>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
<profile xmlns="http://www.verapdf.org/ValidationProfile" flavour="PDFA_1_A">
<details creator="veraPDF Consortium" created="2016-02-15T10:58:04.137+03:00">
<name>ISO 19005-1:2005 - 6.8.3 Artifacts - 6.8.3.4 Structure types - Circular mapping</name>
<description>A circular mapping shall not exist.</description>
<description>A circular mapping shall not exist</description>
</details>
<hash></hash>
<rules>
<rule object="SENonStandard">
<id specification="ISO_19005_1" clause="6.8.3.4" testNumber="2"/>
<description>A circular mapping shall not exist.</description>
<description>A circular mapping shall not exist</description>
<test>circularMappingExist != true</test>
<error>
<message>A circular mapping exists for %1 structure type</message>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
<name>ISO 19005-1:2005 - 6.8.4 Natural language specification</name>
<description>If the Lang entry is present in the document catalog dictionary or in a structure element
dictionary or property list, its value shall be a language identifier as defined by RFC 1766, Tags for the
Identification of Languages, as described in PDF Reference 9.8.1.</description>
Identification of Languages, as described in PDF Reference 9.8.1</description>
</details>
<hash></hash>
<rules>
<rule object="CosLang">
<id specification="ISO_19005_1" clause="6.8.4" testNumber="1"/>
<description>If the Lang entry is present in the document catalog dictionary or in a structure element
dictionary or property list, its value shall be a language identifier as defined by RFC 1766, Tags for
the Identification of Languages, as described in PDF Reference 9.8.1.</description>
the Identification of Languages, as described in PDF Reference 9.8.1</description>
<test>unicodeValue == '' || /^[a-zA-Z]{1,8}(-[a-zA-Z]{1,8})*$/.test(unicodeValue)</test>
<error>
<message>Value %1 of the Lang entry is not Language-Tag</message>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
<profile xmlns="http://www.verapdf.org/ValidationProfile" flavour="PDFA_1_A">
<details creator="veraPDF Consortium" created="2016-02-15T10:58:04.857+03:00">
<name>ISO 19005-1:2005 - 6.1.3 File trailer - EOF</name>
<description>No data shall follow the last end-of-file marker except a single optional end-of-line marker.</description>
<description>No data shall follow the last end-of-file marker except a single optional end-of-line marker</description>
</details>
<hash></hash>
<rules>
<rule object="CosDocument">
<id specification="ISO_19005_1" clause="6.1.3" testNumber="3"/>
<description>No data shall follow the last end-of-file marker except a single optional end-of-line marker.</description>
<description>No data shall follow the last end-of-file marker except a single optional end-of-line marker</description>
<test>postEOFDataSize == 0</test>
<error>
<message>%1 byte(s) of data is present after the last end-of-file marker</message>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
<name>ISO 19005-1:2005 - 6.1.8 Indirect objects - Spacings</name>
<description>The object number and generation number shall be separated by a single white-space character. The generation number and obj keyword
shall be separated by a single white-space character. The object number and endobj keyword shall each be preceded by an EOL marker. The obj and endobj
keywords shall each be followed by an EOL marker.</description>
keywords shall each be followed by an EOL marker</description>
</details>
<hash></hash>
<rules>
<rule object="CosIndirect">
<id specification="ISO_19005_1" clause="6.1.8" testNumber="1"/>
<description>The object number and generation number shall be separated by a single white-space character. The generation number and obj keyword
shall be separated by a single white-space character. The object number and endobj keyword shall each be preceded by an EOL marker. The obj and endobj
keywords shall each be followed by an EOL marker.</description>
keywords shall each be followed by an EOL marker</description>
<test>spacingCompliesPDFA</test>
<error>
<message>Extra spacings or missing EOL characters around indirect object/generation number or keywords 'obj' and 'endobj'</message>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<description>All fonts used in a conforming file shall conform to the font specifications defined in PDF Reference 5.5.
The subtype is the value of the Subtype key, if present, in the font file stream dictionary. The only valid values of this key in PDF 1.4 are
Type1C - Type 1–equivalent font program represented in the Compact Font Format (CFF) and CIDFontType0C - Type 0 CIDFont program represented
in the Compact Font Format (CFF).</description>
in the Compact Font Format (CFF)</description>
</details>
<hash></hash>
<rules>
Expand All @@ -14,7 +14,7 @@
<description>All fonts used in a conforming file shall conform to the font specifications defined in PDF Reference 5.5.
The subtype is the value of the Subtype key, if present, in the font file stream dictionary. The only valid values of this key in PDF 1.4 are
Type1C - Type 1–equivalent font program represented in the Compact Font Format (CFF) and CIDFontType0C - Type 0 CIDFont program represented
in the Compact Font Format (CFF).</description>
in the Compact Font Format (CFF)</description>
<test>fontFileSubtype == null || fontFileSubtype == "Type1C" || fontFileSubtype == "CIDFontType0C"</test>
<error>
<message>Unsupported font file format %1 of the embedded font</message>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<id specification="ISO_19005_1" clause="6.3.3.1" testNumber="1"/>
<description>For any given composite (Type 0) font referenced within a conforming file, the CIDSystemInfo entries of its
CIDFont and CMap dictionaries shall be compatible. In other words, the Registry and Ordering strings of the CIDSystemInfo dictionaries
for that font shall be identical, unless the value of the Encoding key in the font dictionary is Identity-H or Identity-V.</description>
for that font shall be identical, unless the value of the Encoding key in the font dictionary is Identity-H or Identity-V</description>
<test>cmapName == &quot;Identity-H&quot; || cmapName == &quot;Identity-V&quot; || (CIDFontOrdering != null &amp;&amp;
CIDFontOrdering == CMapOrdering &amp;&amp; CIDFontRegistry != null &amp;&amp; CIDFontRegistry == CMapRegistry)</test>
<error>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
<profile xmlns="http://www.verapdf.org/ValidationProfile" flavour="PDFA_1_A">
<details creator="veraPDF Consortium" created="2016-02-15T10:58:06.026+03:00">
<name>ISO 19005-1:2005 - 6.3.5 Font subsets</name>
<description>Embedded font programs shall define all font glyphs referenced for rendering with conforming file.</description>
<description>Embedded font programs shall define all font glyphs referenced for rendering with conforming file</description>
</details>
<hash></hash>
<rules>
<rule object="Glyph">
<id specification="ISO_19005_1" clause="6.3.5" testNumber="1"/>
<description>Embedded font programs shall define all font glyphs referenced for rendering with conforming file.</description>
<description>Embedded font programs shall define all font glyphs referenced for rendering with conforming file</description>
<test>renderingMode == 3 || isGlyphPresent == null || isGlyphPresent == true</test>
<error>
<message>Not all glyphs referenced for rendering are present in the embedded font program</message>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
<details creator="veraPDF Consortium" created="2016-02-15T10:58:06.144+03:00">
<name>ISO 19005-1:2005 - 6.3.6 Font metrics</name>
<description>For every font embedded in a conforming file and used for rendering, the glyph width information in the font dictionary and
in the embedded font program shall be consistent.</description>
in the embedded font program shall be consistent</description>
</details>
<hash></hash>
<rules>
<rule object="Glyph">
<id specification="ISO_19005_1" clause="6.3.6" testNumber="1"/>
<description>For every font embedded in a conforming file and used for rendering, the glyph width information in the font dictionary and
in the embedded font program shall be consistent.</description>
in the embedded font program shall be consistent</description>
<test>renderingMode == 3 || widthFromFontProgram == null || widthFromDictionary == null ||
Math.abs(widthFromFontProgram - widthFromDictionary) &lt;= 1</test>
<error>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<description>All non-symbolic TrueType fonts shall specify MacRomanEncoding or WinAnsiEncoding, either as
the value of the Encoding entry in the font dictionary or as the value of the BaseEncoding entry in the
dictionary that is the value of the Encoding entry in the font dictionary.
If the value of the Encoding entry is a dictionary, it shall not contain a Differences entry.</description>
If the value of the Encoding entry is a dictionary, it shall not contain a Differences entry</description>
</details>
<hash></hash>
<rules>
Expand All @@ -14,7 +14,7 @@
<description>All non-symbolic TrueType fonts shall specify MacRomanEncoding or WinAnsiEncoding, either as
the value of the Encoding entry in the font dictionary or as the value of the BaseEncoding entry in the
dictionary that is the value of the Encoding entry in the font dictionary.
If the value of the Encoding entry is a dictionary, it shall not contain a Differences entry.</description>
If the value of the Encoding entry is a dictionary, it shall not contain a Differences entry</description>
<test>isSymbolic == true || ((Encoding == &quot;MacRomanEncoding&quot; ||
Encoding == &quot;WinAnsiEncoding&quot;) &amp;&amp; containsDifferences == false)</test>
<error>
Expand All @@ -26,7 +26,7 @@
</arguments>
</error>
<references>
<reference specification="ISO19005-1:2005/Cor.2:2011" clause="6.3.7"/>
<reference specification="ISO 19005-1:2005/Cor.2:2011" clause="6.3.7"/>
</references>
</rule>
</rules>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<arguments/>
</error>
<references>
<reference specification="ISO19005-1:2005/Cor.2:2011" clause="6.3.7"/>
<reference specification="ISO 19005-1:2005/Cor.2:2011" clause="6.3.7"/>
</references>
</rule>
</rules>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</arguments>
</error>
<references>
<reference specification="ISO19005-1:2005/Cor.2:2011" clause="6.3.7"/>
<reference specification="ISO 19005-1:2005/Cor.2:2011" clause="6.3.7"/>
</references>
</rule>
</rules>
Expand Down
2 changes: 1 addition & 1 deletion PDF_A/1b/6.4 Transparency/verapdf-profile-6-4-t02.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<arguments/>
</error>
<references>
<reference specification="ISO19005-1:2005/Cor.2:2011" clause="6.4"/>
<reference specification="ISO 19005-1:2005/Cor.2:2011" clause="6.4"/>
</references>
</rule>
</rules>
Expand Down
2 changes: 1 addition & 1 deletion PDF_A/1b/6.4 Transparency/verapdf-profile-6-4-t03.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<arguments/>
</error>
<references>
<reference specification="ISO19005-1:2005/Cor.2:2011" clause="6.4"/>
<reference specification="ISO 19005-1:2005/Cor.2:2011" clause="6.4"/>
</references>
</rule>
</rules>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
(F = %1, Print = %2, Hidden = %3, Invisible = %4, NoView = %5)</message>
<arguments>
<argument>F</argument>
<argument>F != null ? (F &amp; 4) >> 2 : null</argument>
<argument>F != null ? (F &amp; 2) >> 1 : null</argument>
<argument>F != null ? (F &amp; 4) &gt;&gt; 2 : null</argument>
<argument>F != null ? (F &amp; 2) &gt;&gt; 1 : null</argument>
<argument>F != null ? (F &amp; 1) : null</argument>
<argument>F != null ? (F &amp; 32) >> 5 : null</argument>
<argument>F != null ? (F &amp; 32) &gt;&gt; 5 : null</argument>
</arguments>
</error>
<references/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
<details creator="veraPDF Consortium" created="2016-02-15T10:58:06.708+03:00">
<name>ISO 19005-1:2005 - 6.5.3 Annotation dictionaries - Normal appearance</name>
<description>For all annotation dictionaries containing an AP key, the appearance dictionary that it defines as
its value shall contain only the N key.</description>
its value shall contain only the N key</description>
</details>
<hash></hash>
<rules>
<rule object="PDAnnot">
<id specification="ISO_19005_1" clause="6.5.3" testNumber="4"/>
<description>For all annotation dictionaries containing an AP key, the appearance dictionary that it defines as
its value shall contain only the N key.</description>
its value shall contain only the N key</description>
<test>AP == null || AP == &quot;N&quot;</test>
<error>
<message>Annotation's appearance dictionary contains entries %1 other than N</message>
Expand All @@ -19,7 +19,7 @@
</arguments>
</error>
<references>
<reference specification="ISO19005-1/Cor.2:2011" clause="6.5.3"/>
<reference specification="ISO 19005-1/Cor.2:2011" clause="6.5.3"/>
</references>
</rule>
</rules>
Expand Down
Loading

0 comments on commit b90fdc9

Please sign in to comment.