{"details":{"name":"PDF/A-4F validation profile","description":"Validation rules against ISO 19005-4:2020, Level F","creator":"veraPDF Consortium","dateCreated":1608883155826},"rules":[{"object":"CosStream","deferred":null,"tags":null,"description":"A stream dictionary shall not contain the F, FFilter, or FDecodeParms keys","test":"F == null && FFilter == null && FDecodeParms == null","error":{"message":"A stream object dictionary contains %1 key(s)","arguments":[{"argument":"keysString.split('&').filter(elem => elem == 'F' || elem == 'FFilter' || elem == 'FDecodeParms').toString()","name":null,"argumentValue":null}]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.1.6.1","testNumber":2}},{"object":"ICCInputProfile","deferred":null,"tags":null,"description":"The profile that forms the stream of an ICCBased colour space shall conform to ISO 32000-2:2020, 8.6.5.5","test":"(deviceClass == \"prtr\" || deviceClass == \"mntr\" || deviceClass == \"scnr\" || deviceClass == \"spac\") && (colorSpace == \"RGB \" || colorSpace == \"CMYK\" || colorSpace == \"GRAY\" || colorSpace == \"Lab \") && version < 5.0","error":{"message":"The embedded ICC profile (Device Class = %1, color space = %2, version = %3) is either invalid or does not satisfy PDF 2.0 requirements","arguments":[{"argument":"deviceClass","name":null,"argumentValue":null},{"argument":"colorSpace","name":null,"argumentValue":null},{"argument":"version","name":null,"argumentValue":null}]},"references":[{"specification":"ISO 32000-2:2020","clause":"8.6.5.5"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.2.4.2","testNumber":1}},{"object":"PDHalftone","deferred":null,"tags":null,"description":"The TransferFunction key in a halftone dictionary shall be used only as required by ISO 32000-2:2020","test":"colorantName == 'Default' || ((colorantName == null || colorantName == 'Cyan' || colorantName == 'Magenta' || colorantName == 'Yellow' || colorantName == 'Black') ? TransferFunction == null : TransferFunction != null)","error":{"message":"Custom TransferFunction in a Halftone dictionary is not permitted for primary (CMYK) colorants","arguments":[]},"references":[{"specification":"ISO 32000-2:2020","clause":"10.6.5.2, Table 128"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.2.5","testNumber":6}},{"object":"PDFont","deferred":null,"tags":null,"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 2.0 are Type1C - Type 1–equivalent font program represented in the Compact Font Format (CFF), CIDFontType0C - Type 0 CIDFont program represented in the Compact Font Format (CFF) and OpenType - OpenType® font program, as described in the ISO/IEC 14496-22","test":"fontFileSubtype == null || fontFileSubtype == \"Type1C\" || fontFileSubtype == \"CIDFontType0C\" || fontFileSubtype == \"OpenType\"","error":{"message":"Unsupported font file format %1 of the embedded font","arguments":[{"argument":"fontFileSubtype","name":null,"argumentValue":null}]},"references":[{"specification":"ISO 32000-2:2020","clause":"9.9.1, Table 124"},{"specification":"Adobe Technical Note #5176, The Compact Font Format Specification","clause":""},{"specification":"ISO/IEC14496-22:2019","clause":""}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.2.10.2","testNumber":7}},{"object":"PDCMap","deferred":null,"tags":null,"description":"All CMaps used within a conforming PDF/A-4 file, except those listed in ISO 32000-2:2020, 9.7.5.2 Table 116, shall be embedded in that file as described in ISO 32000-2:2020, 9.7.5","test":"CMapName == \"Identity-H\" || CMapName == \"Identity-V\" || CMapName == \"GB-EUC-H\" || CMapName == \"GB-EUC-V\" || CMapName == \"GBpc-EUC-H\" || CMapName == \"GBpc-EUC-V\" || CMapName == \"GBK-EUC-H\" || CMapName == \"GBK-EUC-V\" || CMapName == \"GBKp-EUC-H\" || CMapName == \"GBKp-EUC-V\" || CMapName == \"GBK2K-H\" || CMapName == \"GBK2K-V\" || CMapName == \"UniGB-UCS2-H\" || CMapName == \"UniGB-UCS2-V\" || CMapName == \"UniGB-UFT16-H\" || CMapName == \"UniGB-UFT16-V\" || CMapName == \"B5pc-H\" || CMapName == \"B5pc-V\" || CMapName == \"HKscs-B5-H\" || CMapName == \"HKscs-B5-V\" || CMapName == \"ETen-B5-H\" || CMapName == \"ETen-B5-V\" || CMapName == \"ETenms-B5-H\" || CMapName == \"ETenms-B5-V\" || CMapName == \"CNS-EUC-H\" || CMapName == \"CNS-EUC-V\" || CMapName == \"UniCNS-UCS2-H\" || CMapName == \"UniCNS-UCS2-V\" || CMapName == \"UniCNS-UFT16-H\" || CMapName == \"UniCNS-UTF16-V\" || CMapName == \"83pv-RKSJ-H\" || CMapName == \"90ms-RKSJ-H\" || CMapName == \"90ms-RKSJ-V\" || CMapName == \"90msp-RKSJ-H\" || CMapName == \"90msp-RKSJ-V\" || CMapName == \"90pv-RKSJ-H\" || CMapName == \"Add-RKSJ-H\" || CMapName == \"Add-RKSJ-V\" || CMapName == \"EUC-H\" || CMapName == \"EUC-V\" || CMapName == \"Ext-RKSJ-H\" || CMapName == \"Ext-RKSJ-V\" || CMapName == \"H\" || CMapName == \"V\" || CMapName == \"UniJIS-UCS2-H\" || CMapName == \"UniJIS-UCS2-V\" || CMapName == \"UniJIS-UCS2-HW-H\" || CMapName == \"UniJIS-UCS2-HW-V\" || CMapName == \"UniJIS-UTF16-H\" || CMapName == \"UniJIS-UTF16-V\" || CMapName == \"KSC-EUC-H\" || CMapName == \"KSC-EUC-V\" || CMapName == \"KSCms-UHC-H\" || CMapName == \"KSCms-UHC-V\" || CMapName == \"KSCms-UHC-HW-H\" || CMapName == \"KSCms-UHC-HW-V\" || CMapName == \"KSCpc-EUC-H\" || CMapName == \"UniKS-UCS2-H\" || CMapName == \"UniKS-UCS2-V\" || CMapName == \"UniKS-UTF16-H\" || CMapName == \"UniKS-UTF16-V\" || containsEmbeddedFile == true","error":{"message":"A non-standard CMap %1 is not embedded","arguments":[{"argument":"CMapName","name":null,"argumentValue":null}]},"references":[{"specification":"ISO 32000-2:2020","clause":"9.7.5.2, Table 116"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.2.10.3.3","testNumber":1}},{"object":"CosBM","deferred":null,"tags":null,"description":"Only blend modes that are specified in ISO 32000-2:2020 shall be used for the value of the BM key in a graphic state dictionary or an annotation dictionary","test":"internalRepresentation == \"Normal\" || internalRepresentation == \"Compatible\" || internalRepresentation == \"Multiply\" || internalRepresentation == \"Screen\" || internalRepresentation == \"Overlay\" || internalRepresentation == \"Darken\" || internalRepresentation == \"Lighten\" || internalRepresentation == \"ColorDodge\" || internalRepresentation == \"ColorBurn\" || internalRepresentation == \"HardLight\" || internalRepresentation == \"SoftLight\" || internalRepresentation == \"Difference\" || internalRepresentation == \"Exclusion\" || internalRepresentation == \"Hue\" || internalRepresentation == \"Saturation\" || internalRepresentation == \"Color\" || internalRepresentation == \"Luminosity\"","error":{"message":"The document uses the blend mode %1 not defined in ISO 32000-2:2020","arguments":[{"argument":"internalRepresentation","name":null,"argumentValue":null}]},"references":[{"specification":"ISO 32000-2:2020","clause":"11.3.5, Tables 134-135"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.2.9","testNumber":1}},{"object":"PDFont","deferred":null,"tags":null,"description":"All fonts and font programs used in a conforming file, regardless of rendering mode usage, shall conform to the provisions in ISO 32000-2:2020, 9.6 and 9.7, as well as to the font specifications referenced by these provisions. BaseFont - name - (Required) The PostScript name of the font","test":"Subtype == \"Type3\" || fontName != null","error":{"message":"A BaseFont entry is missing or has invalid type","arguments":[]},"references":[{"specification":"ISO 32000-2:2020","clause":"9.6.2.1, Table 109"},{"specification":"ISO 32000-2:2020","clause":"9.7.4.1, Table 115"},{"specification":"ISO 32000-2:2020","clause":"9.7.6.1, Table 119"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.2.10.2","testNumber":3}},{"object":"PDOCConfig","deferred":null,"tags":null,"description":"If an optional content configuration dictionary contains the Order key, the array which is the value of this Order key shall contain references to all OCGs in the conforming file","test":"OCGsNotContainedInOrder == null","error":{"message":"Optional content group(s) %1 not present in the Order entry of the optional content configuration dictionary","arguments":[{"argument":"OCGsNotContainedInOrder","name":null,"argumentValue":null}]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.10","testNumber":3}},{"object":"CosDocument","deferred":null,"tags":null,"description":"The aforementioned EOL marker shall be immediately followed by a % (25h) character followed by at least four bytes, each of whose encoded byte values shall have a decimal value greater than 127","test":"headerByte1 > 127 && headerByte2 > 127 && headerByte3 > 127 && headerByte4 > 127","error":{"message":"Binary comment in the file header is missing or does not start with 4 bytes with byte values above 127 (first four bytes = %1, %2, %3, %4)","arguments":[{"argument":"headerByte1","name":null,"argumentValue":null},{"argument":"headerByte2","name":null,"argumentValue":null},{"argument":"headerByte3","name":null,"argumentValue":null},{"argument":"headerByte4","name":null,"argumentValue":null}]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.1.2","testNumber":2}},{"object":"CMapFile","deferred":null,"tags":null,"description":"For those CMaps that are embedded, the integer value of the WMode entry in the CMap dictionary shall be identical to the WMode value in the embedded CMap stream","test":"WMode == dictWMode","error":{"message":"WMode entry (value %1) in the embedded CMap and in the CMap dictionary (value %2) are not identical","arguments":[{"argument":"WMode","name":null,"argumentValue":null},{"argument":"dictWMode","name":null,"argumentValue":null}]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.2.10.3.3","testNumber":2}},{"object":"PDDeviceRGB","deferred":null,"tags":null,"description":"DeviceRGB shall only be used if a device independent DefaultRGB colour space has been set when the DeviceRGB colour space is used or if the current transparency blending space, when the DeviceRGB colour space is used, is a device independent RGB-based colour space or the current PDF/A OutputIntent, when the DeviceRGB colour space is used, contains an 'RGB ' destination profile","test":"(gPageOutputCS == null ? gDocumentOutputCS == 'RGB ' : gPageOutputCS == 'RGB ') || gTransparencyCS == 'RGB ' || gTransparencyCS == 'CalRGB'","error":{"message":"DeviceRGB colour space is used without RGB output intent profile and without current transparency blending space being Device-independent RGB","arguments":[]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.2.4.3","testNumber":2}},{"object":"TrueTypeFontProgram","deferred":null,"tags":null,"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","test":"isSymbolic == true || cmap31Present == true || cmap10Present == true","error":{"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","arguments":[]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.2.10.6","testNumber":1}},{"object":"PDDocument","deferred":null,"tags":null,"description":"There shall be no AlternatePresentations entry in the document's name dictionary","test":"containsAlternatePresentations == false","error":{"message":"The document's name dictionary contains the AlternatePresentations entry","arguments":[]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.11","testNumber":1}},{"object":"CosInfo","deferred":null,"tags":null,"description":"If a document information dictionary is present, it shall only contain a ModDate entry","test":"size == 1 && ModDate != null","error":{"message":"Document information dictionary is present and contains %1 key(s), but allowed only ModDate","arguments":[{"argument":"keysString.split('&').filter(elem => elem != 'ModDate').toString()","name":null,"argumentValue":null}]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.1.3","testNumber":5}},{"object":"CosDocument","deferred":null,"tags":null,"description":"A PDF/A-4f conforming file shall contain an EmbeddedFiles key in the name dictionary of the document catalog dictionary","test":"containsEmbeddedFiles == true","error":{"message":"A PDF/A-4f conforming file does not contain an EmbeddedFiles key in the name dictionary of the document catalog dictionary","arguments":[]},"references":[{"specification":"ISO 19005-4:2020","clause":"Annex A"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.9","testNumber":5}},{"object":"CosDocument","deferred":null,"tags":null,"description":"File identifiers shall be defined by the ID entry in a PDF file’s trailer dictionary","test":"lastID != null && lastID.length() > 0","error":{"message":"Missing or empty ID in the document trailer","arguments":[]},"references":[{"specification":"ISO 32000-2:2020","clause":"14.4"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.1.3","testNumber":1}},{"object":"PDAnnot","deferred":null,"tags":null,"description":"If an annotation dictionary's Subtype key has value other than Widget, or if FT key associated with Widget annotation has value other than Btn, the value of the N key shall be an appearance stream","test":"AP != \"N\" || (Subtype == \"Widget\" && FT == \"Btn\") || N_type == \"Stream\"","error":{"message":"An annotation dictionary's Subtype key has a value %1 and its FT key has a value %2, but the value of the N key is not an appearance stream","arguments":[{"argument":"Subtype","name":null,"argumentValue":null},{"argument":"FT","name":null,"argumentValue":null}]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.3.3","testNumber":4}},{"object":"PDTrueTypeFont","deferred":null,"tags":null,"description":"Symbolic TrueType fonts shall not contain an Encoding entry in the font dictionary","test":"isSymbolic == false || Encoding == null","error":{"message":"A symbolic TrueType font specifies an Encoding entry in its dictionary","arguments":[]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.2.10.6","testNumber":3}},{"object":"PDAnnot","deferred":null,"tags":null,"description":"Every annotation (including those whose Subtype value is Widget, as used for form fields), except for the two cases listed below, shall have at least one appearance dictionary: Annotations where the value of the Rect key consists of an array where the value at index 1 is equal to the value at index 3 and the value at index 2 is equal to the value at index 4; - annotations whose Subtype value is Popup, Link or Projection","test":"(width == 0 && height == 0) || Subtype == \"Popup\" || Subtype == \"Link\" || Subtype == \"Projection\" || AP != null","error":{"message":"An annotation does not contain an appearance dictionary","arguments":[]},"references":[{"specification":"ISO 32000-2:2020","clause":"12.5.2, Table 166"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.3.3","testNumber":1}},{"object":"PDDeviceGray","deferred":null,"tags":null,"description":"DeviceGray shall only be used if a device independent DefaultGray colour space has been set when the DeviceGray colour space is used, or if a PDF/A OutputIntent is in effect","test":"gPageOutputCS != null || gDocumentOutputCS != null","error":{"message":"DeviceGray colour space is used without output intent profile","arguments":[]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.2.4.3","testNumber":4}},{"object":"PDWidgetAnnot","deferred":null,"tags":null,"description":"A Widget annotation dictionary shall not contain the A key","test":"containsA == false","error":{"message":"A Widget annotation contains A entry","arguments":[]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.4.1","testNumber":1}},{"object":"CosUnicodeName","deferred":null,"tags":null,"description":"Font names, names of colourants in Separation and DeviceN colour spaces, and structure type names, after expansion of character sequences escaped with a NUMBER SIGN (23h), if any, shall be valid UTF-8 character sequences","test":"isValidUtf8 == true","error":{"message":"The name value %1 does not represent a correct UTF-8 character sequence","arguments":[{"argument":"unicodeValue","name":null,"argumentValue":null}]},"references":[{"specification":"ISO 32000-2:2020","clause":"7.3.5"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.1.7","testNumber":1}},{"object":"PDAction","deferred":null,"tags":null,"description":"The Launch, Sound, Movie, ResetForm, ImportData, Hide, Rendition, Trans, SetOCGState and GoTo3DView actions shall not be permitted. Additionally, the obsoleted set-state and no-op actions shall not be permitted","test":"S == \"GoTo\" || S == \"GoToR\" || S == \"GoToE\" || S == \"Thread\" || S == \"URI\" || S == \"Named\" || S == \"SubmitForm\" || S == \"JavaScript\" || S == \"RichMediaExecute\" || S == \"GoToDp\"","error":{"message":"Unknown or not permitted Action type %1","arguments":[{"argument":"S","name":null,"argumentValue":null}]},"references":[{"specification":"ISO 32000-2:2010","clause":"12.6.4.1, Table 201"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.6.1","testNumber":1}},{"object":"JPEG2000","deferred":null,"tags":null,"description":"The value of the METH entry in its 'colr' box shall be 0x01, 0x02 or 0x03. A conforming processor shall use only that colour space and shall ignore all other colour space specifications","test":"hasColorSpace == true || colrMethod == 1 || colrMethod == 2 || colrMethod == 3","error":{"message":"Invalid JPEG2000 image: the value of the METH entry (%1) in its 'colr' box is different from 0x01, 0x02 or 0x03","arguments":[{"argument":"colrMethod","name":null,"argumentValue":null}]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.2.7.3","testNumber":3}},{"object":"ICCOutputProfile","deferred":null,"tags":null,"description":"The profile stream that is the value of the DestOutputProfile key shall either be an output profile (Device Class = \"prtr\") or a monitor profile (Device Class = \"mntr\"). The profiles shall have a colour space of either \"GRAY\", \"RGB\", or \"CMYK\"","test":"(deviceClass == \"prtr\" || deviceClass == \"mntr\") && (colorSpace == \"RGB \" || colorSpace == \"CMYK\" || colorSpace == \"GRAY\") && version < 5.0","error":{"message":"The embedded PDF/A Output Intent colour profile has invalid header (Device Class = %1, color space = %2, version = %3)","arguments":[{"argument":"deviceClass","name":null,"argumentValue":null},{"argument":"colorSpace","name":null,"argumentValue":null},{"argument":"version","name":null,"argumentValue":null}]},"references":[{"specification":"ISO 32000-2:2020","clause":"14.11.5"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.2.3","testNumber":1}},{"object":"JPEG2000","deferred":null,"tags":null,"description":"The number of colour channels in the JPEG2000 data shall be 1, 3 or 4","test":"nrColorChannels == 1 || nrColorChannels == 3 || nrColorChannels == 4","error":{"message":"JPEG2000 image has %1 colour channels that is neither 1, 3 or 4","arguments":[{"argument":"nrColorChannels","name":null,"argumentValue":null}]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.2.7.3","testNumber":1}},{"object":"OutputIntents","deferred":null,"tags":null,"description":"If any OutputIntents array contains more than one entry, as might be the case where a file is compliant with this part of ISO 19005 and at the same time with PDF/X or PDF/E, then all entries that contain a DestOutputProfile key shall have as the value of that key the same indirect object, which shall be a valid ICC profile stream","test":"sameOutputProfileIndirect == true","error":{"message":"OutputIntents array contains output intent dictionaries with non-matching destination output profiles (indirect keys %1)","arguments":[{"argument":"outputProfileIndirects","name":null,"argumentValue":null}]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.2.3","testNumber":2}},{"object":"EmbeddedFile","deferred":null,"tags":null,"description":"The embedded file stream dictionary shall include a valid MIME type value for the Subtype key. If the MIME type is not known, the value \"application/octet-stream\" shall be used","test":"Subtype != null && /^[-\\w+\\.]+\\/[-\\w+\\.]+$/.test(Subtype)","error":{"message":"MIME type %1 of an embedded file is missing or invalid","arguments":[{"argument":"Subtype","name":null,"argumentValue":null}]},"references":[{"specification":"ISO 32000-2:2020","clause":"14.13.2"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.9","testNumber":1}},{"object":"PDPage","deferred":null,"tags":null,"description":"There shall be no PresSteps entry in any Page dictionary","test":"containsPresSteps == false","error":{"message":"A Page dictionary contains the PresSteps entry","arguments":[]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.11","testNumber":2}},{"object":"PDNamedAction","deferred":null,"tags":null,"description":"Named actions other than NextPage, PrevPage, FirstPage, and LastPage shall not be permitted","test":"N == \"NextPage\" || N == \"PrevPage\" || N == \"FirstPage\" || N == \"LastPage\"","error":{"message":"Unknown or not permitted named action %1","arguments":[{"argument":"N","name":null,"argumentValue":null}]},"references":[{"specification":"ISO 32000-2:2020","clause":"12.6.4.12, Table 215"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.6.1","testNumber":2}},{"object":"PDMaskImage","deferred":null,"tags":null,"description":"If an image mask dictionary contains the BitsPerComponent key, its value shall be 1","test":"BitsPerComponent == null || BitsPerComponent == 1","error":{"message":"The value of the BitsPerComponent key in the image mask dictionary is %1","arguments":[{"argument":"BitsPerComponent","name":null,"argumentValue":null}]},"references":[{"specification":"ISO 32000-2:2020","clause":"8.9.5.1, Table 87"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.2.7.1","testNumber":5}},{"object":"PDSimpleFont","deferred":null,"tags":null,"description":"All fonts and font programs used in a conforming file, regardless of rendering mode usage, shall conform to the provisions in ISO 32000-2:2020, 9.6 and 9.7, as well as to the font specifications referenced by these provisions. LastChar - integer - (Required except for the standard 14 fonts) The last character code defined in the font's Widths array","test":"isStandard == true || LastChar != null","error":{"message":"A non-standard simple font dictionary has missing or invalid LastChar entry","arguments":[]},"references":[{"specification":"ISO 32000-2:2020","clause":"9.6.2.1, Table 109"},{"specification":"ISO 32000-2:2020","clause":"9.6.4, Table 110"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.2.10.2","testNumber":5}},{"object":"PDAdditionalActions","deferred":null,"tags":null,"description":"If a document catalog dictionary or page dictionary or an annotation dictionary (other than a Widget annotation dictionary) include an AA entry, its value (which is an additional-actions dictionary) shall only contain keys from the following list: E, X, D, U, Fo, and Bl","test":"parentType == 'WidgetAnnot' || parentType == 'FormField' || entries.split('&').filter(elem => elem != 'E' && elem != 'X' && elem != 'D' && elem != 'U' && elem != 'Fo' && elem != 'Bl').length == 0 || entries == ''","error":{"message":"Additional-actions dictionary contains key(s) %1 not from the following permitted list: E, X, D, U, Fo, and Bl","arguments":[{"argument":"entries.split('&').filter(elem => elem != 'E' && elem != 'X' && elem != 'D' &&\n                        elem != 'U' && elem != 'Fo' && elem != 'Bl').toString()","name":null,"argumentValue":null}]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.6.3","testNumber":1}},{"object":"PDFont","deferred":null,"tags":null,"description":"All fonts and font programs used in a conforming file, regardless of rendering mode usage, shall conform to the provisions in ISO 32000-2:2020, 9.6 and 9.7, as well as to the font specifications referenced by these provisions. Type - name - (Required) The type of PDF object that this dictionary describes; must be Font for a font dictionary","test":"Type == \"Font\"","error":{"message":"A Font dictionary has value %1 of Type entry instead of Font","arguments":[{"argument":"Type","name":null,"argumentValue":null}]},"references":[{"specification":"ISO 32000-2:2020","clause":"9.6.2.1, Table 109"},{"specification":"ISO 32000-2:2020","clause":"9.6.4, Table 110"},{"specification":"ISO 32000-2:2020","clause":"9.7.4.1, Table 115"},{"specification":"ISO 32000-2:2020","clause":"9.7.6.1, Table 119"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.2.10.2","testNumber":1}},{"object":"CosStream","deferred":null,"tags":null,"description":"The value of the Length key specified in the stream dictionary shall match the number of bytes in the file following the LINE FEED (0Ah) character after the stream keyword and preceding the EOL marker before the endstream keyword","test":"Length == realLength","error":{"message":"Actual length of the stream (%1 byte(s)) does not match the value of the Length key in the Stream dictionary (%2 byte(s))","arguments":[{"argument":"realLength","name":null,"argumentValue":null},{"argument":"Length","name":null,"argumentValue":null}]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.1.6.1","testNumber":1}},{"object":"CosFilter","deferred":null,"tags":null,"description":"All standard stream filters listed in ISO 32000-2:2020, 7.4, Table 6 may be used, with the exception of LZWDecode. Filters that are not listed in ISO 32000-2:2020, 7.4, Table 6 shall not be used. In addition, the Crypt filter shall not be used unless the value of the Name key in the decode parameters dictionary is Identity","test":" internalRepresentation == \"ASCIIHexDecode\" || internalRepresentation == \"ASCII85Decode\" || internalRepresentation == \"FlateDecode\" || internalRepresentation == \"RunLengthDecode\" || internalRepresentation == \"CCITTFaxDecode\" || internalRepresentation == \"JBIG2Decode\" || internalRepresentation == \"DCTDecode\" || internalRepresentation == \"JPXDecode\" || (internalRepresentation == \"Crypt\" && decodeParms == \"Identity\")","error":{"message":"Unknown or not permitted Stream filter %1 is used","arguments":[{"argument":"internalRepresentation","name":null,"argumentValue":null}]},"references":[{"specification":"ISO 32000-2:2020","clause":"7.4"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.1.6.2","testNumber":1}},{"object":"CosString","deferred":null,"tags":null,"description":"Hexadecimal strings shall contain an even number of non-white-space characters","test":"(isHex != true) || hexCount % 2 == 0","error":{"message":"A hexadecimal string contains odd number (%1) of non-white-space characters","arguments":[{"argument":"hexCount","name":null,"argumentValue":null}]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.1.5","testNumber":1}},{"object":"CosTrailer","deferred":null,"tags":null,"description":"The Encrypt key shall not be present in the trailer dictionary","test":"isEncrypted != true","error":{"message":"The Encrypt key is present in the trailer dictionary","arguments":[]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.1.3","testNumber":2}},{"object":"PDExtGState","deferred":null,"tags":null,"description":"A graphics state parameter dictionary shall not contain the HTO key","test":"containsHTO == false","error":{"message":"A graphics state parameter dictionary contains the HTO key","arguments":[]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.2.5","testNumber":3}},{"object":"PDDocument","deferred":null,"tags":null,"description":"If the Version key is present in the document catalog dictionary, the first character in its value shall be a 2 (32h) and the second character of its value shall be a PERIOD (2Eh) (decimal point). The third character shall be a decimal digit. The number of characters of the value of the Version key shall be exactly 3","test":"Version == null || /^2\\.[0-9]$/.test(Version)","error":{"message":"The Version key with value %1 does not match the pattern 2.n, where 'n' is a single digit number between 0 and 9","arguments":[{"argument":"Version","name":null,"argumentValue":null}]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.1.12","testNumber":1}},{"object":"PDSimpleFont","deferred":null,"tags":null,"description":"All fonts and font programs used in a conforming file, regardless of rendering mode usage, shall conform to the provisions in ISO 32000-2:2020, 9.6 and 9.7, as well as to the font specifications referenced by these provisions. Widths - array - (Required except for the standard 14 fonts; indirect reference preferred) An array of (LastChar − FirstChar + 1) widths","test":"isStandard == true || (Widths_size != null && Widths_size == LastChar - FirstChar + 1)","error":{"message":"Widths array is missing or has invalid size %1 instead of %2","arguments":[{"argument":"Widths_size","name":null,"argumentValue":null},{"argument":"LastChar - FirstChar + 1","name":null,"argumentValue":null}]},"references":[{"specification":"ISO 32000-2:2020","clause":"9.6.2.1, Table 109"},{"specification":"ISO 32000-2:2020","clause":"9.6.4, Table 110"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.2.10.2","testNumber":6}},{"object":"PDXImage","deferred":null,"tags":null,"description":"If an Image dictionary contains the BitsPerComponent key, its value shall be 1, 2, 4, 8 or 16","test":"isMask == true || BitsPerComponent == null || BitsPerComponent == 1 || BitsPerComponent == 2 || BitsPerComponent == 4 || BitsPerComponent == 8 || BitsPerComponent == 16","error":{"message":"The value of the BitsPerComponent key in the Image dictionary is %1","arguments":[{"argument":"BitsPerComponent","name":null,"argumentValue":null}]},"references":[{"specification":"ISO 32000-2:2020","clause":"8.9.5.1, Table 87"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.2.7.1","testNumber":4}},{"object":"JPEG2000","deferred":null,"tags":null,"description":"The bit-depth of the JPEG2000 data shall have a value in the range 1 to 38. All colour channels in the JPEG2000 data shall have the same bit-depth","test":"bpccBoxPresent == false && (bitDepth >= 1 && bitDepth <= 38)","error":{"message":"JPEG2000 image has different bit-depth parameters in 'bpcc' box, or bit depth is out of range ('bpcc' box present = %1, bit depth = %2)","arguments":[{"argument":"bpccBoxPresent","name":null,"argumentValue":null},{"argument":"bitDepth","name":null,"argumentValue":null}]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.2.7.3","testNumber":5}},{"object":"XMPPackage","deferred":null,"tags":null,"description":"All metadata streams present in the PDF shall conform to the XMP Specification. The XMP package must be encoded as UTF-8","test":"actualEncoding == \"UTF-8\"","error":{"message":"The XMP package uses encoding %1 different from UTF-8","arguments":[{"argument":"actualEncoding","name":null,"argumentValue":null}]},"references":[{"specification":"XMP Specification, September 2005","clause":"5 - Embedding XMP Metadata in Application Files - PDF"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.7.2.1","testNumber":5}},{"object":"PDHalftone","deferred":null,"tags":null,"description":"Halftones in a conforming PDF/A-4 file shall not contain a HalftoneName key","test":"HalftoneName == null","error":{"message":"A Halftone dictionary contains the HalftoneName key","arguments":[]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.2.5","testNumber":5}},{"object":"JPEG2000","deferred":null,"tags":null,"description":"JPEG2000 enumerated colour space 19 (CIEJab) shall not be used","test":"hasColorSpace == true || colrEnumCS == null || colrEnumCS != 19","error":{"message":"JPEG2000 image uses enumerated colour space 19 (CIEJab), which is not allowed in PDF/A","arguments":[]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.2.7.3","testNumber":4}},{"object":"PDOCConfig","deferred":null,"tags":null,"description":"Each optional content configuration dictionary that forms the value of the D key, or that is an element in the array that forms the value of the Configs key in the OCProperties dictionary, shall contain the Name key","test":"Name != null","error":{"message":"Missing Name entry of the optional content configuration dictionary","arguments":[]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.10","testNumber":1}},{"object":"PDAcroForm","deferred":null,"tags":null,"description":"The document's interactive form dictionary that forms the value of the AcroForm key in the document's Catalog of a PDF/A-4 file, if present, shall not contain the XFA key","test":"containsXFA == false","error":{"message":"The interactive form dictionary contains the XFA key","arguments":[]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.4.2","testNumber":1}},{"object":"PDFont","deferred":null,"tags":null,"description":"The font programs for all fonts used for rendering within a conforming file shall be embedded within that file, as defined in ISO 32000-2:2020, 9.9","test":"Subtype == \"Type3\" || Subtype == \"Type0\" || renderingMode == 3 || containsFontFile == true","error":{"message":"The font program is not embedded","arguments":[]},"references":[{"specification":"ISO 32000-2:2020","clause":"9.9"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.2.10.4.1","testNumber":1}},{"object":"Op_Undefined","deferred":null,"tags":null,"description":"Content streams shall not contain any operators not defined in ISO 32000-2:2020 even if such operators are bracketed by the BX/EX compatibility operators","test":"false","error":{"message":"A content stream contains operator %1 not defined in ISO 32000-2:2020","arguments":[{"argument":"name","name":null,"argumentValue":null}]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.2.2","testNumber":1}},{"object":"PDHalftone","deferred":null,"tags":null,"description":"All halftones in a conforming PDF/A-4 file shall have the value 1 or 5 for the HalftoneType key","test":"HalftoneType != null && (HalftoneType == 1 || HalftoneType == 5)","error":{"message":"A Halftone has type %1 instead of 1 or 5","arguments":[{"argument":"HalftoneType","name":null,"argumentValue":null}]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.2.5","testNumber":4}},{"object":"PDXImage","deferred":null,"tags":null,"description":"If an Image dictionary contains the Interpolate key, its value shall be false. For an inline image, the I key, if present, shall have a value of false","test":"Interpolate == false","error":{"message":"The value of the Interpolate key in the Image dictionary is true","arguments":[]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.2.7.1","testNumber":3}},{"object":"PDTrueTypeFont","deferred":null,"tags":null,"description":"All non-symbolic TrueType fonts shall have either MacRomanEncoding or WinAnsiEncoding as the value for the Encoding key in the Font dictionary or as the value for the BaseEncoding key in the dictionary which is the value of the Encoding key in the Font dictionary. In addition, no non-symbolic TrueType font shall define a Differences array unless all of the glyph names in the Differences array are listed in the Adobe Glyph List and the embedded font program contains at least the Microsoft Unicode (3,1 – Platform ID=3, Encoding ID=1) encoding in the 'cmap' subtable","test":"isSymbolic == true || ((Encoding == \"MacRomanEncoding\" || Encoding == \"WinAnsiEncoding\") && (containsDifferences == false || differencesAreUnicodeCompliant == true))","error":{"message":"A non-symbolic TrueType font encoding does not define a correct mapping to the Adobe Glyph List (Encoding = %1, Encoding entry contains a Differences = %2, Differences are Unicode compliant = %3)","arguments":[{"argument":"Encoding","name":null,"argumentValue":null},{"argument":"containsDifferences","name":null,"argumentValue":null},{"argument":"differencesAreUnicodeCompliant","name":null,"argumentValue":null}]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.2.10.6","testNumber":2}},{"object":"TrueTypeFontProgram","deferred":null,"tags":null,"description":"The 'cmap' subtable in the embedded font program for a symbolic TrueType font shall contain either the Microsoft Symbol (3,0 – Platform ID=3, Encoding ID=0) or the Mac Roman (1,0 – Platform ID=1, Encoding ID=0) encoding","test":"isSymbolic == false || cmap30Present == true || cmap10Present == true","error":{"message":"The embedded font program for a 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","arguments":[]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.2.10.6","testNumber":4}},{"object":"PDFont","deferred":null,"tags":null,"description":"All fonts and font programs used in a conforming file, regardless of rendering mode usage, shall conform to the provisions in ISO 32000-2:2020, 9.6 and 9.7, as well as to the font specifications referenced by these provisions. Subtype - name - (Required) The type of font; must be \"Type1\" for Type 1 fonts, \"MMType1\" for multiple master fonts, \"TrueType\" for TrueType fonts \"Type3\" for Type 3 fonts, \"Type0\" for Type 0 fonts and \"CIDFontType0\" or \"CIDFontType2\" for CID fonts","test":"Subtype == \"Type1\" || Subtype == \"MMType1\" || Subtype == \"TrueType\" || Subtype == \"Type3\" || Subtype == \"Type0\" || Subtype == \"CIDFontType0\" || Subtype == \"CIDFontType2\"","error":{"message":"Invalid Subtype entry in font dictionary with value %1","arguments":[{"argument":"Subtype","name":null,"argumentValue":null}]},"references":[{"specification":"ISO 32000-2:2020","clause":"9.6.2.1, Table 109"},{"specification":"ISO 32000-2:2020","clause":"9.6.2.3"},{"specification":"ISO 32000-2:2020","clause":"9.6.3"},{"specification":"ISO 32000-2:2020","clause":"9.6.4, Table 110"},{"specification":"ISO 32000-2:2020","clause":"9.7.4.1, Table 115"},{"specification":"ISO 32000-2:2020","clause":"9.7.6.1, Table 119"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.2.10.2","testNumber":2}},{"object":"CosDocument","deferred":null,"tags":null,"description":"The Info key shall not be present in the trailer dictionary of PDF/A-4 conforming files unless there exists a PieceInfo entry in the document catalog dictionary","test":"containsPieceInfo == true || containsInfo == false","error":{"message":"The Info key present in the trailer dictionary, but PieceInfo entry does not present in the document catalog dictionary","arguments":[]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.1.3","testNumber":4}},{"object":"PDCIDFont","deferred":null,"tags":null,"description":"ISO 32000-2:2020, 9.7.4 Table 115 requires that all embedded Type 2 CIDFonts, the CIDFont dictionary shall contain a CIDToGIDMap entry that shall be a stream mapping from CIDs to glyph indices or the name Identity, as described in ISO 32000-2:2020, 9.7.4 Table 115","test":"Subtype != \"CIDFontType2\" || CIDToGIDMap != null || containsFontFile == false","error":{"message":"A Type 2 CIDFont dictionary has missing or invalid CIDToGIDMap entry","arguments":[]},"references":[{"specification":"ISO 32000-2:2020","clause":"9.7.4, Table 115"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.2.10.3.2","testNumber":1}},{"object":"PDPerms","deferred":null,"tags":null,"description":"No keys other than UR3 and DocMDP shall be present in a permissions dictionary (ISO 32000-2:2020, 12.8.6, Table 263)","test":"entries.split('&').filter(elem => elem != 'UR3' && elem != 'DocMDP').length == 0 || entries == ''","error":{"message":"The document permissions dictionary contains key(s) %1 other than UR3 and DocMDP","arguments":[{"argument":"entries.split('&').filter(elem => elem != 'UR3' && elem != 'DocMDP').toString()","name":null,"argumentValue":null}]},"references":[{"specification":"ISO 32000-2:2020","clause":"12.8.6"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.1.11","testNumber":1}},{"object":"PDAnnot","deferred":null,"tags":null,"description":"For all annotation dictionaries containing an AP key, the appearance dictionary that it defines as its value shall contain only the N key","test":"AP == null || AP == \"N\"","error":{"message":"Annotation's appearance dictionary contains entries %1 other than N","arguments":[{"argument":"AP.split('&').filter(elem => elem != 'N').toString()","name":null,"argumentValue":null}]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.3.3","testNumber":2}},{"object":"PDExtGState","deferred":null,"tags":null,"description":"A graphics state parameter dictionary (ISO 32000-2:2020, 8.4.5) shall not contain the TR key","test":"containsTR == false","error":{"message":"A graphics state parameter dictionary contains the TR key","arguments":[]},"references":[{"specification":"ISO 32000-2:2020","clause":"8.4.5"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.2.5","testNumber":1}},{"object":"MainXMPPackage","deferred":null,"tags":null,"description":"The PDF/A version and conformance level of a file shall be specified using the PDF/A Identification extension schema. The PDF/A Identification schema defined in Table 2 uses the namespace URI \"http://www.aiim.org/pdfa/ns/id/\"","test":"containsPDFAIdentification == true","error":{"message":"The document metadata stream doesn't contain PDF/A Identification Schema","arguments":[]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.7.3","testNumber":1}},{"object":"CosFileSpecification","deferred":null,"tags":null,"description":"The file specification dictionary for an embedded file shall contain the F and UF keys","test":"containsEF == false || (F != null && UF != null)","error":{"message":"The file specification dictionary for an embedded file does not contain either F or UF key (F = %1, UF = %2)","arguments":[{"argument":"F","name":null,"argumentValue":null},{"argument":"UF","name":null,"argumentValue":null}]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.9","testNumber":2}},{"object":"PDAnnot","deferred":null,"tags":null,"description":"If present, the F key's Print flag bit shall be set to 1 and its Hidden, Invisible, ToggleNoView, and NoView flag bits shall be set to 0","test":"F == null || ((F & 1) == 0 && (F & 2) == 0 && (F & 4) == 4 && (F & 32) == 0 && (F & 256) == 0)","error":{"message":"Annotation flags are set the annotation to be hidden/invisible or non-printable (F = %1, Print = %2, Hidden = %3, Invisible = %4, NoView = %5, ToggleNoView = %6)","arguments":[{"argument":"F","name":null,"argumentValue":null},{"argument":"(F & 4) >> 2","name":null,"argumentValue":null},{"argument":"(F & 2) >> 1","name":null,"argumentValue":null},{"argument":"(F & 1)","name":null,"argumentValue":null},{"argument":"(F & 32) >> 5","name":null,"argumentValue":null},{"argument":"(F & 256) >> 8","name":null,"argumentValue":null}]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.3.2","testNumber":2}},{"object":"PDXForm","deferred":null,"tags":null,"description":"A conforming file shall not contain any reference XObjects","test":"containsRef == false","error":{"message":"The document contains a reference XObject (Ref key in the form XObject dictionary)","arguments":[]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.2.8.2","testNumber":1}},{"object":"PDReferencedCMap","deferred":null,"tags":null,"description":"A CMap shall not reference any other CMap except those listed in ISO 32000-2:2020, 9.7.5.2 Table 116","test":"CMapName == \"Identity-H\" || CMapName == \"Identity-V\" || CMapName == \"GB-EUC-H\" || CMapName == \"GB-EUC-V\" || CMapName == \"GBpc-EUC-H\" || CMapName == \"GBpc-EUC-V\" || CMapName == \"GBK-EUC-H\" || CMapName == \"GBK-EUC-V\" || CMapName == \"GBKp-EUC-H\" || CMapName == \"GBKp-EUC-V\" || CMapName == \"GBK2K-H\" || CMapName == \"GBK2K-V\" || CMapName == \"UniGB-UCS2-H\" || CMapName == \"UniGB-UCS2-V\" || CMapName == \"UniGB-UFT16-H\" || CMapName == \"UniGB-UFT16-V\" || CMapName == \"B5pc-H\" || CMapName == \"B5pc-V\" || CMapName == \"HKscs-B5-H\" || CMapName == \"HKscs-B5-V\" || CMapName == \"ETen-B5-H\" || CMapName == \"ETen-B5-V\" || CMapName == \"ETenms-B5-H\" || CMapName == \"ETenms-B5-V\" || CMapName == \"CNS-EUC-H\" || CMapName == \"CNS-EUC-V\" || CMapName == \"UniCNS-UCS2-H\" || CMapName == \"UniCNS-UCS2-V\" || CMapName == \"UniCNS-UFT16-H\" || CMapName == \"UniCNS-UTF16-V\" || CMapName == \"83pv-RKSJ-H\" || CMapName == \"90ms-RKSJ-H\" || CMapName == \"90ms-RKSJ-V\" || CMapName == \"90msp-RKSJ-H\" || CMapName == \"90msp-RKSJ-V\" || CMapName == \"90pv-RKSJ-H\" || CMapName == \"Add-RKSJ-H\" || CMapName == \"Add-RKSJ-V\" || CMapName == \"EUC-H\" || CMapName == \"EUC-V\" || CMapName == \"Ext-RKSJ-H\" || CMapName == \"Ext-RKSJ-V\" || CMapName == \"H\" || CMapName == \"V\" || CMapName == \"UniJIS-UCS2-H\" || CMapName == \"UniJIS-UCS2-V\" || CMapName == \"UniJIS-UCS2-HW-H\" || CMapName == \"UniJIS-UCS2-HW-V\" || CMapName == \"UniJIS-UTF16-H\" || CMapName == \"UniJIS-UTF16-V\" || CMapName == \"KSC-EUC-H\" || CMapName == \"KSC-EUC-V\" || CMapName == \"KSCms-UHC-H\" || CMapName == \"KSCms-UHC-V\" || CMapName == \"KSCms-UHC-HW-H\" || CMapName == \"KSCms-UHC-HW-V\" || CMapName == \"KSCpc-EUC-H\" || CMapName == \"UniKS-UCS2-H\" || CMapName == \"UniKS-UCS2-V\" || CMapName == \"UniKS-UTF16-H\" || CMapName == \"UniKS-UTF16-V\"","error":{"message":"A CMap references another non-standard CMap %1","arguments":[{"argument":"CMapName","name":null,"argumentValue":null}]},"references":[{"specification":"ISO 32000-2:2020","clause":"9.7.5.2, Table 116"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.2.10.3.3","testNumber":3}},{"object":"PDContentStream","deferred":true,"tags":null,"description":"A content stream that references other objects, such as images and fonts that are necessary to fully render or process the stream, shall have an explicitly associated Resources dictionary as described in ISO 32000-2:2020, 7.8.3. Such resource dictionaries shall define all named resources referenced by this content stream","test":"inheritedResourceNames == ''","error":{"message":"A content stream refers to resource(s) %1 not defined in an explicitly associated Resources dictionary","arguments":[{"argument":"inheritedResourceNames","name":null,"argumentValue":null}]},"references":[{"specification":"ISO 32000-2:2020","clause":"7.8.3"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.2.2","testNumber":2}},{"object":"PDFAIdentification","deferred":null,"tags":null,"description":"Property \"part\" of the PDF/A Identification Schema shall have namespace prefix \"pdfaid\"","test":"partPrefix == null || partPrefix == \"pdfaid\"","error":{"message":"Property \"part\" of the PDF/A Identification Schema has invalid namespace prefix %1","arguments":[{"argument":"partPrefix","name":null,"argumentValue":null}]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.7.3","testNumber":4}},{"object":"PDAcroForm","deferred":null,"tags":null,"description":"The NeedAppearances flag of the interactive form dictionary shall either not be present or shall be false","test":"NeedAppearances == null || NeedAppearances == false","error":{"message":"The interactive form dictionary contains the NeedAppearances flag with value true","arguments":[]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.4.1","testNumber":2}},{"object":"PDPage","deferred":null,"tags":null,"description":"If the document does not contain a PDF/A output intent, then all pages that contain transparency shall either have a page-level PDF/A output intent or the page dictionary shall include the Group key, and the attribute dictionary that forms the value of that Group key shall include a CS entry whose value shall be used as the default blending colour space","test":"gDocumentOutputCS != null || outputColorSpace != null || containsGroupCS == true || containsTransparency == false","error":{"message":"The page contains transparent objects with no blending colour space defined","arguments":[]},"references":[{"specification":"ISO 32000-2:2020","clause":"11.3.4"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.2.9","testNumber":2}},{"object":"PDSeparation","deferred":null,"tags":null,"description":"All Separation arrays within a single conforming PDF/A-4 file (including those in Colorants dictionaries) that have the same name shall have the same tintTransform and alternateSpace. In evaluating equivalence, the PDF objects shall be compared, rather than the computational result of the use of those PDF objects. Compression and whether or not an object is direct or indirect shall be ignored","test":"areTintAndAlternateConsistent == true","error":{"message":"Several occurrences of a Separation colour space with the same name are not consistent","arguments":[]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.2.4.4","testNumber":2}},{"object":"PDAnnot","deferred":null,"tags":null,"description":"If an annotation dictionary's Subtype key has a value of Widget and its FT key has a value of Btn, the value of the N key shall be an appearance subdictionary","test":"AP != \"N\" || Subtype != \"Widget\" || FT != \"Btn\" || (N_type == \"Dict\" && containsAppearances == true)","error":{"message":"An annotation dictionary's Subtype key has a value of Widget and its FT key has a value of Btn, but the value of the N key is %1 instead of appearance subdictionary","arguments":[{"argument":"N_type","name":null,"argumentValue":null}]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.3.3","testNumber":3}},{"object":"PDFAIdentification","deferred":null,"tags":null,"description":"A PDF/A-4f conforming file (as described in Annex A) shall specify the value of \"pdfaid:conformance\" as F","test":"conformance == \"F\"","error":{"message":"The \"conformance\" property of the PDF/A Identification Schema is %1 instead of \"F\" for PDF/A-4F conforming file","arguments":[{"argument":"conformance","name":null,"argumentValue":null}]},"references":[{"specification":"ISO 19005-4:2020","clause":"Annex A"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.7.3","testNumber":3}},{"object":"Glyph","deferred":null,"tags":null,"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","test":"toUnicode == null || (toUnicode.indexOf(\"\\u0000\") == -1 && toUnicode.indexOf(\"\\uFFFE\") == -1 && toUnicode.indexOf(\"\\uFEFF\") == -1)","error":{"message":"The glyph has Unicode value 0, U+FEFF or U+FFFE, which is invalid by Unicode standard","arguments":[]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.2.10.7","testNumber":1}},{"object":"PDFAIdentification","deferred":null,"tags":null,"description":"The value of \"pdfaid:rev\" shall be the four digit year","test":"/^\\d{4}$/.test(rev)","error":{"message":"The value of \"pdfaid:rev\" (%1) is not the four digit year","arguments":[{"argument":"rev","name":null,"argumentValue":null}]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.7.3","testNumber":5}},{"object":"PDSimpleFont","deferred":null,"tags":null,"description":"All fonts and font programs used in a conforming file, regardless of rendering mode usage, shall conform to the provisions in ISO 32000-2:2020, 9.6 and 9.7, as well as to the font specifications referenced by these provisions. FirstChar - integer - (Required except for the standard 14 fonts) The first character code defined in the font's Widths array","test":"isStandard == true || FirstChar != null","error":{"message":"A non-standard simple font dictionary has missing or invalid FirstChar entry","arguments":[]},"references":[{"specification":"ISO 32000-2:2020","clause":"9.6.2.1, Table 109"},{"specification":"ISO 32000-2:2020","clause":"9.6.4, Table 110"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.2.10.2","testNumber":4}},{"object":"PDFAIdentification","deferred":null,"tags":null,"description":"The value of \"pdfaid:part\" shall be the part number of ISO 19005 to which the file conforms","test":"part == 4","error":{"message":"The \"part\" property of the PDF/A Identification Schema is %1 instead of 4 for PDF/A-4 conforming file","arguments":[{"argument":"part","name":null,"argumentValue":null}]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.7.3","testNumber":2}},{"object":"PDExtGState","deferred":null,"tags":null,"description":"A graphics state parameter dictionary shall not contain the TR2 key with a value other than Default","test":"containsTR2 == false || TR2NameValue == \"Default\"","error":{"message":"A graphics state parameter dictionary contains the TR2 key with a value other than Default","arguments":[]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.2.5","testNumber":2}},{"object":"PDType0Font","deferred":null,"tags":null,"description":"For any given composite (Type 0) font within a conforming file, the CIDSystemInfo entry in its CIDFont dictionary and its Encoding dictionary shall have the following relationship: - If the Encoding key in the Type 0 font dictionary has a value of Identity-H or Identity-V, then any values for the Registry, Ordering, and Supplement keys may be used in the CIDSystemInfo dictionary of the CIDFont. - Otherwise the corresponding values of the Registry and Ordering keys in both CIDSystemInfo dictionaries shall be identical, and the value of the Supplement key in the CIDSystemInfo dictionary of the CIDFont shall be less than or equal to the value of the Supplement key in the CIDSystemInfo dictionary of the CMap","test":"cmapName == \"Identity-H\" || cmapName == \"Identity-V\" || (CIDFontOrdering != null && CIDFontOrdering == CMapOrdering && CIDFontRegistry != null && CIDFontRegistry == CMapRegistry && CIDFontSupplement != null && CMapSupplement != null && CIDFontSupplement <= CMapSupplement)","error":{"message":"CIDSystemInfo entries the CIDFont and CMap dictionaries of a Type 0 font are not compatible (CIDSystemInfo Ordering = %1, CMap Ordering = %2, CIDSystemInfo Registry = %3, CMap Registry = %4, CIDSystemInfo Supplement = %5, CMap Supplement = %6)","arguments":[{"argument":"CIDFontOrdering","name":null,"argumentValue":null},{"argument":"CMapOrdering","name":null,"argumentValue":null},{"argument":"CIDFontRegistry","name":null,"argumentValue":null},{"argument":"CMapRegistry","name":null,"argumentValue":null},{"argument":"CIDFontSupplement","name":null,"argumentValue":null},{"argument":"CMapSupplement","name":null,"argumentValue":null}]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.2.10.3.1","testNumber":1}},{"object":"PDICCBasedCMYK","deferred":null,"tags":null,"description":"Overprint mode (as set by the OPM value in an ExtGState dictionary) shall not be one (1) when an ICCBased CMYK colour space is used for stroke and overprinting for stroke is set to true, or when ICCBased CMYK colour space is used for fill and overprinting for fill is set to true, or both","test":"overprintFlag == false || OPM == 0","error":{"message":"Overprint mode (OPM) is set to %1 instead of 0 when an ICCBased CMYK colour space is used with enabled overprinting","arguments":[{"argument":"OPM","name":null,"argumentValue":null}]},"references":[{"specification":"ISO 32000-2:2020","clause":"8.6.7"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.2.4.2","testNumber":2}},{"object":"CosDocument","deferred":null,"tags":null,"description":"The document catalog shall not contain the Requirements key","test":"Requirements == null","error":{"message":"The document catalog contains the Requirements key","arguments":[]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.12","testNumber":1}},{"object":"PDDeviceCMYK","deferred":null,"tags":null,"description":"DeviceCMYK shall only be used if a device independent DefaultCMYK colour space has been set when the DeviceCMYK colour space is used or if the current transparency blending space, when the DeviceCMYK colour space is used, is a device independent CMYK-based colour space or the current PDF/A OutputIntent, when the DeviceCMYK colour space is used, contains a 'CMYK' destination profile","test":"(gPageOutputCS == null ? gDocumentOutputCS == 'CMYK' : gPageOutputCS == 'CMYK') || gTransparencyCS == 'CMYK'","error":{"message":"DeviceCMYK colour space is used without CMYK output intent profile and without current transparency blending space being Device-independent CMYK","arguments":[]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.2.4.3","testNumber":3}},{"object":"CosDocument","deferred":null,"tags":null,"description":"A document's Catalog shall not contain the NeedsRendering key","test":"NeedsRendering == false","error":{"message":"A document's Catalog contains NeedsRendering flag set to true","arguments":[]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.4.2","testNumber":2}},{"object":"CosIIFilter","deferred":null,"tags":null,"description":"The value of the F key in the Inline Image dictionary shall not be LZW, LZWDecode, Crypt, a value not listed in ISO 32000-2:2020, 8.9.7, Table 92, or an array containing any such value","test":" internalRepresentation == \"ASCIIHexDecode\" || internalRepresentation == \"ASCII85Decode\" || internalRepresentation == \"FlateDecode\" || internalRepresentation == \"RunLengthDecode\" || internalRepresentation == \"CCITTFaxDecode\" || internalRepresentation == \"DCTDecode\" || internalRepresentation == \"AHx\" || internalRepresentation == \"A85\" || internalRepresentation == \"Fl\" || internalRepresentation == \"RL\" || internalRepresentation == \"CCF\" || internalRepresentation == \"DCT\"","error":{"message":"Inline image uses not permitted or unknown filter %1","arguments":[{"argument":"internalRepresentation","name":null,"argumentValue":null}]},"references":[{"specification":"ISO 32000-2:2020","clause":"8.9.7"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.1.9","testNumber":1}},{"object":"XMPPackage","deferred":null,"tags":null,"description":"All content of all XMP packets located in any metadata stream present in the PDF shall be well-formed as defined by XMP (ISO 16684-1)","test":"isSerializationValid","error":{"message":"A metadata stream is serialized incorrectly and can not be parsed","arguments":[]},"references":[{"specification":"ISO 16684-1:2019","clause":""}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.7.2.1","testNumber":4}},{"object":"PDDocument","deferred":null,"tags":null,"description":"The document catalog dictionary of a conforming file shall contain the Metadata key whose value is a metadata stream as defined in ISO 32000-2:2020, 14.3.2. The metadata stream dictionary shall contain entry Type with value /Metadata and entry Subtype with value /XML","test":"containsMetadata == true","error":{"message":"The document catalog dictionary doesn't contain metadata key or metadata stream dictionary does not contain either entry Type with value /Metadata or entry Subtype with value /XML","arguments":[]},"references":[{"specification":"ISO 32000-2:2020","clause":"14.3.2"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.7.2.1","testNumber":1}},{"object":"PDICCBasedCMYK","deferred":null,"tags":null,"description":"An ICCBased colour space shall not be used where the profile is a CMYK destination profile and is identical to that in the current PDF/A OutputIntent or the current transparency blending colorspace","test":"(ICCProfileIndirect == null || (ICCProfileIndirect != gOutputProfileIndirect && ICCProfileIndirect != currentTransparencyProfileIndirect)) && (ICCProfileMD5 == null || (ICCProfileMD5 != gOutputICCProfileMD5 && ICCProfileMD5 != currentTransparencyICCProfileMD5))","error":{"message":"An ICCBased CMYK color space is identical to the current PDF/A OutputIntent color profile or the current transparency blending color space","arguments":[]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.2.4.2","testNumber":3}},{"object":"Glyph","deferred":null,"tags":null,"description":"A PDF/A-4 compliant document shall not contain a reference to the .notdef glyph from any of the text showing operators, regardless of text rendering mode, in any content stream","test":"name != \".notdef\"","error":{"message":"The document contains a reference to the .notdef glyph","arguments":[]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.2.10.9","testNumber":1}},{"object":"PDContentStream","deferred":true,"tags":null,"description":"A content stream's named resources shall be defined by a resource dictionary, which shall enumerate the named resources needed by the operators in the content stream and the names by which they can be referred to","test":"undefinedResourceNames == ''","error":{"message":"A content stream references named resource(s) %1 not defined by a resource dictionary","arguments":[{"argument":"undefinedResourceNames","name":null,"argumentValue":null}]},"references":[{"specification":"ISO 32000-2:2020","clause":"7.8.3"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.2.2","testNumber":3}},{"object":"CosFileSpecification","deferred":null,"tags":null,"description":"Each embedded file’s file specification dictionary shall contain an AFRelationship key (ISO 32000-2, 7.11.3) that describes how this embedded file relates to the content of the PDF","test":"containsEF == false || AFRelationship != null","error":{"message":"The file specification dictionary for an embedded file does not contain the AFRelationship key","arguments":[]},"references":[{"specification":"ISO 32000-2:2020","clause":"7.11.3"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.9","testNumber":4}},{"object":"CosDocument","deferred":null,"tags":null,"description":"No data shall follow the last end-of-file marker as described in ISO 32000-2:2020, 7.5.5","test":"postEOFDataSize == 0","error":{"message":"%1 byte(s) of data is present after the last end-of-file marker","arguments":[{"argument":"postEOFDataSize","name":null,"argumentValue":null}]},"references":[{"specification":"ISO 32000-2:2020","clause":"7.5.5"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.1.3","testNumber":3}},{"object":"PDFAIdentification","deferred":null,"tags":null,"description":"Property \"rev\" of the PDF/A Identification Schema shall have namespace prefix \"pdfaid\"","test":"revPrefix == null || revPrefix == \"pdfaid\"","error":{"message":"Property \"rev\" of the PDF/A Identification Schema has invalid namespace prefix %1","arguments":[{"argument":"revPrefix","name":null,"argumentValue":null}]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.7.3","testNumber":6}},{"object":"PDXImage","deferred":null,"tags":null,"description":"An Image dictionary shall not contain the Alternates key","test":"containsAlternates == false","error":{"message":"Alternates key is present in the Image dictionary","arguments":[]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.2.7.1","testNumber":1}},{"object":"JPEG2000","deferred":null,"tags":null,"description":"If the number of colour space specifications in the JPEG2000 data is greater than 1, there shall be exactly one colour space specification that has the value 0x01 in the APPROX field","test":"hasColorSpace == true || nrColorSpaceSpecs == 1 || nrColorSpacesWithApproxField == 1","error":{"message":"The JPEG2000 image contains %1 colour specifications with the best colour fidelity (value 0x01 in the APPROX field)","arguments":[{"argument":"nrColorSpacesWithApproxField","name":null,"argumentValue":null}]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.2.7.3","testNumber":2}},{"object":"PDAnnot","deferred":null,"tags":null,"description":"Annotation types not defined in ISO 32000-2:2020, 12.5.6.1, Table 171 shall not be permitted. Additionally, the Sound, Screen, Movie, 3D and RichMedia types shall not be permitted. The FileAttachment type shall only be permitted in a PDF/A-4f compliant file as described in Annex A","test":"Subtype == \"Text\" || Subtype == \"Link\" || Subtype == \"FreeText\" || Subtype == \"Line\" || Subtype == \"Square\" || Subtype == \"Circle\" || Subtype == \"Polygon\" || Subtype == \"PolyLine\" || Subtype == \"Highlight\" || Subtype == \"Underline\" || Subtype == \"Squiggly\" || Subtype == \"StrikeOut\" || Subtype == \"Stamp\" || Subtype == \"Caret\" || Subtype == \"Ink\" || Subtype == \"Popup\" || Subtype == \"FileAttachment\" || Subtype == \"Widget\" || Subtype == \"PrinterMark\" || Subtype == \"TrapNet\" || Subtype == \"Watermark\" || Subtype == \"Redact\" || Subtype == \"Projection\"","error":{"message":"Unknown or not permitted Annotation type %1","arguments":[{"argument":"Subtype","name":null,"argumentValue":null}]},"references":[{"specification":"ISO 32000-2:2020","clause":"12.5.6.1, Table 171"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.3.1","testNumber":1}},{"object":"CosString","deferred":null,"tags":null,"description":"A hexadecimal string is written as a sequence of hexadecimal digits (0–9 and either A–F or a–f)","test":"(isHex != true) || containsOnlyHex == true","error":{"message":"Hexadecimal string contains non-white-space characters outside the range 0 to 9, A to F or a to f","arguments":[]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.1.5","testNumber":2}},{"object":"Glyph","deferred":null,"tags":null,"description":"For every font embedded in a conforming file, the glyph width information in the font dictionary and in the embedded font program shall be consistent for every glyph referenced for rendering. Glyphs that are referenced only with rendering mode 3 are exempt from this requirement","test":"renderingMode == 3 || widthFromFontProgram == null || widthFromDictionary == null || Math.abs(widthFromFontProgram - widthFromDictionary) <= 1","error":{"message":"Glyph width %1 in the embedded font program is not consistent with the Widths entry of the font dictionary (value %2)","arguments":[{"argument":"widthFromFontProgram","name":null,"argumentValue":null},{"argument":"widthFromDictionary","name":null,"argumentValue":null}]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.2.10.5","testNumber":1}},{"object":"Glyph","deferred":null,"tags":null,"description":"Embedded fonts shall define all glyphs referenced for rendering within the conforming file. A font referenced for use solely in rendering mode 3 is therefore not rendered and is thus exempt from the embedding requirement. In all cases for TrueType fonts that are to be rendered, character codes shall be able to be mapped to glyphs according to ISO 32000-2:2020, 9.6.5 without the use of a non-standard mapping chosen by the conforming processor","test":"renderingMode == 3 || isGlyphPresent == null || isGlyphPresent == true","error":{"message":"Not all glyphs referenced for rendering are present in the embedded font program","arguments":[]},"references":[{"specification":"ISO 32000-2:2020","clause":"9.6.5"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.2.10.4.1","testNumber":2}},{"object":"XMPPackage","deferred":null,"tags":null,"description":"The bytes attribute shall not be used in the header of an XMP packet","test":"bytes == null","error":{"message":"The XMP Package contains bytes attribute","arguments":[]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.7.2.1","testNumber":2}},{"object":"CosActualText","deferred":null,"tags":null,"description":"The ActualText entry shall not contain any PUA values","test":"containsPUA == false","error":{"message":"The ActualText entry contains Unicode PUA (Private Use Area) code points","arguments":[]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.2.10.8","testNumber":1}},{"object":"PDOutputIntent","deferred":null,"tags":null,"description":"The DestOutputProfileRef key, as defined in ISO 32000-2:2020, 14.11.5, Table 401, shall not be present in any output intent dictionary","test":"containsDestOutputProfileRef == false","error":{"message":"The output intent dictionary contains forbidden entry DestOutputProfileRef","arguments":[]},"references":[{"specification":"ISO 32000-2:2020","clause":"14.11.5, Table 401"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.2.3","testNumber":3}},{"object":"XMPPackage","deferred":null,"tags":null,"description":"The encoding attribute shall not be used in the header of an XMP packet","test":"encoding == null","error":{"message":"The XMP Package contains encoding attribute","arguments":[]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.7.2.1","testNumber":3}},{"object":"PDOCConfig","deferred":null,"tags":null,"description":"Each optional content configuration dictionary shall contain the Name key, whose value shall be unique amongst all optional content configuration dictionaries within the PDF/A-4 file","test":"hasDuplicateName == false","error":{"message":"Optional content configuration dictionary has duplicated name %1","arguments":[{"argument":"Name","name":null,"argumentValue":null}]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.10","testNumber":2}},{"object":"CosDocument","deferred":null,"tags":null,"description":"The file header shall begin at byte zero and shall consist of \"%PDF-2.n\" followed by a single EOL marker, where 'n' is a single digit number between 0 (30h) and 9 (39h)","test":"headerOffset == 0 && /^%PDF-2\\.[0-9]$/.test(header)","error":{"message":"File header %1 (offset = %2) starts at non-zero offset or does not match the pattern %PDF-2.n, where 'n' is a single digit number between 0 and 9","arguments":[{"argument":"header","name":null,"argumentValue":null},{"argument":"headerOffset","name":null,"argumentValue":null}]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.1.2","testNumber":1}},{"object":"PDDeviceN","deferred":null,"tags":null,"description":"For any spot colour used in a DeviceN or NChannel colour space, an entry in the Colorants dictionary shall be present","test":"areColorantsPresent == true","error":{"message":"A colorant of the DeviceN or NChannel color space is not defined in the Colorants dictionary","arguments":[]},"references":[{"specification":"ISO 32000-2:2020","clause":"8.6.6.5"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.2.4.4","testNumber":1}},{"object":"PDAnnot","deferred":null,"tags":null,"description":"Except for annotation dictionaries whose Subtype value is Popup, all annotation dictionaries shall contain the F key","test":"Subtype == \"Popup\" || F != null","error":{"message":"A dictionary of %1 annotation does not contain F key","arguments":[{"argument":"Subtype","name":null,"argumentValue":null}]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.3.2","testNumber":1}},{"object":"PDXImage","deferred":null,"tags":null,"description":"An Image dictionary shall not contain the OPI key","test":"containsOPI == false","error":{"message":"OPI key is present in the Image dictionary","arguments":[]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.2.7.1","testNumber":2}},{"object":"CosXRef","deferred":null,"tags":null,"description":"The xref keyword and the cross-reference subsection header shall be separated by a single EOL marker","test":"xrefEOLMarkersComplyPDFA","error":{"message":"Extra spacings or missing EOL characters after the 'xref' keyword in the cross reference table","arguments":[]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.1.4","testNumber":1}},{"object":"PDXForm","deferred":null,"tags":null,"description":"A form XObject dictionary shall not contain an OPI key","test":"containsOPI == false","error":{"message":"The form XObject dictionary contains an OPI key","arguments":[]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.2.8.1","testNumber":1}},{"object":"CosIndirect","deferred":null,"tags":null,"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","test":"spacingCompliesPDFA","error":{"message":"Extra spacings or missing EOL characters around indirect object/generation number or keywords 'obj' and 'endobj'","arguments":[]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_4","clause":"6.1.8","testNumber":1}}],"variables":[{"name":"gPageOutputCS","object":"PDPage","defaultValue":"null","value":"outputColorSpace"},{"name":"gOutputProfileIndirect","object":"PDOutputIntent","defaultValue":"null","value":"destOutputProfileIndirect"},{"name":"gDocumentOutputCS","object":"PDDocument","defaultValue":"null","value":"outputColorSpace"},{"name":"gOutputICCProfileMD5","object":"PDOutputIntent","defaultValue":"null","value":"ICCProfileMD5"},{"name":"gTransparencyCS","object":"TransparencyColorSpace","defaultValue":"null","value":"colorSpaceType"}],"pdfaflavour":"PDFA_4_F","hexSha1Digest":"","tags":[]}