{"details":{"name":"PDF/A-1A validation profile","description":"Validation rules against ISO 19005-1:2005, Cor.1:2007 and Cor.2:2011, Level A","creator":"veraPDF Consortium","dateCreated":1504703531281},"rules":[{"object":"Glyph","deferred":null,"tags":null,"description":"Embedded font programs shall define all font glyphs referenced for rendering with conforming file","test":"renderingMode == 3 || isGlyphPresent == null || isGlyphPresent == true","error":{"message":"Not all glyphs referenced for rendering are present in the embedded font program","arguments":[]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.3.5","testNumber":1}},{"object":"CosDocument","deferred":null,"tags":null,"description":"The file header line shall be immediately followed by a comment consisting of a % character followed by at least four characters, 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_1","clause":"6.1.2","testNumber":2}},{"object":"PDAnnot","deferred":null,"tags":null,"description":"Annotation types not defined in PDF Reference shall not be permitted. Additionally, the FileAttachment, Sound and Movie types shall not be permitted","test":"Subtype == \"Text\" || Subtype == \"Link\" || Subtype == \"FreeText\" || Subtype == \"Line\" || Subtype == \"Square\" || Subtype == \"Circle\" || Subtype == \"Highlight\" || Subtype == \"Underline\" || Subtype == \"Squiggly\" || Subtype == \"StrikeOut\" || Subtype == \"Stamp\" || Subtype == \"Ink\" || Subtype == \"Popup\" || Subtype == \"Widget\" || Subtype == \"PrinterMark\" || Subtype == \"TrapNet\"","error":{"message":"Unknown or not permitted Annotation type %1","arguments":[{"argument":"Subtype","name":null,"argumentValue":null}]},"references":[{"specification":"PDF 1.4 Reference","clause":"8.4.5"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.5.2","testNumber":1}},{"object":"PDDeviceCMYK","deferred":null,"tags":null,"description":"DeviceCMYK may be used only if the file has a PDF/A-1 OutputIntent that uses a CMYK colour space","test":"gOutputCS != null && gOutputCS == \"CMYK\"","error":{"message":"DeviceCMYK colour space is used without CMYK output intent profile","arguments":[]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.2.3.3","testNumber":2}},{"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. 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":"PDF 1.4 Reference","clause":"5.5.1 - Table 5.8"},{"specification":"PDF 1.4 Reference","clause":"5.5.4 - Table 5.9"},{"specification":"PDF 1.4 Reference","clause":"5.6.3 - Table 5.13"},{"specification":"PDF 1.4 Reference","clause":"5.6.5 - Table 5.17"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.3.2","testNumber":3}},{"object":"OutputIntents","deferred":null,"tags":null,"description":"If a file's OutputIntents array contains more than one entry, 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":"File's 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_1","clause":"6.2.2","testNumber":2}},{"object":"CosInfo","deferred":null,"tags":null,"description":"The value of Subject entry from the document information dictionary, if present, and its analogous XMP property \"dc:description['x-default']\" shall be equivalent","test":"Subject == null || Subject == XMPDescription","error":{"message":"The value of Subject entry from the document Info dictionary and its matching XMP property \"dc:description['x-default']\" are not equivalent (Info /Subject = %1, XMP dc:description['x-default'] = %2)","arguments":[{"argument":"Subject","name":null,"argumentValue":null},{"argument":"XMPDescription","name":null,"argumentValue":null}]},"references":[{"specification":"ISO 19005-1:2005/Cor.1:2007/Cor.2:2011","clause":"6.7.3"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.7.3","testNumber":4}},{"object":"ExtensionSchemasContainer","deferred":null,"tags":null,"description":"The extension schema container schema uses the namespace URI \"http://www.aiim.org/pdfa/ns/extension/\". The required schema namespace prefix is pdfaExtension. pdfaExtension:schemas - Bag Schema - Description of extension schemas","test":"isValidBag == true && prefix == \"pdfaExtension\"","error":{"message":"The extension schema container has invalid type (isValidBag = %1) or doesn't have prefix 'pdfaExtension' (prefix = %2)","arguments":[{"argument":"isValidBag","name":null,"argumentValue":null},{"argument":"prefix","name":null,"argumentValue":null}]},"references":[{"specification":"ISO 19005-1:2005/Cor.1:2007","clause":"6.7.8"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.7.8","testNumber":2}},{"object":"CosDocument","deferred":null,"tags":null,"description":"Maximum number of indirect objects in a PDF file is 8,388,607","test":"nrIndirects <= 8388607","error":{"message":"Number of indirect objects in a PDF file (%1) exceeded 8,388,607","arguments":[{"argument":"nrIndirects","name":null,"argumentValue":null}]},"references":[{"specification":"PDF Reference 1.4","clause":"Table C.1"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.1.12","testNumber":7}},{"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":"PDF 1.4 Reference","clause":"4.8.4, Table 4.35"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.2.4","testNumber":5}},{"object":"PDFormField","deferred":null,"tags":null,"description":"A Field dictionary shall not include an AA entry for an additional-actions dictionary","test":"containsAA == false","error":{"message":"A Field dictionary contains an additional-actions dictionary (AA entry)","arguments":[]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.6.2","testNumber":2}},{"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 == 1","error":{"message":"The \"part\" property of the PDF/A Identification Schema is %1 instead of 1 for PDF/A-1 conforming file","arguments":[{"argument":"part","name":null,"argumentValue":null}]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.7.11","testNumber":2}},{"object":"PDCMap","deferred":null,"tags":null,"description":"All CMaps used within a conforming file, except Identity-H and Identity-V, shall be embedded in that file as described in PDF Reference 5.6.4","test":"CMapName == \"Identity-H\" || CMapName == \"Identity-V\" || containsEmbeddedFile == true","error":{"message":"A CMap is different from \"Identity-H\" or \"Identity-V\" and is not embedded","arguments":[]},"references":[{"specification":"PDF 1.4 Reference","clause":"5.6.4"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.3.3.3","testNumber":1}},{"object":"ExtensionSchemaValueType","deferred":null,"tags":null,"description":"Field 'prefix' of the PDF/A ValueType value type in the PDF/A extension schema shall be present and shall have type Text and namespace prefix 'pdfaType'","test":"isPrefixValidText == true && prefixPrefix == \"pdfaType\"","error":{"message":"Field 'prefix' of the PDF/A ValueType value type is not present, or doesn't have prefix 'pdfaType' (prefix prefix = %1) or doesn't have type Text (isPrefixValidText = %2)","arguments":[{"argument":"prefixPrefix","name":null,"argumentValue":null},{"argument":"isPrefixValidText","name":null,"argumentValue":null}]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.7.8","testNumber":14}},{"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_1","clause":"6.1.4","testNumber":2}},{"object":"PDType1Font","deferred":true,"tags":null,"description":"For all Type 1 font subsets referenced within a conforming file, the font descriptor dictionary shall include a CharSet string listing the character names defined in the font subset, as described in PDF Reference Table 5.18","test":"fontName.search(/[A-Z]{6}\\+/) != 0 || (CharSet != null && charSetListsAllGlyphs == true)","error":{"message":"A Type1 font subset does not define CharSet entry in its Descriptor dictionary","arguments":[]},"references":[{"specification":"PDF 1.4 Reference","clause":"5.5.3"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.3.5","testNumber":2}},{"object":"CosInfo","deferred":null,"tags":null,"description":"The value of Title entry from the document information dictionary, if present, and its analogous XMP property \"dc:title['x-default']\" shall be equivalent","test":"Title == null || Title == XMPTitle","error":{"message":"The value of Title entry from the document Info dictionary and its matching XMP property \"dc:title['x-default']\" are not equivalent (Info /Title = %1, XMP dc:title['x-default'] = %2)","arguments":[{"argument":"Title","name":null,"argumentValue":null},{"argument":"XMPTitle","name":null,"argumentValue":null}]},"references":[{"specification":"ISO 19005-1:2005/Cor.1:2007/Cor.2:2011","clause":"6.7.3"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.7.3","testNumber":2}},{"object":"PDFAIdentification","deferred":null,"tags":null,"description":"Property \"conformance\" of the PDF/A Identification Schema shall have namespace prefix \"pdfaid\"","test":"conformancePrefix == null || conformancePrefix == \"pdfaid\"","error":{"message":"Property \"conformance\" of the PDF/A Identification Schema has invalid namespace prefix %1","arguments":[{"argument":"conformancePrefix","name":null,"argumentValue":null}]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.7.11","testNumber":5}},{"object":"Op_Undefined","deferred":null,"tags":null,"description":"A content stream shall not contain any operators not defined in PDF Reference 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 PDF Reference","arguments":[{"argument":"name","name":null,"argumentValue":null}]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.2.10","testNumber":1}},{"object":"TrueTypeFontProgram","deferred":null,"tags":null,"description":"Font programs' \"cmap\" tables for all symbolic TrueType fonts shall contain exactly one encoding","test":"isSymbolic == false || nrCmaps == 1","error":{"message":"The embedded font program for a symbolic TrueType font contains %1 cmap subtables","arguments":[{"argument":"nrCmaps","name":null,"argumentValue":null}]},"references":[{"specification":"ISO 19005-1:2005/Cor.2:2011","clause":"6.3.7"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.3.7","testNumber":3}},{"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_1","clause":"6.9","testNumber":1}},{"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 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)","test":"fontFileSubtype == null || fontFileSubtype == \"Type1C\" || fontFileSubtype == \"CIDFontType0C\"","error":{"message":"Unsupported font file format %1 of the embedded font","arguments":[{"argument":"fontFileSubtype","name":null,"argumentValue":null}]},"references":[{"specification":"PDF 1.4 Reference","clause":"5.8 - Table 5.22"},{"specification":"Adobe Technical Note #5176, The Compact Font Format Specification","clause":""}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.3.2","testNumber":7}},{"object":"Glyph","deferred":null,"tags":null,"description":"The font dictionary shall include a ToUnicode entry whose value is a CMap stream object that maps character codes to Unicode values, 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","test":"toUnicode != null","error":{"message":"The font does not define Unicode character map","arguments":[]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.3.8","testNumber":1}},{"object":"PDExtGState","deferred":null,"tags":null,"description":"If an SMask key appears in an ExtGState dictionary, its value shall be None","test":"containsSMask == false || SMaskNameValue == \"None\"","error":{"message":"An ExtGState contains SMask key with a value other than None","arguments":[]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.4","testNumber":1}},{"object":"CosRenderingIntent","deferred":null,"tags":null,"description":"Where a rendering intent is specified, its value shall be one of the four values defined in PDF Reference RelativeColorimetric, AbsoluteColorimetric, Perceptual or Saturation","test":"internalRepresentation == \"RelativeColorimetric\" || internalRepresentation == \"AbsoluteColorimetric\" || internalRepresentation == \"Perceptual\" || internalRepresentation == \"Saturation\"","error":{"message":"A rendering intent with non-standard value %1 is used","arguments":[{"argument":"internalRepresentation","name":null,"argumentValue":null}]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.2.9","testNumber":1}},{"object":"CosInfo","deferred":null,"tags":null,"description":"The value of Author entry from the document information dictionary, if present, and its analogous XMP property \"dc:creator\" shall be equivalent. dc:creator shall contain exactly one entry","test":"Author == null || (Author == XMPCreator && XMPCreatorSize == 1)","error":{"message":"The value of Author entry from the document Info dictionary and its matching XMP property \"dc:creator\" are not equivalent (Info /Author = %1, XMP dc:creator = %2)","arguments":[{"argument":"Author","name":null,"argumentValue":null},{"argument":"XMPCreator","name":null,"argumentValue":null}]},"references":[{"specification":"ISO 19005-1:2005/Cor.1:2007/Cor.2:2011","clause":"6.7.3"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.7.3","testNumber":3}},{"object":"CosDocument","deferred":null,"tags":null,"description":"The document catalog dictionary shall not contain a key with the name OCProperties","test":"isOptionalContentPresent == false","error":{"message":"The document catalog dictionary contains the OCProperties entry","arguments":[]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.1.13","testNumber":1}},{"object":"ExtensionSchemaDefinition","deferred":null,"tags":null,"description":"Field 'property' of the PDF/A Schema value type in the PDF/A extension schema shall have type Seq Property and namespace prefix 'pdfaSchema'","test":"isPropertyValidSeq == true && (propertyPrefix == null || propertyPrefix == \"pdfaSchema\")","error":{"message":"Field 'property' of the PDF/A Schema value type doesn't have prefix 'pdfaSchema' (property prefix = %1) or doesn't have type Seq Property (isPropertyValidSeq = %2)","arguments":[{"argument":"propertyPrefix","name":null,"argumentValue":null},{"argument":"isPropertyValidSeq","name":null,"argumentValue":null}]},"references":[{"specification":"ISO 19005-1:2005/Cor.1:2007","clause":"6.7.8"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.7.8","testNumber":6}},{"object":"XMPProperty","deferred":null,"tags":null,"description":"Properties specified in XMP form shall use either the predefined schemas defined in XMP Specification, or extension schemas that comply with XMP Specification","test":"isPredefinedInXMP2004 == true || isDefinedInCurrentPackage == true","error":{"message":"A property is either not defined in XMP Specification, or is not defined in any of the extension schemas","arguments":[]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.7.9","testNumber":2}},{"object":"ExtensionSchemaDefinition","deferred":null,"tags":null,"description":"Field 'prefix' of the PDF/A Schema value type in the PDF/A extension schema shall be present and shall have type Text and namespace prefix 'pdfaSchema'","test":"isPrefixValidText == true && prefixPrefix == \"pdfaSchema\"","error":{"message":"Field 'prefix' of the PDF/A Schema value type is not present, or doesn't have prefix 'pdfaSchema' (prefix prefix = %1) or doesn't have type Text (isPrefixValidText = %2)","arguments":[{"argument":"prefixPrefix","name":null,"argumentValue":null},{"argument":"isPrefixValidText","name":null,"argumentValue":null}]},"references":[{"specification":"ISO 19005-1:2005/Cor.1:2007","clause":"6.7.8"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.7.8","testNumber":5}},{"object":"PDXForm","deferred":null,"tags":null,"description":"A form XObject dictionary shall not contain the Subtype2 key with a value of PS or the PS key","test":"(Subtype2 == null || Subtype2 != \"PS\") && containsPS == false","error":{"message":"The form XObject dictionary contains a PS key or Subtype2 key with value PS","arguments":[]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.2.5","testNumber":1}},{"object":"PDAnnot","deferred":null,"tags":null,"description":"An annotation dictionary shall not contain the CA key with a value other than 1.0","test":"CA == null || CA == 1.0","error":{"message":"An annotation dictionary contains the CA key with value %1 instead of 1.0","arguments":[{"argument":"CA","name":null,"argumentValue":null}]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.5.3","testNumber":1}},{"object":"CosLang","deferred":null,"tags":null,"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","test":"unicodeValue == '' || /^[a-zA-Z]{1,8}(-[a-zA-Z]{1,8})*$/.test(unicodeValue)","error":{"message":"Value %1 of the Lang entry is not a Language-Tag","arguments":[{"argument":"unicodeValue","name":null,"argumentValue":null}]},"references":[{"specification":"PDF Reference 1.4","clause":"9.8.1"},{"specification":"RFC 1766","clause":"2"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.8.4","testNumber":1}},{"object":"PDDocument","deferred":null,"tags":null,"description":"The document catalog dictionary shall not include an AA entry for an additional-actions dictionary","test":"containsAA == false","error":{"message":"The document catalog dictionary contains an additional-actions dictionary (AA entry)","arguments":[]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.6.2","testNumber":3}},{"object":"CMapFile","deferred":null,"tags":null,"description":"Maximum value of a CID (character identifier) is 65,535","test":"maximalCID <= 65535","error":{"message":"Value of a CID (%1) exceeded 65,535","arguments":[{"argument":"maximalCID","name":null,"argumentValue":null}]},"references":[{"specification":"PDF Reference 1.4","clause":"Table C.1"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.1.12","testNumber":10}},{"object":"CosXRef","deferred":null,"tags":null,"description":"In a cross reference subsection header the starting object number and the range shall be separated by a single SPACE character (20h)","test":"subsectionHeaderSpaceSeparated == true","error":{"message":"Extra or missing spacings around in a subsection header of the cross reference table","arguments":[]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.1.4","testNumber":1}},{"object":"PDXObject","deferred":null,"tags":null,"description":"An XObject dictionary (Image or Form) shall not contain the OPI key","test":"containsOPI == false","error":{"message":"OPI key is present in the XObject dictionary","arguments":[]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.2.4","testNumber":2}},{"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":[{"specification":"ISO 19005-1/Cor.2:2011","clause":"6.5.3"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.5.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_1","clause":"6.2.4","testNumber":1}},{"object":"PDWidgetAnnot","deferred":null,"tags":null,"description":"Every form field shall have an appearance dictionary associated with the field's data","test":"AP != null","error":{"message":"Form field does not have an appearance dictionary associated with the field's data","arguments":[]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.9","testNumber":2}},{"object":"CosInfo","deferred":null,"tags":null,"description":"The value of Keywords entry from the document information dictionary, if present, and its analogous XMP property \"pdf:Keywords\" shall be equivalent","test":"Keywords == null || Keywords == XMPKeywords","error":{"message":"The value of Keywords entry from the document Info dictionary and its matching XMP property \"pdf:Keywords\" are not equivalent (Info /Keywords = %1, XMP pdf:Keywords = %2)","arguments":[{"argument":"Keywords","name":null,"argumentValue":null},{"argument":"XMPKeywords","name":null,"argumentValue":null}]},"references":[{"specification":"ISO 19005-1:2005/Cor.1:2007/Cor.2:2011","clause":"6.7.3"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.7.3","testNumber":5}},{"object":"ExtensionSchemaField","deferred":null,"tags":null,"description":"Field 'description' of the PDF/A Field value type in the PDF/A extension schema shall have type Text and namespace prefix 'pdfaField'","test":"isDescriptionValidText == true && descriptionPrefix == \"pdfaField\"","error":{"message":"Field 'description' of the PDF/A Field value type is not present, or doesn't have prefix 'pdfaField' (description prefix = %1) or doesn't have type Text (isDescriptionValidText = %2)","arguments":[{"argument":"descriptionPrefix","name":null,"argumentValue":null},{"argument":"isDescriptionValidText","name":null,"argumentValue":null}]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.7.8","testNumber":19}},{"object":"PDAnnot","deferred":null,"tags":null,"description":"An annotation dictionary shall contain the F key. The F key’s Print flag bit shall be set to 1 and its Hidden, Invisible and NoView flag bits shall be set to 0","test":"F != null && (F & 4) == 4 && (F & 1) == 0 && (F & 2) == 0 && (F & 32) == 0","error":{"message":"Annotation flags are either missing or set the annotation to be hidden/invisible or non-printable (F = %1, Print = %2, Hidden = %3, Invisible = %4, NoView = %5)","arguments":[{"argument":"F","name":null,"argumentValue":null},{"argument":"F != null ? (F & 4) >> 2 : null","name":null,"argumentValue":null},{"argument":"F != null ? (F & 2) >> 1 : null","name":null,"argumentValue":null},{"argument":"F != null ? (F & 1) : null","name":null,"argumentValue":null},{"argument":"F != null ? (F & 32) >> 5 : null","name":null,"argumentValue":null}]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.5.3","testNumber":2}},{"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_1","clause":"6.1.6","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","test":"containsPDFAIdentification == true","error":{"message":"The document metadata stream doesn't contain PDF/A Identification Schema","arguments":[]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.7.11","testNumber":1}},{"object":"PDSimpleFont","deferred":null,"tags":null,"description":"All fonts used in a conforming file shall conform to the font specifications defined in PDF Reference 5.5. 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":"PDF 1.4 Reference","clause":"5.5.1 - Table 5.8"},{"specification":"PDF 1.4 Reference","clause":"5.5.4 - Table 5.9"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.3.2","testNumber":6}},{"object":"ExtensionSchemaProperty","deferred":null,"tags":null,"description":"Field 'description' of the PDF/A Property value type in the PDF/A extension schema shall be present and shall have type Text and namespace prefix 'pdfaProperty'","test":"isDescriptionValidText == true && descriptionPrefix == \"pdfaProperty\"","error":{"message":"Field 'description' of the PDF/A Property value type is not present, or doesn't have prefix 'pdfaProperty' (description prefix = %1) or doesn't have type Text (isDescriptionValidText = %2)","arguments":[{"argument":"descriptionPrefix","name":null,"argumentValue":null},{"argument":"isDescriptionValidText","name":null,"argumentValue":null}]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.7.8","testNumber":11}},{"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_1","clause":"6.7.5","testNumber":1}},{"object":"PDTrueTypeFont","deferred":null,"tags":null,"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","test":"isSymbolic == true || ((Encoding == \"MacRomanEncoding\" || Encoding == \"WinAnsiEncoding\") && containsDifferences == false)","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)","arguments":[{"argument":"Encoding","name":null,"argumentValue":null},{"argument":"containsDifferences","name":null,"argumentValue":null}]},"references":[{"specification":"ISO 19005-1:2005/Cor.2:2011","clause":"6.3.7"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.3.7","testNumber":1}},{"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_1","clause":"6.7.5","testNumber":2}},{"object":"CosFileSpecification","deferred":null,"tags":null,"description":"A file specification dictionary, as defined in PDF 3.10.2, shall not contain the EF key","test":"containsEF == false","error":{"message":"A file specification dictionary contains the EF key","arguments":[]},"references":[{"specification":"PDF 1.4 Reference","clause":"3.10.2"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.1.11","testNumber":1}},{"object":"Op_q_gsave","deferred":null,"tags":null,"description":"Maximum depth of graphics state nesting by q and Q operators is 28","test":"nestingLevel <= 28","error":{"message":"Depth of graphics state nesting of q/Q operators (%1) exceeded 28","arguments":[{"argument":"nestingLevel","name":null,"argumentValue":null}]},"references":[{"specification":"PDF Reference 1.4","clause":"Table C.1"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.1.12","testNumber":8}},{"object":"PDAnnot","deferred":null,"tags":null,"description":"An annotation dictionary shall not contain the C array or the IC array unless the colour space of the DestOutputProfile in the PDF/A-1 OutputIntent dictionary, defined in 6.2.2, is RGB","test":"(containsC == false && containsIC == false) || gOutputCS == \"RGB \"","error":{"message":"Annotation's color (C present = %1) or interior color (IC present = %2) is used without specifying RGB-based destination output profile","arguments":[{"argument":"containsC","name":null,"argumentValue":null},{"argument":"containsIC","name":null,"argumentValue":null}]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.5.3","testNumber":3}},{"object":"CosFilter","deferred":null,"tags":null,"description":"The LZWDecode filter shall not be permitted","test":"internalRepresentation != \"LZWDecode\"","error":{"message":"Unknown or not permitted Stream filter %1 is used","arguments":[{"argument":"internalRepresentation","name":null,"argumentValue":null}]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.1.10","testNumber":1}},{"object":"ExtensionSchemaValueType","deferred":null,"tags":null,"description":"Field 'description' of the PDF/A ValueType value type in the PDF/A extension schema shall be present and shall have type Text and namespace prefix 'pdfaType'","test":"isDescriptionValidText == true && descriptionPrefix == \"pdfaType\"","error":{"message":"Field 'description' of the PDF/A ValueType value type is not present, or doesn't have prefix 'pdfaType' (description prefix = %1) or doesn't have type Text (isDescriptionValidText = %2)","arguments":[{"argument":"descriptionPrefix","name":null,"argumentValue":null},{"argument":"isDescriptionValidText","name":null,"argumentValue":null}]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.7.8","testNumber":15}},{"object":"PDFont","deferred":null,"tags":null,"description":"The font programs for all fonts used within a conforming file shall be embedded within that file, as defined in PDF Reference 5.8, except when the fonts are used exclusively with text rendering mode 3","test":"Subtype == \"Type3\" || Subtype == \"Type0\" || renderingMode == 3 || containsFontFile == true","error":{"message":"The font program is not embedded","arguments":[]},"references":[{"specification":"PDF 1.4 Reference","clause":"5.8"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.3.4","testNumber":1}},{"object":"CosStream","deferred":null,"tags":null,"description":"The stream keyword shall be followed either by a CARRIAGE RETURN (0Dh) and LINE FEED (0Ah) character sequence or by a single LINE FEED character. The endstream keyword shall be preceded by an EOL marker","test":"streamKeywordCRLFCompliant == true && endstreamKeywordEOLCompliant == true","error":{"message":"Extra spacings or missing EOL characters around keywords 'stream' and 'endstream'","arguments":[]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.1.7","testNumber":2}},{"object":"CosString","deferred":null,"tags":null,"description":"Maximum length of a string (in bytes) is 65535","test":"value.length() < 65536","error":{"message":"String length (%1) exceeded 65535","arguments":[{"argument":"value.length()","name":null,"argumentValue":null}]},"references":[{"specification":"PDF Reference 1.4","clause":"Table C.1"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.1.12","testNumber":3}},{"object":"PDXImage","deferred":null,"tags":null,"description":"If an Image dictionary contains the Interpolate key, its value shall be 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_1","clause":"6.2.4","testNumber":3}},{"object":"XMPProperty","deferred":null,"tags":null,"description":"Properties specified in XMP form shall use either the predefined schemas defined in XMP Specification, or extension schemas that comply with XMP Specification","test":"isValueTypeCorrect == true","error":{"message":"XMP property does not correspond to type %1","arguments":[{"argument":"predefinedType","name":null,"argumentValue":null}]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.7.9","testNumber":3}},{"object":"PDExtGState","deferred":null,"tags":null,"description":"If a BM key is present in an ExtGState object, its value shall be Normal or Compatible","test":"containsBM == false || BMNameValue == \"Normal\" || BMNameValue == \"Compatible\"","error":{"message":"An ExtGState dictionary contains the BM key (blend mode) with value %1 that is neither Normal or Compatible","arguments":[{"argument":"BM","name":null,"argumentValue":null}]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.4","testNumber":4}},{"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_1","clause":"6.1.8","testNumber":1}},{"object":"PDType0Font","deferred":null,"tags":null,"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","test":"cmapName == \"Identity-H\" || cmapName == \"Identity-V\" || (CIDFontOrdering != null && CIDFontOrdering == CMapOrdering && CIDFontRegistry != null && CIDFontRegistry == CMapRegistry)","error":{"message":"Registry and Ordering entries in 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)","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}]},"references":[{"specification":"PDF 1.4 Reference","clause":"5.6.2"},{"specification":"ISO 19005-1:2005/Cor.2:2011","clause":"6.3.3"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.3.3.1","testNumber":1}},{"object":"ExtensionSchemaDefinition","deferred":null,"tags":null,"description":"Field 'schema' of the PDF/A Schema value type in the PDF/A extension schema shall be present and shall have type Text and namespace prefix 'pdfaSchema'","test":"isSchemaValidText == true && schemaPrefix == \"pdfaSchema\"","error":{"message":"Field 'schema' of the PDF/A Schema value type is not present, or doesn't have prefix 'pdfaSchema' (schema prefix = %1) or doesn't have type Text (isSchemaValidText = %2)","arguments":[{"argument":"schemaPrefix","name":null,"argumentValue":null},{"argument":"isSchemaValidText","name":null,"argumentValue":null}]},"references":[{"specification":"ISO 19005-1:2005/Cor.1:2007","clause":"6.7.8"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.7.8","testNumber":3}},{"object":"SENonStandard","deferred":null,"tags":null,"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","test":"isNotMappedToStandardType == false","error":{"message":"Non-standard structure type %1 is not mapped to a standard type","arguments":[{"argument":"valueS","name":null,"argumentValue":null}]},"references":[{"specification":"PDF 1.4 Reference","clause":"9.7.4"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.8.3.4","testNumber":1}},{"object":"ExtensionSchemaProperty","deferred":null,"tags":null,"description":"Field 'valueType' of the PDF/A Property value type in the PDF/A extension schema shall be present and shall have type Text and namespace prefix 'pdfaProperty'. Value of valueType property shall be defined","test":"isValueTypeValidText == true && isValueTypeDefined == true && valueTypePrefix == \"pdfaProperty\"","error":{"message":"Field 'valueType' of the PDF/A Property value type is not present, or doesn't have prefix 'pdfaProperty' (valueType prefix = %1) or doesn't have type Text (isValueTypeValidText = %2) or value of valueType doesn't defined (isValueTypeDefined = %3)","arguments":[{"argument":"valueTypePrefix","name":null,"argumentValue":null},{"argument":"isValueTypeValidText","name":null,"argumentValue":null},{"argument":"isValueTypeDefined","name":null,"argumentValue":null}]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.7.8","testNumber":9}},{"object":"CosInfo","deferred":null,"tags":null,"description":"The value of CreationDate entry from the document information dictionary, if present, and its analogous XMP property \"xmp:CreateDate\" shall be equivalent","test":"doCreationDatesMatch != false","error":{"message":"The value of CreationDate entry from the document Info dictionary and its matching XMP property \"xmp:CreateDate\" are not equivalent (Info /CreationDate = %1, XMP xmp:CreateDate = %2)","arguments":[{"argument":"CreationDate","name":null,"argumentValue":null},{"argument":"XMPCreateDate","name":null,"argumentValue":null}]},"references":[{"specification":"ISO 19005-1:2005/Cor.1:2007/Cor.2:2011","clause":"6.7.3"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.7.3","testNumber":1}},{"object":"CosString","deferred":null,"tags":null,"description":"All non-white-space characters in hexadecimal strings shall be in the range 0 to 9, A to F or a to 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_1","clause":"6.1.6","testNumber":2}},{"object":"PDCIDFont","deferred":true,"tags":null,"description":"For all CIDFont subsets referenced within a conforming file, the font descriptor dictionary shall include a CIDSet stream identifying which CIDs are present in the embedded CIDFont file, as described in PDF Reference Table 5.20","test":"fontName.search(/[A-Z]{6}\\+/) != 0 || (containsCIDSet == true && cidSetListsAllGlyphs == true)","error":{"message":"A CIDSet entry in the Font descriptor is missing or does not correctly identify all glyphs present in the embedded font subset and used for rendering","arguments":[]},"references":[{"specification":"PDF 1.4 Reference","clause":"5.5.3"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.3.5","testNumber":3}},{"object":"ExtensionSchemaDefinition","deferred":null,"tags":null,"description":"Field 'namespaceURI' of the PDF/A Schema value type in the PDF/A extension schema shall be present and shall have type URI and namespace prefix 'pdfaSchema'","test":"isNamespaceURIValidURI == true && namespaceURIPrefix == \"pdfaSchema\"","error":{"message":"Field 'namespaceURI' of the PDF/A Schema value type is not present, or doesn't have prefix 'pdfaSchema' (namespaceURI prefix = %1) or doesn't have type URI (isNamespaceURIValidURI = %2)","arguments":[{"argument":"namespaceURIPrefix","name":null,"argumentValue":null},{"argument":"isNamespaceURIValidURI","name":null,"argumentValue":null}]},"references":[{"specification":"ISO 19005-1:2005/Cor.1:2007","clause":"6.7.8"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.7.8","testNumber":4}},{"object":"ExtensionSchemaValueType","deferred":null,"tags":null,"description":"Field 'namespaceURI' of the PDF/A ValueType value type in the PDF/A extension schema shall be present and shall have type URI and namespace prefix 'pdfaType'","test":"isNamespaceURIValidURI == true && namespaceURIPrefix == \"pdfaType\"","error":{"message":"Field 'namespaceURI' of the PDF/A ValueType value type is not present, or doesn't have prefix 'pdfaType' (namespaceURI prefix = %1) or doesn't have type URI (isNamespaceURIValidURI = %2)","arguments":[{"argument":"namespaceURIPrefix","name":null,"argumentValue":null},{"argument":"isNamespaceURIValidURI","name":null,"argumentValue":null}]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.7.8","testNumber":13}},{"object":"PDFAIdentification","deferred":null,"tags":null,"description":"A Level A conforming file shall specify the value of \"pdfaid:conformance\" as A","test":"conformance == \"A\"","error":{"message":"The \"conformance\" property of the PDF/A Identification Schema is %1 instead of \"A\" for PDF/A-1a conforming file","arguments":[{"argument":"conformance","name":null,"argumentValue":null}]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.7.11","testNumber":3}},{"object":"CosReal","deferred":null,"tags":null,"description":"Absolute real value must be less than or equal to 32767.0","test":"(realValue >= -32767.0) && (realValue <= 32767.0)","error":{"message":"Real value %1 out of range","arguments":[{"argument":"realValue","name":null,"argumentValue":null}]},"references":[{"specification":"PDF Reference 1.4","clause":"Table C.1"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.1.12","testNumber":2}},{"object":"PDMetadata","deferred":null,"tags":null,"description":"The Metadata object stream dictionary in the document’s catalog shall not contain the Filter key","test":"isCatalogMetadata == false || Filter == null","error":{"message":"The catalog metadata object stream dictionary contains the Filter key","arguments":[]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.7.2","testNumber":2}},{"object":"PDAction","deferred":null,"tags":null,"description":"The Launch, Sound, Movie, ResetForm, ImportData and JavaScript actions shall not be permitted. Additionally, the deprecated set-state and no-op actions shall not be permitted. The Hide action shall not be permitted (Corrigendum 2)","test":"S == \"GoTo\" || S == \"GoToR\" || S == \"Thread\" || S == \"URI\" || S == \"Named\" || S == \"SubmitForm\"","error":{"message":"Unknown or not permitted Action type %1","arguments":[{"argument":"S","name":null,"argumentValue":null}]},"references":[{"specification":"ISO 19005-1:2005/Cor.2:2011","clause":"6.6.1"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.6.1","testNumber":1}},{"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_1","clause":"6.7.11","testNumber":4}},{"object":"CosDocument","deferred":null,"tags":null,"description":"No data shall follow the last end-of-file marker except a single optional end-of-line marker","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":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.1.3","testNumber":3}},{"object":"CosDocument","deferred":null,"tags":null,"description":"The file trailer dictionary shall contain the ID keyword. The file trailer referred to is either the last trailer dictionary in a PDF file, as described in PDF Reference 3.4.4 and 3.4.5, or the first page trailer in a linearized PDF file, as described in PDF Reference F.2","test":"(isLinearized == true) ? (firstPageID != null) : (lastID != null)","error":{"message":"Missing ID in the document trailer","arguments":[]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.1.3","testNumber":1}},{"object":"CosDocument","deferred":null,"tags":null,"description":"The document catalog dictionary shall include a MarkInfo dictionary with a Marked entry in it, whose value shall be true","test":"Marked == true","error":{"message":"MarkInfo dictionary is not present in the document catalog, or Marked entry is set to false or is not present in the MarkInfo dictionary (MarkInfo = %1, Marked = %2)","arguments":[{"argument":"MarkInfo","name":null,"argumentValue":null},{"argument":"Marked","name":null,"argumentValue":null}]},"references":[{"specification":"PDF 1.4 Reference","clause":"9.7.1"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.8.2.2","testNumber":1}},{"object":"SENonStandard","deferred":null,"tags":null,"description":"A circular mapping shall not exist","test":"circularMappingExist != true","error":{"message":"A circular mapping exists for %1 structure type","arguments":[{"argument":"valueS","name":null,"argumentValue":null}]},"references":[{"specification":"PDF 1.4 Reference","clause":"9.7.4"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.8.3.4","testNumber":2}},{"object":"PDTrueTypeFont","deferred":null,"tags":null,"description":"All symbolic TrueType fonts shall not specify 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":[{"specification":"ISO 19005-1:2005/Cor.2:2011","clause":"6.3.7"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.3.7","testNumber":2}},{"object":"ICCInputProfile","deferred":null,"tags":null,"description":"All ICCBased colour spaces shall be embedded as ICC profile streams as described in PDF Reference 4.5","test":"(deviceClass == \"prtr\" || deviceClass == \"mntr\" || deviceClass == \"scnr\" || deviceClass == \"spac\") && (colorSpace == \"RGB \" || colorSpace == \"CMYK\" || colorSpace == \"GRAY\" || colorSpace == \"Lab \") && version < 3.0","error":{"message":"The embedded ICC profile (Device Class = %1, color space = %2, version = %3) is either invalid or does not satisfy PDF 1.4 requirements","arguments":[{"argument":"deviceClass","name":null,"argumentValue":null},{"argument":"colorSpace","name":null,"argumentValue":null},{"argument":"version","name":null,"argumentValue":null}]},"references":[{"specification":"PDF 1.4 Reference","clause":"4.5.4, ICCBased Color Spaces"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.2.3.2","testNumber":1}},{"object":"PDSimpleFont","deferred":null,"tags":null,"description":"All fonts used in a conforming file shall conform to the font specifications defined in PDF Reference 5.5. 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":"PDF 1.4 Reference","clause":"5.5.1 - Table 5.8"},{"specification":"PDF 1.4 Reference","clause":"5.5.4 - Table 5.9"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.3.2","testNumber":5}},{"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. 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":"PDF 1.4 Reference","clause":"5.5.1 - Table 5.8"},{"specification":"PDF 1.4 Reference","clause":"5.5.4 - Table 5.9"},{"specification":"PDF 1.4 Reference","clause":"5.6.3 - Table 5.13"},{"specification":"PDF 1.4 Reference","clause":"5.6.5 - Table 5.17"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.3.2","testNumber":2}},{"object":"PDExtGState","deferred":null,"tags":null,"description":"An ExtGState dictionary shall not contain the TR2 key with a value other than Default","test":"containsTR2 == false || TR2NameValue == \"Default\"","error":{"message":"An ExtGState dictionary contains the TR2 key with a value other than Default","arguments":[]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.2.8","testNumber":2}},{"object":"PDCIDFont","deferred":null,"tags":null,"description":"For all Type 2 CIDFonts that are used for rendering, 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 PDF Reference Table 5.13","test":"Subtype != \"CIDFontType2\" || CIDToGIDMap != null || renderingMode == 3","error":{"message":"A Type 2 CIDFont dictionary has missing or invalid CIDToGIDMap entry","arguments":[]},"references":[{"specification":"PDF 1.4 Reference","clause":"5.6.3 - Table 5.13"},{"specification":"ISO 19005-1:2005/Cor.2:2011","clause":"6.3.3"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.3.3.2","testNumber":1}},{"object":"PDSimpleFont","deferred":null,"tags":null,"description":"All fonts used in a conforming file shall conform to the font specifications defined in PDF Reference 5.5. 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":"PDF 1.4 Reference","clause":"5.5.1 - Table 5.8"},{"specification":"PDF 1.4 Reference","clause":"5.5.4 - Table 5.9"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.3.2","testNumber":4}},{"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":[{"specification":"ISO 19005-1/Cor.2:2011","clause":"6.5.3"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.5.3","testNumber":4}},{"object":"XMPPackage","deferred":null,"tags":null,"description":"The metadata stream shall conform to XMP Specification and well formed PDFAExtension Schema for all extensions","test":"isSerializationValid","error":{"message":"The serialization of the metadata stream does not conform to XMP Specification","arguments":[]},"references":[{"specification":"XMP Specification January 2004","clause":""}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.7.9","testNumber":1}},{"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":"PDF 1.4 Reference","clause":"8.5.3 - Named Actions - Table 8.45"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.6.1","testNumber":2}},{"object":"CosName","deferred":null,"tags":null,"description":"Maximum length of a name (in bytes) is 127","test":"internalRepresentation.length() <= 127","error":{"message":"Name length (%1) exceeded 127","arguments":[{"argument":"internalRepresentation.length()","name":null,"argumentValue":null}]},"references":[{"specification":"PDF Reference 1.4","clause":"Table C.1"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.1.12","testNumber":4}},{"object":"PDDeviceRGB","deferred":null,"tags":null,"description":"DeviceRGB may be used only if the file has a PDF/A-1 OutputIntent that uses an RGB colour space","test":"gOutputCS != null && gOutputCS == \"RGB \"","error":{"message":"DeviceRGB colour space is used without RGB output intent profile","arguments":[]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.2.3.3","testNumber":1}},{"object":"ExtensionSchemaProperty","deferred":null,"tags":null,"description":"Field 'category' of the PDF/A Property value type in the PDF/A extension schema shall be present and shall have type Text, value external or internal and namespace prefix 'pdfaProperty'","test":"isCategoryValidText == true && (category == \"external\" || category == \"internal\") && categoryPrefix == \"pdfaProperty\"","error":{"message":"Field 'category' of the PDF/A Property value type is not present, or doesn't have prefix 'pdfaProperty' (category prefix = %1) or doesn't have type Text (isCategoryValidText = %2) or has value different from external or internal (category value = %3)","arguments":[{"argument":"categoryPrefix","name":null,"argumentValue":null},{"argument":"isCategoryValidText","name":null,"argumentValue":null},{"argument":"category","name":null,"argumentValue":null}]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.7.8","testNumber":10}},{"object":"PDFAIdentification","deferred":null,"tags":null,"description":"Property \"amd\" of the PDF/A Identification Schema shall have namespace prefix \"pdfaid\"","test":"amdPrefix == null || amdPrefix == \"pdfaid\"","error":{"message":"Property \"amd\" of the PDF/A Identification Schema has invalid namespace prefix %1","arguments":[{"argument":"amdPrefix","name":null,"argumentValue":null}]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.7.11","testNumber":6}},{"object":"PDExtGState","deferred":null,"tags":null,"description":"If a CA key is present in an ExtGState object, its value shall be 1.0","test":"CA == null || CA - 1.0 < 0.000001 && CA - 1.0 > -0.000001","error":{"message":"An ExtGState dictionary contains the CA key (stroke alpha) with value %1 other than 1.0","arguments":[{"argument":"CA","name":null,"argumentValue":null}]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.4","testNumber":5}},{"object":"PDWidgetAnnot","deferred":null,"tags":null,"description":"Interactive form fields shall not perform actions of any type","test":"containsA == false","error":{"message":"Interactive form field contains an action object ('A' key)","arguments":[]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.6.1","testNumber":3}},{"object":"PDDocument","deferred":null,"tags":null,"description":"The document catalog dictionary of a conforming file shall contain the Metadata key. 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":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.7.2","testNumber":1}},{"object":"PDDocument","deferred":null,"tags":null,"description":"The logical structure of the conforming file shall be described by a structure hierarchy rooted in the StructTreeRoot entry of the document catalog dictionary, as described in PDF Reference 9.6","test":"containsStructTreeRoot == true","error":{"message":"StructTreeRoot entry is not present in the document catalog","arguments":[]},"references":[{"specification":"PDF 1.4 Reference","clause":"9.6.1"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.8.3.3","testNumber":1}},{"object":"CosDocument","deferred":null,"tags":null,"description":"In a linearized PDF, if the ID keyword is present in both the first page trailer dictionary and the last trailer dictionary, the value to both instances of the ID keyword shall be identical","test":"(isLinearized != true) || lastID == null || (firstPageID == lastID)","error":{"message":"Last ID (%1) is present in the Linearized PDF and does not match the first page ID (%2)","arguments":[{"argument":"lastIDValue","name":null,"argumentValue":null},{"argument":"firstPageIDValue","name":null,"argumentValue":null}]},"references":[{"specification":"ISO 19005-1:2005/Cor.2:2011","clause":"6.1.3"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.1.3","testNumber":4}},{"object":"CosInfo","deferred":null,"tags":null,"description":"The value of Creator entry from the document information dictionary, if present, and its analogous XMP property \"xmp:CreatorTool\" shall be equivalent","test":"Creator == null || Creator == XMPCreatorTool","error":{"message":"The value of Creator entry from the document Info dictionary and its matching XMP property \"xmp:CreatorTool\" are not equivalent (Info /Creator = %1, XMP xmp:CreatorTool = %2)","arguments":[{"argument":"Creator","name":null,"argumentValue":null},{"argument":"XMPCreatorTool","name":null,"argumentValue":null}]},"references":[{"specification":"ISO 19005-1:2005/Cor.1:2007/Cor.2:2011","clause":"6.7.3"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.7.3","testNumber":6}},{"object":"CosArray","deferred":null,"tags":null,"description":"Maximum capacity of an array (in elements) is 8191","test":"size <= 8191","error":{"message":"Array capacity (%1) exceeded 8191","arguments":[{"argument":"size","name":null,"argumentValue":null}]},"references":[{"specification":"PDF Reference 1.4","clause":"Table C.1"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.1.12","testNumber":5}},{"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_1","clause":"6.3.3.3","testNumber":2}},{"object":"PDExtGState","deferred":null,"tags":null,"description":"If a ca key is present in an ExtGState object, its value shall be 1.0","test":"ca == null || ca - 1.0 < 0.000001 && ca - 1.0 > -0.000001","error":{"message":"An ExtGState dictionary contains the ca key (fill alpha) with value %1 other than 1.0","arguments":[{"argument":"ca","name":null,"argumentValue":null}]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.4","testNumber":6}},{"object":"CosTrailer","deferred":null,"tags":null,"description":"The keyword Encrypt shall not be used in the trailer dictionary","test":"isEncrypted != true","error":{"message":"Encrypt keyword is present in the trailer dictionary","arguments":[]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.1.3","testNumber":2}},{"object":"CosStream","deferred":null,"tags":null,"description":"A stream object 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":[{"specification":"19005-1:2005/Cor.2:2011","clause":"6.1.7"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.1.7","testNumber":3}},{"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 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_1","clause":"6.1.7","testNumber":1}},{"object":"ICCProfile","deferred":null,"tags":null,"description":"All ICCBased colour spaces shall be embedded as ICC profile streams as described in PDF Reference 4.5. The number of color components in the color space described by the ICC profile data must match the number of components actually in the ICC profile. As of PDF 1.4, N must be 1, 3, or 4","test":"N != null && ((N == 1 && colorSpace == \"GRAY\") || (N == 3 && (colorSpace == \"RGB \" || colorSpace == \"Lab \")) || (N == 4 && colorSpace == \"CMYK\"))","error":{"message":"The N entry (value %1) in the ICC profile dictionary is missing or does not match the number of components in the embedded ICC profile (color space %2)","arguments":[{"argument":"N","name":null,"argumentValue":null},{"argument":"colorSpace","name":null,"argumentValue":null}]},"references":[{"specification":"PDF 1.4 Reference","clause":"4.5.4, Table 4.16"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.2.3.2","testNumber":2}},{"object":"CosDocument","deferred":null,"tags":null,"description":"The % character of the file header shall occur at byte offset 0 of the file. The first line of a PDF file is a header identifying the version of the PDF specification to which the file conforms","test":"headerOffset == 0 && /%PDF-\\d\\.\\d/.test(header)","error":{"message":"File header %1 (offset = %2) starts at non-zero offset or does not match the pattern %PDF-n.m","arguments":[{"argument":"header","name":null,"argumentValue":null},{"argument":"headerOffset","name":null,"argumentValue":null}]},"references":[{"specification":"PDF 1.4 Reference","clause":"3.4.1"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.1.2","testNumber":1}},{"object":"PDWidgetAnnot","deferred":null,"tags":null,"description":"A Widget annotation dictionary shall not include an AA entry for an additional-actions dictionary","test":"containsAA == false","error":{"message":"A Widget annotation contains an additional-actions dictionary (AA entry)","arguments":[]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.6.2","testNumber":1}},{"object":"ExtensionSchemaObject","deferred":null,"tags":null,"description":"Extension schema descriptions shall be specified using the PDF/A extension schema description schema defined in this clause","test":"containsUndefinedFields == false","error":{"message":"An extension schema object contains field(s) %1 not defined by the specification","arguments":[{"argument":"undefinedFields","name":null,"argumentValue":null}]},"references":[{"specification":"ISO 19005-1:2005/Cor.1:2007","clause":"6.7.8"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.7.8","testNumber":1}},{"object":"PDXObject","deferred":null,"tags":null,"description":"A conforming file shall not contain any PostScript XObjects","test":"Subtype != \"PS\"","error":{"message":"The document contains a PostScript XObject","arguments":[]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.2.7","testNumber":1}},{"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. 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":"PDF 1.4 Reference","clause":"5.5.1 - Table 5.8"},{"specification":"PDF 1.4 Reference","clause":"5.5.4 - Table 5.9"},{"specification":"PDF 1.4 Reference","clause":"5.6.3 - Table 5.13"},{"specification":"PDF 1.4 Reference","clause":"5.6.5 - Table 5.17"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.3.2","testNumber":1}},{"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":[{"specification":"ISO 19005-1/Cor.2:2011","clause":"6.5.3"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.5.3","testNumber":5}},{"object":"Glyph","deferred":null,"tags":null,"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","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":[{"specification":"ISO 19005-1:2005/Cor.2:2011","clause":"6.3.6"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.3.6","testNumber":1}},{"object":"CosDict","deferred":null,"tags":null,"description":"Maximum capacity of a dictionary (in entries) is 4095","test":"size <= 4095","error":{"message":"Dictionary capacity (%1) exceeded 4095","arguments":[{"argument":"size","name":null,"argumentValue":null}]},"references":[{"specification":"PDF Reference 1.4","clause":"Table C.1"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.1.12","testNumber":6}},{"object":"ExtensionSchemaField","deferred":null,"tags":null,"description":"Field 'name' of the PDF/A Field value type in the PDF/A extension schema shall have type Text and namespace prefix 'pdfaField'","test":"isNameValidText == true && namePrefix == \"pdfaField\"","error":{"message":"Field 'name' of the PDF/A Field value type is not present, or doesn't have prefix 'pdfaField' (name prefix = %1) or doesn't have type Text (isNameValidText = %2)","arguments":[{"argument":"namePrefix","name":null,"argumentValue":null},{"argument":"isNameValidText","name":null,"argumentValue":null}]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.7.8","testNumber":17}},{"object":"CosInteger","deferred":null,"tags":null,"description":"Largest Integer value is 2,147,483,647. Smallest integer value is -2,147,483,648","test":"(intValue <= 2147483647) && (intValue >= -2147483648)","error":{"message":"Integer value %1 out of range","arguments":[{"argument":"intValue","name":null,"argumentValue":null}]},"references":[{"specification":"PDF Reference 1.4","clause":"Table C.1"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.1.12","testNumber":1}},{"object":"ICCOutputProfile","deferred":null,"tags":null,"description":"A PDF/A-1 OutputIntent is an OutputIntent dictionary, as defined by PDF Reference 9.10.4, that is included in the file's OutputIntents array and has GTS_PDFA1 as the value of its S key and a valid ICC profile stream as the value its DestOutputProfile key","test":"(deviceClass == \"prtr\" || deviceClass == \"mntr\") && (colorSpace == \"RGB \" || colorSpace == \"CMYK\" || colorSpace == \"GRAY\") && version < 3.0","error":{"message":"The embedded PDF/A Output Intent colour profile is either invalid or does not provide BToA information","arguments":[]},"references":[{"specification":"PDF 1.4 Reference","clause":"9.10.4"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.2.2","testNumber":1}},{"object":"ExtensionSchemaValueType","deferred":null,"tags":null,"description":"Field 'type' of the PDF/A ValueType value type in the PDF/A extension schema shall be present and shall have type Text and namespace prefix 'pdfaType'","test":"isTypeValidText == true && typePrefix == \"pdfaType\"","error":{"message":"Field 'type' of the PDF/A ValueType value type is not present, or doesn't have prefix 'pdfaType' (type prefix = %1) or doesn't have type Text (isTypeValidText = %2)","arguments":[{"argument":"typePrefix","name":null,"argumentValue":null},{"argument":"isTypeValidText","name":null,"argumentValue":null}]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.7.8","testNumber":12}},{"object":"PDDeviceGray","deferred":null,"tags":null,"description":"If an uncalibrated colour space is used in a file then that file shall contain a PDF/A-1 OutputIntent, as defined in 6.2.2","test":"gOutputCS != null","error":{"message":"DeviceGray colour space is used without output intent profile","arguments":[]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.2.3.3","testNumber":3}},{"object":"PDDocument","deferred":null,"tags":null,"description":"Xref streams shall not be used","test":"containsXRefStream == false","error":{"message":"The document uses xref streams","arguments":[]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.1.4","testNumber":3}},{"object":"ExtensionSchemaField","deferred":null,"tags":null,"description":"Field 'valueType' of the PDF/A Field value type in the PDF/A extension schema shall have type Text and namespace prefix 'pdfaField'. Value of valueType property shall be defined","test":"isValueTypeValidText == true && isValueTypeDefined == true && valueTypePrefix == \"pdfaField\"","error":{"message":"Field 'valueType' of the PDF/A Field value type is not present, or doesn't have prefix 'pdfaField' (valueType prefix = %1) or doesn't have type Text (isValueTypeValidText = %2) or value of valueType doesn't defined (isValueTypeDefined = %3)","arguments":[{"argument":"valueTypePrefix","name":null,"argumentValue":null},{"argument":"isValueTypeValidText","name":null,"argumentValue":null},{"argument":"isValueTypeDefined","name":null,"argumentValue":null}]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.7.8","testNumber":18}},{"object":"PDExtGState","deferred":null,"tags":null,"description":"An ExtGState dictionary shall not contain the TR key","test":"containsTR == false","error":{"message":"An ExtGState dictionary contains the TR key","arguments":[]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.2.8","testNumber":1}},{"object":"PDXObject","deferred":null,"tags":null,"description":"An XObject dictionary shall not contain the SMask key","test":"containsSMask == false","error":{"message":"An XObject contains an SMask key","arguments":[]},"references":[{"specification":"ISO 19005-1:2005/Cor.2:2011","clause":"6.4"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.4","testNumber":2}},{"object":"CosInfo","deferred":null,"tags":null,"description":"The value of ModDate entry from the document information dictionary, if present, and its analogous XMP property \"xmp:ModifyDate\" shall be equivalent","test":"doModDatesMatch != false","error":{"message":"The value of ModDate entry from the document Info dictionary and its matching XMP property \"xmp:ModifyDate\" are not equivalent (Info /ModDate = %1, XMP xmp:ModifyDate = %2)","arguments":[{"argument":"ModDate","name":null,"argumentValue":null},{"argument":"XMPModifyDate","name":null,"argumentValue":null}]},"references":[{"specification":"ISO 19005-1:2005/Cor.1:2007/Cor.2:2011","clause":"6.7.3"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.7.3","testNumber":8}},{"object":"ExtensionSchemaValueType","deferred":null,"tags":null,"description":"Field 'field' of the PDF/A ValueType value type in the PDF/A extension schema shall have type Seq Field and namespace prefix 'pdfaType'","test":"isFieldValidSeq == true && (fieldPrefix == null || fieldPrefix == \"pdfaType\")","error":{"message":"Field 'field' of the PDF/A ValueType value type doesn't have prefix 'pdfaType' (field prefix = %1) or doesn't have type Seq Field (isFieldValidSeq = %2)","arguments":[{"argument":"fieldPrefix","name":null,"argumentValue":null},{"argument":"isFieldValidSeq","name":null,"argumentValue":null}]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.7.8","testNumber":16}},{"object":"CosInfo","deferred":null,"tags":null,"description":"The value of Producer entry from the document information dictionary, if present, and its analogous XMP property \"pdf:Producer\" shall be equivalent","test":"Producer == null || Producer == XMPProducer","error":{"message":"The value of Producer entry from the document Info dictionary and its matching XMP property \"pdf:Producer\" are not equivalent (Info /Producer = %1, XMP pdf:Producer = %2)","arguments":[{"argument":"Producer","name":null,"argumentValue":null},{"argument":"XMPProducer","name":null,"argumentValue":null}]},"references":[{"specification":"ISO 19005-1:2005/Cor.1:2007/Cor.2:2011","clause":"6.7.3"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.7.3","testNumber":7}},{"object":"CosIIFilter","deferred":null,"tags":null,"description":"The LZWDecode filter shall not be permitted","test":"internalRepresentation != \"LZWDecode\" && internalRepresentation != \"LZW\"","error":{"message":"LZW compression is used in the inline image","arguments":[]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.1.10","testNumber":2}},{"object":"ExtensionSchemaProperty","deferred":null,"tags":null,"description":"Field 'name' of the PDF/A Property value type in the PDF/A extension schema shall be present and shall have type Text and namespace prefix 'pdfaProperty'","test":"isNameValidText == true && namePrefix == \"pdfaProperty\"","error":{"message":"Field 'name' of the PDF/A Property value type is not present, or doesn't have prefix 'pdfaProperty' (name prefix = %1) or doesn't have type Text (isNameValidText = %2)","arguments":[{"argument":"namePrefix","name":null,"argumentValue":null},{"argument":"isNameValidText","name":null,"argumentValue":null}]},"references":[],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.7.8","testNumber":8}},{"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_1","clause":"6.2.6","testNumber":1}},{"object":"CosDocument","deferred":null,"tags":null,"description":"A file's name dictionary, as defined in PDF Reference 3.6.3, shall not contain the EmbeddedFiles key","test":"containsEmbeddedFiles == false","error":{"message":"The document contains embedded files (EmbeddedFiles key is present in the file's name dictionary)","arguments":[]},"references":[{"specification":"PDF 1.4 Reference","clause":"3.6.3"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.1.11","testNumber":2}},{"object":"ExtensionSchemaDefinition","deferred":null,"tags":null,"description":"Field 'valueType' of the PDF/A Schema value type in the PDF/A extension schema shall have type Seq ValueType and namespace prefix 'pdfaSchema'","test":"isValueTypeValidSeq == true && (valueTypePrefix == null || valueTypePrefix == \"pdfaSchema\")","error":{"message":"Field 'valueType' of the PDF/A Schema value type doesn't have prefix 'pdfaSchema' (valueType prefix = %1) or doesn't have type Seq ValueType (isValueTypeValidSeq = %2)","arguments":[{"argument":"valueTypePrefix","name":null,"argumentValue":null},{"argument":"isValueTypeValidSeq","name":null,"argumentValue":null}]},"references":[{"specification":"ISO 19005-1:2005/Cor.1:2007","clause":"6.7.8"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.7.8","testNumber":7}},{"object":"PDXImage","deferred":null,"tags":null,"description":"If an Image dictionary contains the BitsPerComponent key, its value shall be 1, 2, 4 or 8","test":"isMask == true || BitsPerComponent == null || BitsPerComponent == 1 || BitsPerComponent == 2 || BitsPerComponent == 4 || BitsPerComponent == 8","error":{"message":"The value of the BitsPerComponent key in the Image dictionary is %1","arguments":[{"argument":"BitsPerComponent","name":null,"argumentValue":null}]},"references":[{"specification":"PDF 1.4 Reference","clause":"4.8.4, Table 4.35"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.2.4","testNumber":4}},{"object":"PDDeviceN","deferred":null,"tags":null,"description":"Maximum number of DeviceN components is 8","test":"nrComponents <= 8","error":{"message":"Number of DeviceN components (%1) exceeded 8","arguments":[{"argument":"nrComponents","name":null,"argumentValue":null}]},"references":[{"specification":"PDF Reference 1.4","clause":"Table C.1"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.1.12","testNumber":9}},{"object":"PDGroup","deferred":null,"tags":null,"description":"A Group object with an S key with a value of Transparency shall not be included in a form XObject. A Group object with an S key with a value of Transparency shall not be included in a page dictionary","test":"S != \"Transparency\"","error":{"message":"A transparency group is present in a form XObject or page dictionary","arguments":[]},"references":[{"specification":"ISO 19005-1:2005/Cor.2:2011","clause":"6.4"}],"tagsSet":[],"ruleId":{"specification":"ISO_19005_1","clause":"6.4","testNumber":3}}],"variables":[{"name":"gOutputCS","object":"ICCOutputProfile","defaultValue":"null","value":"S == \"GTS_PDFA1\" ? colorSpace : gOutputCS"}],"pdfaflavour":"PDFA_1_A","hexSha1Digest":"","tags":[]}