diff --git a/PDF_UA/PDFUA-1.xml b/PDF_UA/PDFUA-1.xml index 89ddddbd..0b73af1e 100644 --- a/PDF_UA/PDFUA-1.xml +++ b/PDF_UA/PDFUA-1.xml @@ -9,7 +9,7 @@ The PDF/UA version and conformance level of a file shall be specified using the PDF/UA Identification extension schema - UAIdentification_size == 1 + containsPDFUAIdentification == true The document metadata stream doesn't contains PDF/UA Identification Schema @@ -153,7 +153,7 @@ The Catalog dictionary of a conforming file shall contain the Metadata key whose value is a metadata stream as defined in ISO 32000-1:2008, 14.3.2. The metadata stream dictionary shall contain entry Type with value /Metadata and entry Subtype with value /XML - metadata_size == 1 + containsMetadata == true 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 @@ -188,7 +188,7 @@ 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 ISO 32000-1:2008, 14.7 - StructTreeRoot_size == 1 + containsStructTreeRoot == true StructTreeRoot entry is not present in the document catalog @@ -212,7 +212,7 @@ Natural language in the Outline entries shall be determined - gSizeCatalogLang != 0 + gContainsCatalogLang == true Natural language in the Outline entries cannot be determined @@ -466,7 +466,7 @@ Natural language for text in ActualText attribute shall be determined - ActualText == null || Lang_size != 0 || parentLang != null || gSizeCatalogLang != 0 + ActualText == null || containsLang == true || parentLang != null || gContainsCatalogLang == true Natural language for text in ActualText attribute cannot be determined @@ -476,7 +476,7 @@ Natural language for text in Alt attribute shall be determined - Alt == null || Lang_size != 0 || parentLang != null || gSizeCatalogLang != 0 + Alt == null || containsLang == true || parentLang != null || gContainsCatalogLang == true Natural language for text in Alt attribute cannot be determined @@ -486,7 +486,7 @@ Natural language for text in E attribute shall be determined - E == null || Lang_size != 0 || parentLang != null || gSizeCatalogLang != 0 + E == null || containsLang == true || parentLang != null || gContainsCatalogLang == true Natural language for text in E attribute cannot be determined @@ -496,7 +496,7 @@ Natural language in the Contents entry for annotations shall be determined - Contents == null || Lang_size != 0 || gSizeCatalogLang != 0 + Contents == null || containsLang == true || gContainsCatalogLang == true Natural language in the Contents entry for annotations cannot be determined @@ -506,7 +506,7 @@ Natural language in the TU key for form fields shall be determined - TU == null || Lang_size != 0 || gSizeCatalogLang != 0 + TU == null || containsLang == true || gContainsCatalogLang == true Natural language in the TU key for form fields cannot be determined @@ -574,7 +574,7 @@ Natural language for text in ActualText attribute in Span Marked Content shall be determined - tag != 'Span' || ActualText == null || Lang != null || inheritedLang != null || gSizeCatalogLang != 0 + tag != 'Span' || ActualText == null || Lang != null || inheritedLang != null || gContainsCatalogLang == true Natural language for text in ActualText attribute in Span Marked Content cannot be determined @@ -584,7 +584,7 @@ Natural language for text in Alt attribute in Span Marked Content shall be determined - tag != 'Span' || Alt == null || Lang != null || inheritedLang != null || gSizeCatalogLang != 0 + tag != 'Span' || Alt == null || Lang != null || inheritedLang != null || gContainsCatalogLang == true Natural language for text in Alt attribute in Span Marked Content cannot be determined @@ -594,7 +594,7 @@ Natural language for text in E attribute in Span Marked Content shall be determined - tag != 'Span' || E == null || Lang != null || inheritedLang != null || gSizeCatalogLang != 0 + tag != 'Span' || E == null || Lang != null || inheritedLang != null || gContainsCatalogLang == true Natural language for text in E attribute in Span Marked Content cannot be determined @@ -604,7 +604,7 @@ Natural language for document metadata shall be determined - xDefault == false || gSizeCatalogLang != 0 + xDefault == false || gContainsCatalogLang == true Natural language for document metadata cannot be determined @@ -614,7 +614,7 @@ Natural language for text in page content shall be determined - gSizeCatalogLang != 0 || Lang != null + gContainsCatalogLang == true || Lang != null Natural language for text in page content cannot be determined @@ -958,7 +958,7 @@ Every page on which there is an annotation shall contain in its page dictionary the key Tabs, and its value shall be S - annots_size == 0 || Tabs == 'S' + containsAnnotations == false || Tabs == 'S' A page with annotation(s) contains Tabs key with value %1 instead of S @@ -1101,7 +1101,7 @@ ISO 32000-1:2008, 9.7.4, Table 117 requires that all embedded Type 2 CIDFonts in 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-1:2008, 9.7.4, Table 117 - Subtype != "CIDFontType2" || CIDToGIDMap != null || fontFile_size == 0 + Subtype != "CIDFontType2" || CIDToGIDMap != null || containsFontFile == false A Type 2 CIDFont dictionary has missing or invalid CIDToGIDMap entry @@ -1113,7 +1113,7 @@ All CMaps used within a PDF/UA file, except those listed in ISO 32000-1:2008, 9.7.5.2, Table 118, shall be embedded in that file as described in ISO 32000-1:2008, 9.7.5 - 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" || embeddedFile_size == 1 + 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 A non-standard CMap %1 is not embedded @@ -1154,7 +1154,7 @@ The font programs for all fonts used for rendering within a conforming file shall be embedded within that file, as defined in ISO 32000-1:2008, 9.9 - Subtype == "Type3" || Subtype == "Type0" || renderingMode == 3 || fontFile_size == 1 + Subtype == "Type3" || Subtype == "Type0" || renderingMode == 3 || containsFontFile == true The font program is not embedded @@ -1179,7 +1179,7 @@ If the FontDescriptor dictionary of an embedded Type 1 font contains a CharSet string, then it shall list the character names of all glyphs present in the font program, regardless of whether a glyph in the font is referenced or used by the PDF or not - fontFile_size == 0 || fontName.search(/[A-Z]{6}\+/) != 0 || CharSet == null || charSetListsAllGlyphs == true + containsFontFile == false || fontName.search(/[A-Z]{6}\+/) != 0 || CharSet == null || charSetListsAllGlyphs == true A CharSet entry in the Descriptor dictionary of a Type1 font incorrectly lists glyphs present in the font program @@ -1189,7 +1189,7 @@ If the FontDescriptor dictionary of an embedded CID font contains a CIDSet stream, then it shall identify all CIDs which are present in the font program, regardless of whether a CID in the font is referenced or used by the PDF or not - fontFile_size == 0 || fontName.search(/[A-Z]{6}\+/) != 0 || containsCIDSet == false || cidSetListsAllGlyphs == true + containsFontFile == false || fontName.search(/[A-Z]{6}\+/) != 0 || containsCIDSet == false || cidSetListsAllGlyphs == true A CIDSet entry in the Font descriptor does not correctly identify all glyphs present in the embedded font subset @@ -1289,9 +1289,9 @@ - - 0 - Lang_size + + false + containsLang false diff --git a/PDF_UA/PDFUA-2-ISO32005.xml b/PDF_UA/PDFUA-2-ISO32005.xml index fc64cb15..4be11379 100644 --- a/PDF_UA/PDFUA-2-ISO32005.xml +++ b/PDF_UA/PDFUA-2-ISO32005.xml @@ -9,7 +9,7 @@ The PDF/UA version of a file shall be specified in the value of the Metadata entry in the document catalog using the PDF/UA identification schema - UAIdentification_size == 1 + containsPDFUAIdentification == true The document metadata stream doesn't contains PDF/UA Identification Schema @@ -67,7 +67,7 @@ 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 ISO 32000-2:2020, 14.7 - StructTreeRoot_size == 1 + containsStructTreeRoot == true StructTreeRoot entry is not present in the document catalog @@ -482,7 +482,7 @@ The default natural language for content and text strings shall be specified using the Lang entry, with a non-empty value, in the catalog dictionary - Lang_size > 0 + containsLang == true Catalog dictionary does not contain Lang entry @@ -524,7 +524,7 @@ All embedded Type 2 CIDFonts in 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, Table 115 - Subtype != "CIDFontType2" || CIDToGIDMap != null || fontFile_size == 0 + Subtype != "CIDFontType2" || CIDToGIDMap != null || containsFontFile == false A Type 2 CIDFont dictionary has missing or invalid CIDToGIDMap entry @@ -536,7 +536,7 @@ All CMaps used within a file that conforms to PDF/UA-2, except those listed in ISO 32000-2:2020, Table 116, shall be embedded in that file, as described in ISO 32000-2:2020, 9.7.5 - 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" || embeddedFile_size == 1 + 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 A non-standard CMap %1 is not embedded @@ -577,7 +577,7 @@ 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 - Subtype == "Type3" || Subtype == "Type0" || renderingMode == 3 || fontFile_size == 1 + Subtype == "Type3" || Subtype == "Type0" || renderingMode == 3 || containsFontFile == true The font program is not embedded @@ -971,7 +971,7 @@ Every page that includes an annotation shall contain a Tabs entry in its page dictionary in accordance with ISO 32000-2:2020, Table 31, and its value shall be A, W or S - annots_size == 0 || Tabs == 'A' || Tabs == 'W' || Tabs == 'S' + containsAnnotations == false || Tabs == 'A' || Tabs == 'W' || Tabs == 'S' A page with annotation(s) contains Tabs key with value %1 instead of A, W or S @@ -1093,7 +1093,7 @@ The 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. The metadata stream dictionary shall contain entry Type with value /Metadata and entry Subtype with value /XML - metadata_size == 1 + containsMetadata == true 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 diff --git a/PDF_UA/PDFUA-2.xml b/PDF_UA/PDFUA-2.xml index ffc7bc54..ddbaa18f 100644 --- a/PDF_UA/PDFUA-2.xml +++ b/PDF_UA/PDFUA-2.xml @@ -9,7 +9,7 @@ The PDF/UA version of a file shall be specified in the value of the Metadata entry in the document catalog using the PDF/UA identification schema - UAIdentification_size == 1 + containsPDFUAIdentification == true The document metadata stream doesn't contains PDF/UA Identification Schema @@ -67,7 +67,7 @@ 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 ISO 32000-2:2020, 14.7 - StructTreeRoot_size == 1 + containsStructTreeRoot == true StructTreeRoot entry is not present in the document catalog @@ -482,7 +482,7 @@ The default natural language for content and text strings shall be specified using the Lang entry, with a non-empty value, in the catalog dictionary - Lang_size > 0 + containsLang == true Catalog dictionary does not contain Lang entry @@ -524,7 +524,7 @@ All embedded Type 2 CIDFonts in 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, Table 115 - Subtype != "CIDFontType2" || CIDToGIDMap != null || fontFile_size == 0 + Subtype != "CIDFontType2" || CIDToGIDMap != null || containsFontFile == false A Type 2 CIDFont dictionary has missing or invalid CIDToGIDMap entry @@ -536,7 +536,7 @@ All CMaps used within a file that conforms to PDF/UA-2, except those listed in ISO 32000-2:2020, Table 116, shall be embedded in that file, as described in ISO 32000-2:2020, 9.7.5 - 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" || embeddedFile_size == 1 + 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 A non-standard CMap %1 is not embedded @@ -577,7 +577,7 @@ 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 - Subtype == "Type3" || Subtype == "Type0" || renderingMode == 3 || fontFile_size == 1 + Subtype == "Type3" || Subtype == "Type0" || renderingMode == 3 || containsFontFile == true The font program is not embedded @@ -971,7 +971,7 @@ Every page that includes an annotation shall contain a Tabs entry in its page dictionary in accordance with ISO 32000-2:2020, Table 31, and its value shall be A, W or S - annots_size == 0 || Tabs == 'A' || Tabs == 'W' || Tabs == 'S' + containsAnnotations == false || Tabs == 'A' || Tabs == 'W' || Tabs == 'S' A page with annotation(s) contains Tabs key with value %1 instead of A, W or S @@ -1093,7 +1093,7 @@ The 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. The metadata stream dictionary shall contain entry Type with value /Metadata and entry Subtype with value /XML - metadata_size == 1 + containsMetadata == true 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 diff --git a/PDF_UA/WCAG-2-2-Complete.xml b/PDF_UA/WCAG-2-2-Complete.xml index f5fa7df6..1dc6150d 100644 --- a/PDF_UA/WCAG-2-2-Complete.xml +++ b/PDF_UA/WCAG-2-2-Complete.xml @@ -95,7 +95,7 @@ The Catalog dictionary of a conforming file shall contain the Metadata key whose value is a metadata stream as defined in ISO 32000-1:2008, 14.3.2. The metadata stream dictionary shall contain entry Type with value /Metadata and entry Subtype with value /XML - metadata_size == 1 + containsMetadata == true 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 @@ -130,7 +130,7 @@ 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 ISO 32000-1:2008, 14.7 - StructTreeRoot_size == 1 + containsStructTreeRoot == true StructTreeRoot entry is not present in the document catalog @@ -154,7 +154,7 @@ Natural language in the Outline entries shall be determined - gSizeCatalogLang != 0 + gContainsCatalogLang == true Natural language in the Outline entries cannot be determined @@ -450,7 +450,7 @@ Natural language for text in ActualText attribute shall be determined - ActualText == null || Lang_size != 0 || parentLang != null || gSizeCatalogLang != 0 + ActualText == null || containsLang == true || parentLang != null || gContainsCatalogLang == true Natural language for text in ActualText attribute cannot be determined @@ -460,7 +460,7 @@ Natural language for text in Alt attribute shall be determined - Alt == null || Lang_size != 0 || parentLang != null || gSizeCatalogLang != 0 + Alt == null || containsLang == true || parentLang != null || gContainsCatalogLang == true Natural language for text in Alt attribute cannot be determined @@ -470,7 +470,7 @@ Natural language for text in E attribute shall be determined - E == null || Lang_size != 0 || parentLang != null || gSizeCatalogLang != 0 + E == null || containsLang == true || parentLang != null || gContainsCatalogLang == true Natural language for text in E attribute cannot be determined @@ -480,7 +480,7 @@ Natural language in the Contents entry for annotations shall be determined - Contents == null || Lang_size != 0 || gSizeCatalogLang != 0 + Contents == null || containsLang == true || gContainsCatalogLang == true Natural language in the Contents entry for annotations cannot be determined @@ -490,7 +490,7 @@ Natural language in the TU key for form fields shall be determined - TU == null || Lang_size != 0 || gSizeCatalogLang != 0 + TU == null || containsLang == true || gContainsCatalogLang == true Natural language in the TU key for form fields cannot be determined @@ -564,7 +564,7 @@ Natural language for text in ActualText attribute in Span Marked Content shall be determined - tag != 'Span' || ActualText == null || Lang != null || inheritedLang != null || gSizeCatalogLang != 0 + tag != 'Span' || ActualText == null || Lang != null || inheritedLang != null || gContainsCatalogLang == true Natural language for text in ActualText attribute in Span Marked Content cannot be determined @@ -574,7 +574,7 @@ Natural language for text in Alt attribute in Span Marked Content shall be determined - tag != 'Span' || Alt == null || Lang != null || inheritedLang != null || gSizeCatalogLang != 0 + tag != 'Span' || Alt == null || Lang != null || inheritedLang != null || gContainsCatalogLang == true Natural language for text in Alt attribute in Span Marked Content cannot be determined @@ -584,7 +584,7 @@ Natural language for text in E attribute in Span Marked Content shall be determined - tag != 'Span' || E == null || Lang != null || inheritedLang != null || gSizeCatalogLang != 0 + tag != 'Span' || E == null || Lang != null || inheritedLang != null || gContainsCatalogLang == true Natural language for text in E attribute in Span Marked Content cannot be determined @@ -594,7 +594,7 @@ Natural language for document metadata shall be determined - xDefault == false || gSizeCatalogLang != 0 + xDefault == false || gContainsCatalogLang == true Natural language for document metadata cannot be determined @@ -604,7 +604,7 @@ Natural language for text in page content shall be determined - gSizeCatalogLang != 0 || Lang != null + gContainsCatalogLang == true || Lang != null Natural language for text in page content cannot be determined @@ -944,7 +944,7 @@ Every page on which there is an annotation shall contain in its page dictionary the key Tabs, and its value shall be S - annots_size == 0 || Tabs == 'S' + containsAnnotations == false || Tabs == 'S' A page with annotation(s) contains Tabs key with value %1 instead of S @@ -1075,7 +1075,7 @@ ISO 32000-1:2008, 9.7.4, Table 117 requires that all embedded Type 2 CIDFonts in 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-1:2008, 9.7.4, Table 117 - Subtype != "CIDFontType2" || CIDToGIDMap != null || fontFile_size == 0 + Subtype != "CIDFontType2" || CIDToGIDMap != null || containsFontFile == false A Type 2 CIDFont dictionary has missing or invalid CIDToGIDMap entry @@ -1087,7 +1087,7 @@ All CMaps used within a PDF/UA file, except those listed in ISO 32000-1:2008, 9.7.5.2, Table 118, shall be embedded in that file as described in ISO 32000-1:2008, 9.7.5 - 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" || embeddedFile_size == 1 + 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 A non-standard CMap %1 is not embedded @@ -1128,7 +1128,7 @@ The font programs for all fonts used for rendering within a conforming file shall be embedded within that file, as defined in ISO 32000-1:2008, 9.9 - Subtype == "Type3" || Subtype == "Type0" || renderingMode == 3 || fontFile_size == 1 + Subtype == "Type3" || Subtype == "Type0" || renderingMode == 3 || containsFontFile == true The font program is not embedded @@ -1153,7 +1153,7 @@ If the FontDescriptor dictionary of an embedded Type 1 font contains a CharSet string, then it shall list the character names of all glyphs present in the font program, regardless of whether a glyph in the font is referenced or used by the PDF or not - fontFile_size == 0 || fontName.search(/[A-Z]{6}\+/) != 0 || CharSet == null || charSetListsAllGlyphs == true + containsFontFile == false || fontName.search(/[A-Z]{6}\+/) != 0 || CharSet == null || charSetListsAllGlyphs == true A CharSet entry in the Descriptor dictionary of a Type1 font incorrectly lists glyphs present in the font program @@ -1163,7 +1163,7 @@ If the FontDescriptor dictionary of an embedded CID font contains a CIDSet stream, then it shall identify all CIDs which are present in the font program, regardless of whether a CID in the font is referenced or used by the PDF or not - fontFile_size == 0 || fontName.search(/[A-Z]{6}\+/) != 0 || containsCIDSet == false || cidSetListsAllGlyphs == true + containsFontFile == false || fontName.search(/[A-Z]{6}\+/) != 0 || containsCIDSet == false || cidSetListsAllGlyphs == true A CIDSet entry in the Font descriptor does not correctly identify all glyphs present in the embedded font subset @@ -2057,14 +2057,14 @@ + + false + containsLang + null mostCommonOrientation - - 0 - Lang_size - false true diff --git a/PDF_UA/WCAG-2-2-Machine.xml b/PDF_UA/WCAG-2-2-Machine.xml index 42bfdf78..6e4a1ee0 100644 --- a/PDF_UA/WCAG-2-2-Machine.xml +++ b/PDF_UA/WCAG-2-2-Machine.xml @@ -95,7 +95,7 @@ The Catalog dictionary of a conforming file shall contain the Metadata key whose value is a metadata stream as defined in ISO 32000-1:2008, 14.3.2. The metadata stream dictionary shall contain entry Type with value /Metadata and entry Subtype with value /XML - metadata_size == 1 + containsMetadata == true 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 @@ -130,7 +130,7 @@ 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 ISO 32000-1:2008, 14.7 - StructTreeRoot_size == 1 + containsStructTreeRoot == true StructTreeRoot entry is not present in the document catalog @@ -154,7 +154,7 @@ Natural language in the Outline entries shall be determined - gSizeCatalogLang != 0 + gContainsCatalogLang == true Natural language in the Outline entries cannot be determined @@ -450,7 +450,7 @@ Natural language for text in ActualText attribute shall be determined - ActualText == null || Lang_size != 0 || parentLang != null || gSizeCatalogLang != 0 + ActualText == null || containsLang == true || parentLang != null || gContainsCatalogLang == true Natural language for text in ActualText attribute cannot be determined @@ -460,7 +460,7 @@ Natural language for text in Alt attribute shall be determined - Alt == null || Lang_size != 0 || parentLang != null || gSizeCatalogLang != 0 + Alt == null || containsLang == true || parentLang != null || gContainsCatalogLang == true Natural language for text in Alt attribute cannot be determined @@ -470,7 +470,7 @@ Natural language for text in E attribute shall be determined - E == null || Lang_size != 0 || parentLang != null || gSizeCatalogLang != 0 + E == null || containsLang == true || parentLang != null || gContainsCatalogLang == true Natural language for text in E attribute cannot be determined @@ -480,7 +480,7 @@ Natural language in the Contents entry for annotations shall be determined - Contents == null || Lang_size != 0 || gSizeCatalogLang != 0 + Contents == null || containsLang == true || gContainsCatalogLang == true Natural language in the Contents entry for annotations cannot be determined @@ -490,7 +490,7 @@ Natural language in the TU key for form fields shall be determined - TU == null || Lang_size != 0 || gSizeCatalogLang != 0 + TU == null || containsLang == true || gContainsCatalogLang == true Natural language in the TU key for form fields cannot be determined @@ -564,7 +564,7 @@ Natural language for text in ActualText attribute in Span Marked Content shall be determined - tag != 'Span' || ActualText == null || Lang != null || inheritedLang != null || gSizeCatalogLang != 0 + tag != 'Span' || ActualText == null || Lang != null || inheritedLang != null || gContainsCatalogLang == true Natural language for text in ActualText attribute in Span Marked Content cannot be determined @@ -574,7 +574,7 @@ Natural language for text in Alt attribute in Span Marked Content shall be determined - tag != 'Span' || Alt == null || Lang != null || inheritedLang != null || gSizeCatalogLang != 0 + tag != 'Span' || Alt == null || Lang != null || inheritedLang != null || gContainsCatalogLang == true Natural language for text in Alt attribute in Span Marked Content cannot be determined @@ -584,7 +584,7 @@ Natural language for text in E attribute in Span Marked Content shall be determined - tag != 'Span' || E == null || Lang != null || inheritedLang != null || gSizeCatalogLang != 0 + tag != 'Span' || E == null || Lang != null || inheritedLang != null || gContainsCatalogLang == true Natural language for text in E attribute in Span Marked Content cannot be determined @@ -594,7 +594,7 @@ Natural language for document metadata shall be determined - xDefault == false || gSizeCatalogLang != 0 + xDefault == false || gContainsCatalogLang == true Natural language for document metadata cannot be determined @@ -604,7 +604,7 @@ Natural language for text in page content shall be determined - gSizeCatalogLang != 0 || Lang != null + gContainsCatalogLang == true || Lang != null Natural language for text in page content cannot be determined @@ -944,7 +944,7 @@ Every page on which there is an annotation shall contain in its page dictionary the key Tabs, and its value shall be S - annots_size == 0 || Tabs == 'S' + containsAnnotations == false || Tabs == 'S' A page with annotation(s) contains Tabs key with value %1 instead of S @@ -1075,7 +1075,7 @@ ISO 32000-1:2008, 9.7.4, Table 117 requires that all embedded Type 2 CIDFonts in 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-1:2008, 9.7.4, Table 117 - Subtype != "CIDFontType2" || CIDToGIDMap != null || fontFile_size == 0 + Subtype != "CIDFontType2" || CIDToGIDMap != null || containsFontFile == false A Type 2 CIDFont dictionary has missing or invalid CIDToGIDMap entry @@ -1087,7 +1087,7 @@ All CMaps used within a PDF/UA file, except those listed in ISO 32000-1:2008, 9.7.5.2, Table 118, shall be embedded in that file as described in ISO 32000-1:2008, 9.7.5 - 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" || embeddedFile_size == 1 + 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 A non-standard CMap %1 is not embedded @@ -1128,7 +1128,7 @@ The font programs for all fonts used for rendering within a conforming file shall be embedded within that file, as defined in ISO 32000-1:2008, 9.9 - Subtype == "Type3" || Subtype == "Type0" || renderingMode == 3 || fontFile_size == 1 + Subtype == "Type3" || Subtype == "Type0" || renderingMode == 3 || containsFontFile == true The font program is not embedded @@ -1153,7 +1153,7 @@ If the FontDescriptor dictionary of an embedded Type 1 font contains a CharSet string, then it shall list the character names of all glyphs present in the font program, regardless of whether a glyph in the font is referenced or used by the PDF or not - fontFile_size == 0 || fontName.search(/[A-Z]{6}\+/) != 0 || CharSet == null || charSetListsAllGlyphs == true + containsFontFile == false || fontName.search(/[A-Z]{6}\+/) != 0 || CharSet == null || charSetListsAllGlyphs == true A CharSet entry in the Descriptor dictionary of a Type1 font incorrectly lists glyphs present in the font program @@ -1163,7 +1163,7 @@ If the FontDescriptor dictionary of an embedded CID font contains a CIDSet stream, then it shall identify all CIDs which are present in the font program, regardless of whether a CID in the font is referenced or used by the PDF or not - fontFile_size == 0 || fontName.search(/[A-Z]{6}\+/) != 0 || containsCIDSet == false || cidSetListsAllGlyphs == true + containsFontFile == false || fontName.search(/[A-Z]{6}\+/) != 0 || containsCIDSet == false || cidSetListsAllGlyphs == true A CIDSet entry in the Font descriptor does not correctly identify all glyphs present in the embedded font subset @@ -1433,14 +1433,14 @@ + + false + containsLang + null mostCommonOrientation - - 0 - Lang_size - false true diff --git a/PDF_UA/WTPDF-1-0-Accessibility.xml b/PDF_UA/WTPDF-1-0-Accessibility.xml index 06cf6445..77385e62 100644 --- a/PDF_UA/WTPDF-1-0-Accessibility.xml +++ b/PDF_UA/WTPDF-1-0-Accessibility.xml @@ -19,7 +19,7 @@ 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 ISO 32000-2:2020, 14.7 - StructTreeRoot_size == 1 + containsStructTreeRoot == true StructTreeRoot entry is not present in the document catalog @@ -434,7 +434,7 @@ The default natural language for content and text strings shall be specified using the Lang entry, with a non-empty value, in the catalog dictionary - Lang_size > 0 + containsLang == true Catalog dictionary does not contain Lang entry @@ -476,7 +476,7 @@ All embedded Type 2 CIDFonts in 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, Table 115 - Subtype != "CIDFontType2" || CIDToGIDMap != null || fontFile_size == 0 + Subtype != "CIDFontType2" || CIDToGIDMap != null || containsFontFile == false A Type 2 CIDFont dictionary has missing or invalid CIDToGIDMap entry @@ -488,7 +488,7 @@ All CMaps used within a file that conforms to WTPDF 1.0, except those listed in ISO 32000-2:2020, Table 116, shall be embedded in that file, as described in ISO 32000-2:2020, 9.7.5 - 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" || embeddedFile_size == 1 + 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 A non-standard CMap %1 is not embedded @@ -529,7 +529,7 @@ 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 - Subtype == "Type3" || Subtype == "Type0" || renderingMode == 3 || fontFile_size == 1 + Subtype == "Type3" || Subtype == "Type0" || renderingMode == 3 || containsFontFile == true The font program is not embedded @@ -923,7 +923,7 @@ Every page that includes an annotation shall contain a Tabs entry in its page dictionary in accordance with ISO 32000-2:2020, Table 31, and its value shall be A, W or S - annots_size == 0 || Tabs == 'A' || Tabs == 'W' || Tabs == 'S' + containsAnnotations == false || Tabs == 'A' || Tabs == 'W' || Tabs == 'S' A page with annotation(s) contains Tabs key with value %1 instead of A, W or S @@ -1045,7 +1045,7 @@ The 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. The metadata stream dictionary shall contain entry Type with value /Metadata and entry Subtype with value /XML - metadata_size == 1 + containsMetadata == true 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 @@ -20972,7 +20972,7 @@ 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 ISO 32000-2:2020, 14.7 - StructTreeRoot_size == 1 + containsStructTreeRoot == true StructTreeRoot entry is not present in the document catalog diff --git a/PDF_UA/WTPDF-1-0-Reuse.xml b/PDF_UA/WTPDF-1-0-Reuse.xml index ae27665d..e5498d2f 100644 --- a/PDF_UA/WTPDF-1-0-Reuse.xml +++ b/PDF_UA/WTPDF-1-0-Reuse.xml @@ -19,7 +19,7 @@ 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 ISO 32000-2:2020, 14.7 - StructTreeRoot_size == 1 + containsStructTreeRoot == true StructTreeRoot entry is not present in the document catalog @@ -380,7 +380,7 @@ The default natural language for content and text strings shall be specified using the Lang entry, with a non-empty value, in the catalog dictionary - Lang_size > 0 + containsLang == true Catalog dictionary does not contain Lang entry @@ -422,7 +422,7 @@ All embedded Type 2 CIDFonts in 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, Table 115 - Subtype != "CIDFontType2" || CIDToGIDMap != null || fontFile_size == 0 + Subtype != "CIDFontType2" || CIDToGIDMap != null || containsFontFile == false A Type 2 CIDFont dictionary has missing or invalid CIDToGIDMap entry @@ -434,7 +434,7 @@ All CMaps used within a file that conforms to WTPDF 1.0, except those listed in ISO 32000-2:2020, Table 116, shall be embedded in that file, as described in ISO 32000-2:2020, 9.7.5 - 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" || embeddedFile_size == 1 + 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 A non-standard CMap %1 is not embedded @@ -475,7 +475,7 @@ 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 - Subtype == "Type3" || Subtype == "Type0" || renderingMode == 3 || fontFile_size == 1 + Subtype == "Type3" || Subtype == "Type0" || renderingMode == 3 || containsFontFile == true The font program is not embedded @@ -787,7 +787,7 @@ Every page that includes an annotation shall contain a Tabs entry in its page dictionary in accordance with ISO 32000-2:2020, Table 31, and its value shall be A, W or S - annots_size == 0 || Tabs == 'A' || Tabs == 'W' || Tabs == 'S' + containsAnnotations == false || Tabs == 'A' || Tabs == 'W' || Tabs == 'S' A page with annotation(s) contains Tabs key with value %1 instead of A, W or S @@ -909,7 +909,7 @@ The 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. The metadata stream dictionary shall contain entry Type with value /Metadata and entry Subtype with value /XML - metadata_size == 1 + containsMetadata == true 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 @@ -20821,7 +20821,7 @@ 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 ISO 32000-2:2020, 14.7 - StructTreeRoot_size == 1 + containsStructTreeRoot == true StructTreeRoot entry is not present in the document catalog