PDF/UA-1 validation profile
Validation rules against ISO 14289-1:2014
The PDF/UA version and conformance level of a file shall be specified using the PDF/UA Identification extension schema
containsPDFUAIdentification == true
The document metadata stream doesn't contain PDF/UA Identification Schema
The value of "pdfuaid:part" shall be the part number of the International Standard to which the file conforms
part == 1
The "part" property of the PDF/UA Identification Schema is %1 instead of 1 for PDF/UA-1 conforming file
part
Property "part" of the PDF/UA Identification Schema shall have namespace prefix "pdfuaid"
partPrefix == null || partPrefix == "pdfuaid"
Property "part" of the PDF/UA Identification Schema has invalid namespace prefix %1
partPrefix
Property "amd" of the PDF/UA Identification Schema shall have namespace prefix "pdfuaid"
amdPrefix == null || amdPrefix == "pdfuaid"
Property "amd" of the PDF/UA Identification Schema has invalid namespace prefix %1
amdPrefix
Property "corr" of the PDF/UA Identification Schema shall have namespace prefix "pdfuaid"
corrPrefix == null || corrPrefix == "pdfuaid"
Property "corr" of the PDF/UA Identification Schema has invalid namespace prefix %1
corrPrefix
The file header shall consist of "%PDF-1.n" followed by a single EOL marker, where 'n' is a single digit number between 0 (30h) and 7 (37h)
/^%PDF-1\.[0-7]$/.test(header)
File header %1 does not match the pattern %PDF-1.n, where 'n' is a single digit number between 0 and 7
header
The document catalog dictionary shall include a MarkInfo dictionary containing an entry, Marked, whose value shall be true
Marked == true
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)
MarkInfo
Marked
Content marked as Artifact should not be present inside tagged content
tag != 'Artifact' || isTaggedContent == false
Content marked as Artifact is present inside tagged content (parent struct element %1)
parentStructureElementObjectKey
Tagged content should not be present inside content marked as Artifact
isTaggedContent == false || parentsTags.contains('Artifact') == false
Tagged content (parent struct element %1) is present inside content marked as Artifact
parentStructureElementObjectKey
Content shall be marked as Artifact or tagged as real content
isTaggedContent == true || parentsTags.contains('Artifact') == true
Content is neither marked as Artifact nor tagged as real content
Files shall have a Suspects value of false(ISO 32000-1:2008, Table 321)
Suspects != true
Suspects entry has a value of true
All non-standard structure types shall be mapped to the nearest functionally equivalent standard type, as defined in ISO 32000-1:2008, 14.8.4, in the role map dictionary of the structure tree root. This mapping may be indirect; within the role map a non-standard type can map directly to another non-standard type, but eventually the mapping shall terminate at a standard type
isNotMappedToStandardType == false
Non-standard structure type %1 is not mapped to a standard type
valueS
A circular mapping shall not exist
circularMappingExist != true
A circular mapping exists for %1 structure type
valueS
Standard tags defined in ISO 32000-1:2008, 14.8.4, shall not be remapped
remappedStandardType == null
Standard type %1 is remapped
remappedStandardType
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
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
The Metadata stream in the document's catalog dictionary shall contain a dc:title entry, where dc is the recommended prefix for the Dublin Core metadata schema as defined in the XMP specification, which clearly identifies the document
dc_title != null
Metadata stream does not contain dc:title
The document catalog dictionary shall include a ViewerPreferences dictionary containing a DisplayDocTitle key, whose value shall be true
DisplayDocTitle == true
ViewerPreferences dictionary is not present in the document Catalog, or DisplayDocTitle key is set to false or is not present in the ViewerPreferences dictionary (ViewerPreferences = %1, DisplayDocTitle = %2)
ViewerPreferences
DisplayDocTitle
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
containsStructTreeRoot == true
StructTreeRoot entry is not present in the document catalog
A structure element dictionary shall contain the P (parent) entry according to ISO 32000-1:2008, 14.7.2, Table 355
containsParent == true
A structure element dictionary does not contain the P (parent) entry
Natural language in the Outline entries shall be determined
gContainsCatalogLang == true
Natural language in the Outline entries cannot be determined
Table element may contain only TR, THead, TBody, TFoot and Caption elements
kidsStandardTypes.split('&').filter(elem => elem != 'TR' && elem != 'THead' && elem != 'TBody' && elem != 'TFoot' && elem != 'Caption').length == 0 || kidsStandardTypes == ''
Table element contains %1 element(s) instead of TR, THead, TBody, TFoot or Caption
kidsStandardTypes.split('&').filter(elem => elem != 'TR' && elem != 'THead'
&& elem != 'TBody' && elem != 'TFoot' && elem != 'Caption').toString()
TR element should be contained in Table, THead, TBody or TFoot element
/^(Table|THead|TBody|TFoot)$/.test(parentStandardType)
TR element contained in %1 instead of Table, THead, TBody or TFoot element
parentStandardType
THead element should be contained in Table element
parentStandardType == 'Table'
THead element contained in %1 instead of Table element
parentStandardType
TBody element should be contained in Table element
parentStandardType == 'Table'
TBody element contained in %1 instead of Table element
parentStandardType
TFoot element should be contained in Table element
parentStandardType == 'Table'
TFoot element contained in %1 instead of Table element
parentStandardType
TH element should be contained in TR element
parentStandardType == 'TR'
TH element contained in %1 instead of TR element
parentStandardType
TD element should be contained in TR element
parentStandardType == 'TR'
TD element contained in %1 instead of TR element
parentStandardType
TR element may contain only TH and TD elements
/^(TH|TD)(&(TH|TD))*$/.test(kidsStandardTypes) || kidsStandardTypes == ''
TR element contains %1 element(s) instead of TH or TD
kidsStandardTypes.split('&').filter(elem => elem != 'TD' && elem != 'TH').toString()
Table element should contain zero or one THead kid
kidsStandardTypes.split('&').filter(elem => elem == 'THead').length <= 1
Table element contains more than one THead kid
Table element should contain zero or one TFoot kid
kidsStandardTypes.split('&').filter(elem => elem == 'TFoot').length <= 1
Table element contains more than one TFoot kid
If Table element contains TFoot kid, Table element should contain one or more TBody kids
kidsStandardTypes.split('&').filter(elem => elem == 'TFoot').length == 0 || kidsStandardTypes.split('&').filter(elem => elem == 'TBody').length > 0
Table element contains TFoot kid, but does not contain TBody kids
If Table element contains THead kid, Table element should contain one or more TBody kids
kidsStandardTypes.split('&').filter(elem => elem == 'THead').length == 0 || kidsStandardTypes.split('&').filter(elem => elem == 'TBody').length > 0
Table element contains THead kid, but does not contain TBody kids
A table cell shall not have intersection with other cells
hasIntersection != true
Table cell has intersection with other cells
Table element may contain a Caption element as its first or last kid
kidsStandardTypes.indexOf('&Caption&') < 0
Table element contains Caption as its %1 child instead of first or last one
kidsStandardTypes.split('&').slice(1).findIndex(elem => elem == 'Caption') + 2
LI element should be contained in L element
parentStandardType == 'L'
LI element contained in %1 instead of L element
parentStandardType
LBody element should be contained in LI element
parentStandardType == 'LI'
LBody element contained in %1 instead of LI element
parentStandardType
L element may contain only L, LI and Caption elements
kidsStandardTypes.split('&').filter(elem => elem != 'L' && elem != 'LI' && elem != 'Caption').length == 0 || kidsStandardTypes == ''
L element contains %1 element(s) instead of L, LI or Caption
kidsStandardTypes.split('&').filter(elem => elem != 'L' && elem != 'LI'
&& elem != 'Caption').toString()
LI element may contain only Lbl and LBody elements
/^(Lbl|LBody)(&(Lbl|LBody))*$/.test(kidsStandardTypes) || kidsStandardTypes == ''
LI element contains %1 element(s) instead of Lbl or LBody
kidsStandardTypes.split('&').filter(elem => elem != 'LBody' && elem != 'Lbl').toString()
Natural language for text in ActualText attribute shall be determined
ActualText == null || containsLang == true || parentLang != null || gContainsCatalogLang == true
Natural language for text in ActualText attribute cannot be determined
Natural language for text in Alt attribute shall be determined
Alt == null || containsLang == true || parentLang != null || gContainsCatalogLang == true
Natural language for text in Alt attribute cannot be determined
Natural language for text in E attribute shall be determined
E == null || containsLang == true || parentLang != null || gContainsCatalogLang == true
Natural language for text in E attribute cannot be determined
Natural language in the Contents entry for annotations shall be determined
Contents == null || containsLang == true || gContainsCatalogLang == true
Natural language in the Contents entry for annotations cannot be determined
Natural language in the TU key for form fields shall be determined
TU == null || containsLang == true || gContainsCatalogLang == true
Natural language in the TU key for form fields cannot be determined
TOCI element should be contained in TOC element
parentStandardType == 'TOC'
TOCI element contained in %1 instead of TOC element
parentStandardType
TOC element may contain only TOC, TOCI and Caption elements
kidsStandardTypes.split('&').filter(elem => elem != 'TOC' && elem != 'TOCI' && elem != 'Caption').length == 0 || kidsStandardTypes == ''
TOC element contains %1 element(s) instead of TOC, TOCI or Caption
kidsStandardTypes.split('&').filter(elem => elem != 'TOC' && elem != 'TOCI'
&& elem != 'Caption').toString()
TOC element may contain a Caption element only as its first kid
kidsStandardTypes == '' || kidsStandardTypes.split('&').slice(1).findIndex(elem => elem == 'Caption') < 0
TOC element contains Caption as its %1 child instead of first one
kidsStandardTypes.split('&').slice(1).findIndex(elem => elem == 'Caption') + 2
If the Lang entry is present in the document's Catalog dictionary or in a structure element dictionary or property list, its value shall be a language identifier as described in ISO 32000-1:2008, 14.9.2. A language identifier shall be a Language-Tag as defined in RFC 3066, Tags for the Identification of Languages
/^[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*$/.test(unicodeValue)
Value %1 of the Lang entry is not a Language-Tag
unicodeValue
Natural language for text in ActualText attribute in Span Marked Content shall be determined
tag != 'Span' || ActualText == null || Lang != null || inheritedLang != null || gContainsCatalogLang == true
Natural language for text in ActualText attribute in Span Marked Content cannot be determined
Natural language for text in Alt attribute in Span Marked Content shall be determined
tag != 'Span' || Alt == null || Lang != null || inheritedLang != null || gContainsCatalogLang == true
Natural language for text in Alt attribute in Span Marked Content cannot be determined
Natural language for text in E attribute in Span Marked Content shall be determined
tag != 'Span' || E == null || Lang != null || inheritedLang != null || gContainsCatalogLang == true
Natural language for text in E attribute in Span Marked Content cannot be determined
Natural language for document metadata shall be determined
xDefault == false || gContainsCatalogLang == true
Natural language for document metadata cannot be determined
Natural language for text in page content shall be determined
gContainsCatalogLang == true || Lang != null
Natural language for text in page content cannot be determined
THead element may contain only TR elements
kidsStandardTypes.split('&').filter(elem => elem != 'TR').length == 0 || kidsStandardTypes == ''
THead element contains %1 element(s) instead of TR
kidsStandardTypes.split('&').filter(elem => elem != 'TR').toString()
TBody element may contain only TR elements
kidsStandardTypes.split('&').filter(elem => elem != 'TR').length == 0 || kidsStandardTypes == ''
TBody element contains %1 element(s) instead of TR
kidsStandardTypes.split('&').filter(elem => elem != 'TR').toString()
TFoot element may contain only TR elements
kidsStandardTypes.split('&').filter(elem => elem != 'TR').length == 0 || kidsStandardTypes == ''
TFoot element contains %1 element(s) instead of TR
kidsStandardTypes.split('&').filter(elem => elem != 'TR').toString()
Table element may contain only one Caption element
kidsStandardTypes.split('&').filter(elem => elem == 'Caption').length < 2
Table element contains %1 Caption elements instead of one
kidsStandardTypes.split('&').filter(elem => elem == 'Caption').length
L element may contain a Caption element only as its first kid
kidsStandardTypes == '' || kidsStandardTypes.split('&').slice(1).findIndex(elem => elem == 'Caption') < 0
L element contains Caption as its %1 child instead of first one
kidsStandardTypes.split('&').slice(1).findIndex(elem => elem == 'Caption') + 2
Table columns shall have the same number of rows (taking into account row spans)
numberOfColumnWithWrongRowSpan == null
Table columns 1 and %1 span different number of rows
numberOfColumnWithWrongRowSpan + 1
Table rows shall have the same number of columns (taking into account column spans)
numberOfRowWithWrongColumnSpan == null || wrongColumnSpan != null
Table rows 1 and %1 span different number of columns
numberOfRowWithWrongColumnSpan + 1
Table rows shall have the same number of columns (taking into account column spans)
numberOfRowWithWrongColumnSpan == null || wrongColumnSpan == null
Table rows 1 and %1 span different number of columns (%2 and %3 respectively)
numberOfRowWithWrongColumnSpan + 1
columnSpan
wrongColumnSpan
Figure tags shall include an alternative representation or replacement text that represents the contents marked with the Figure tag as noted in ISO 32000-1:2008, 14.7.2, Table 323
(Alt != null && Alt != '') || ActualText != null
Figure structure element neither has an alternate description nor a replacement text
For documents that are not strongly structured, as described in ISO 32000-1:2008, 14.8.4.3.5, heading tags shall be used as follows: (*) If any heading tags are used, H1 shall be the first. (*) A document may use more than one instance of any specific tag level. For example, a tag level may be repeated if document content requires it. (*) If document semantics require a descending sequence of headers, such a sequence shall proceed in strict numerical order and shall not skip an intervening heading level. (*) A document may increment its heading sequence without restarting at H1 if document semantics require it
hasCorrectNestingLevel == true
Heading level %1 is skipped in a descending sequence of header levels
nestingLevel - 1
Each node in the tag tree shall contain at most one child H tag
kidsStandardTypes.split('&').filter(elem => elem == 'H').length <= 1
A node contains more than one H tag
All documents shall be either strongly or weakly structured, but not both
usesHn == false
Document uses H tag in presence of Hn tags
All documents shall be either strongly or weakly structured, but not both
usesH == false
Document uses Hn tags in presence of H tags
If the table's structure is not determinable via Headers and IDs, then structure elements of type TH shall have a Scope attribute
hasConnectedHeader != false || unknownHeaders != ''
TD does not contain Headers attribute, and Headers for this table cell cannot be determined algorithmically
If the table's structure is not determinable via Headers and IDs, then structure elements of type TH shall have a Scope attribute
hasConnectedHeader != false || unknownHeaders == ''
TD references undefined Header(s) %1, and Headers for this table cell cannot be determined algorithmically
unknownHeaders
All mathematical expressions shall be enclosed within a Formula tag as detailed in ISO 32000-1:2008, 14.8.4.5 and shall have Alt or ActualText attributes
(Alt != null && Alt != '') || ActualText != null
Formula structure element neither has an alternate description nor a replacement text
Note tag shall have ID entry
noteID != null && noteID != ''
ID key of the Note tag is not present
Each Note tag shall have unique ID key
hasDuplicateNoteID == false
ID key %1 of the Note tag is non-unique
noteID
Each optional content configuration dictionary that forms the value of the D key, or that is an element in the array that forms the value of the Configs key in the OCProperties dictionary, shall contain the Name key
Name != null && Name.length() > 0
Missing or empty Name entry of the optional content configuration dictionary
The AS key shall not appear in any optional content configuration dictionary
AS == null
AS key is present in the optional content configuration dictionary
The file specification dictionary for an embedded file shall contain the non-empty F and UF keys
containsEF == false || (F != null && F != '' && UF != null && UF != '')
The file specification dictionary for an embedded file does not contain either F or UF key or at least one of the keys is empty (F = %1, UF = %2)
F
UF
Dynamic XFA forms shall not be used
dynamicRender != 'required'
Dynamic XFA forms is present
An encrypted conforming file shall contain a P key in its encryption dictionary (ISO 32000-1:2008, 7.6.3.2, Table 21). The 10th bit position of the P key shall be true
P != null && (P & 512) == 512
The file is encrypted but does not contain a P entry in its encryption dictionary or the file is encrypted and does contain a P entry, but the 10th bit position of the P entry is false (P = %1, 10th bit = %2)
P
P != null ? (P & 512) >> 9 : null
An annotation, excluding annotations of subtype Widget, PrinterMark or Link, shall be nested within an Annot tag
Subtype == 'Widget' || Subtype == 'PrinterMark' || Subtype == 'Link' || isOutsideCropBox == true || (F & 2) == 2 || structParentStandardType == 'Annot'
%1 annotation is an Artifact or is nested within %2 tag (standard type = %3) instead of Annot
Subtype
structParentType
structParentStandardType
An annotation (except Widget annotations or hidden annotations, or those having rectangle outside the crop-box) shall have either Contents key or an Alt entry in the enclosing structure element
Subtype == 'Widget' || isOutsideCropBox == true || (F & 2) == 2 || (Contents != null && Contents != '') || (Alt != null && Alt != '')
%1 annotation whose hidden flag is not set and whose rectangle is not outside the crop-box has neither Contents key nor an Alt entry in the enclosing structure element
Subtype
A form field shall have a TU key present or all its Widget annotations shall have alternative descriptions (in the form of an Alt entry in the enclosing structure elements)
isOutsideCropBox == true || (F & 2) == 2 || isFieldWidget == false || (TU != null && TU != '') || (Alt != null && Alt != '')
A form field neither has TU key nor its Widget annotations have alternative descriptions (in the form of an Alt entry in the enclosing structure element)
Annotations of subtype TrapNet shall not be permitted
isOutsideCropBox == true || (F & 2) == 2
An annotation of subtype TrapNet exists
Every page on which there is an annotation shall contain in its page dictionary the key Tabs, and its value shall be S
containsAnnotations == false || Tabs == 'S'
A page with annotation(s) contains Tabs key with value %1 instead of S
Tabs
A Widget annotation shall be nested within a Form tag per ISO 32000-1:2008, 14.8.4.5, Table 340
structParentStandardType == 'Form' || isOutsideCropBox == true || (F & 2) == 2
A Widget annotation is an Artifact or is nested within %1 tag (standard type = %2) instead of Form
structParentType
structParentStandardType
If the Form element omits a Role attribute (Table 348), it shall have only one child: an object reference (14.7.4.3) identifying the widget annotation per ISO 32000-1:2008, 14.8.4.5, Table 340
roleAttribute != null || hasOneInteractiveChild == true
The Form element omits a Role attribute and doesn't have only one child identifying the widget annotation
Links shall be tagged according to ISO 32000-1:2008, 14.8.4.4.2, Link Element
structParentStandardType == 'Link' || isOutsideCropBox == true || (F & 2) == 2
A Link annotation is an Artifact or is nested within %1 tag (standard type = %2) instead of Link
structParentType
structParentStandardType
Links shall contain an alternate description via their Contents key as described in ISO 32000-1:2008, 14.9.3
(Contents != null && Contents != '') || isOutsideCropBox == true || (F & 2) == 2
A link annotation does not include an alternate description in the Contents key
In the media clip data dictionary, the optional CT key (ISO 32000-1:2008, 13.2.4.2, Table 274) is required
CT != null
CT key is missing from the media clip data dictionary
In the media clip data dictionary, the optional Alt key (ISO 32000-1:2008, 13.2.4.2, Table 274) is required
hasCorrectAlt == true
Alt key (value %1) is missing from the media clip data dictionary or has incorrect value
Alt
PrinterMark annotations, if present, shall be considered Incidental Artifacts, as if they are hidden page elements as defined in ISO 32000-1:2008, 14.8.2.2.3
structParentType == null || isOutsideCropBox == true || (F & 2) == 2
A PrinterMark annotation is included in logical structure
A conforming file shall not contain any reference XObjects
containsRef == false
The document contains a reference XObject (Ref key in the form XObject dictionary)
The content of Form XObjects shall be incorporated into structure elements according to ISO 32000-1:2008, 14.7.2
isUniqueSemanticParent == true
Form XObject contains MCIDs and is referenced more than once
For any given composite (Type 0) font within a conforming file, the CIDSystemInfo entry in its CIDFont dictionary and its Encoding dictionary shall have the following relationship: - If the Encoding key in the Type 0 font dictionary is Identity-H or Identity-V, any values of Registry, Ordering, and Supplement may be used in the CIDSystemInfo entry of the CIDFont. - Otherwise, the corresponding Registry and Ordering strings in both CIDSystemInfo dictionaries shall be identical, and the value of the Supplement key in the CIDSystemInfo dictionary of the CIDFont shall be less than or equal to the Supplement key in the CIDSystemInfo dictionary of the CMap
cmapName == "Identity-H" || cmapName == "Identity-V" || (CIDFontOrdering != null && CIDFontOrdering == CMapOrdering && CIDFontRegistry != null && CIDFontRegistry == CMapRegistry && CIDFontSupplement != null && CMapSupplement != null && CIDFontSupplement <= CMapSupplement)
CIDSystemInfo entries the CIDFont and CMap dictionaries of a Type 0 font are not compatible (CIDSystemInfo Ordering = %1, CMap Ordering = %2, CIDSystemInfo Registry = %3, CMap Registry = %4, CIDSystemInfo Supplement = %5, CMap Supplement = %6)
CIDFontOrdering
CMapOrdering
CIDFontRegistry
CMapRegistry
CIDFontSupplement
CMapSupplement
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 || containsFontFile == false
A Type 2 CIDFont dictionary has missing or invalid CIDToGIDMap entry
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-UTF16-H" || CMapName == "UniGB-UTF16-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-UTF16-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
CMapName
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
WMode == dictWMode
WMode entry (value %1) in the embedded CMap and in the CMap dictionary (value %2) are not identical
WMode
dictWMode
A CMap shall not reference any other CMap except those listed in ISO 32000-1:2008, 9.7.5.2, Table 118
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-UTF16-H" || CMapName == "UniGB-UTF16-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-UTF16-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"
A CMap references another non-standard CMap %1
CMapName
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 || containsFontFile == true
The font program is not embedded
Embedded fonts shall define all glyphs referenced for rendering within the conforming file. A font referenced solely in text rendering mode 3 is not rendered and is thus exempt from the requirements that impact the visual representation of the glyphs of a font. In all cases for TrueType fonts that are to be rendered, character codes shall be able to be mapped to glyphs according to ISO 32000-1:2008, 9.6.6.4 without the use of a non-standard mapping chosen by the conforming processor
renderingMode == 3 || isGlyphPresent == null || isGlyphPresent == true
Not all glyphs referenced for rendering are present in the embedded font program
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
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
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
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
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
renderingMode == 3 || widthFromFontProgram == null || widthFromDictionary == null || Math.abs(widthFromFontProgram - widthFromDictionary) <= 1
Glyph width %1 in the embedded font program is not consistent with the Widths entry of the font dictionary (value %2)
widthFromFontProgram
widthFromDictionary
For all non-symbolic TrueType fonts used for rendering, the embedded TrueType font program shall contain one or several non-symbolic cmap entries such that all necessary glyph lookups can be carried out
isSymbolic == true || (cmap30Present == true ? nrCmaps > 1 : nrCmaps > 0)
The embedded font program for a non-symbolic TrueType font does not contain non-symbolic cmap entries
All non-symbolic TrueType fonts shall have either MacRomanEncoding or WinAnsiEncoding as the value for the Encoding key in the Font dictionary or as the value for the BaseEncoding key in the dictionary which is the value of the Encoding key in the Font dictionary. In addition, no non-symbolic TrueType font shall define a Differences array unless all of the glyph names in the Differences array are listed in the Adobe Glyph List and, if the font program is embedded, it shall contain at least the Microsoft Unicode (3,1 – Platform ID = 3, Encoding ID = 1) encoding in the 'cmap' table
isSymbolic == true || ((Encoding == "MacRomanEncoding" || Encoding == "WinAnsiEncoding") && (containsDifferences == false || differencesAreUnicodeCompliant == true))
A non-symbolic TrueType font encoding does not define a correct mapping to the Adobe Glyph List (Encoding = %1, Encoding entry contains a Differences = %2, Differences are Unicode compliant = %3)
Encoding
containsDifferences
differencesAreUnicodeCompliant
Symbolic TrueType fonts shall not contain an Encoding entry in the font dictionary
isSymbolic == false || Encoding == null
A symbolic TrueType font specifies an Encoding entry in its dictionary
The 'cmap' table in the embedded font program for a symbolic TrueType font shall contain either exactly one encoding or it shall contain, at least, the Microsoft Symbol (3,0 - Platform ID=3, Encoding ID=0) encoding
isSymbolic == false || nrCmaps == 1 || cmap30Present == true
The embedded font program for a symbolic TrueType font contains %1 cmap subtables and does not contain Microsoft Symbol (3,0 – Platform ID=3, Encoding ID=0)
nrCmaps
The Font dictionary of all fonts shall define the map of all used character codes to Unicode values, either via a ToUnicode entry, or other mechanisms as defined in ISO 14289-1, 7.21.7
toUnicode != null
The glyph can not be mapped to Unicode
The Unicode values specified in the ToUnicode CMap shall all be greater than zero (0), but not equal to either U+FEFF or U+FFFE
toUnicode == null || (toUnicode.indexOf("\u0000") == -1 && toUnicode.indexOf("\uFFFE") == -1 && toUnicode.indexOf("\uFEFF") == -1)
The glyph has Unicode value 0, U+FEFF or U+FFFE, which is invalid by Unicode standard
A PDF/UA compliant document shall not contain a reference to the .notdef glyph from any of the text showing operators, regardless of text rendering mode, in any content stream
name != ".notdef"
The document contains a reference to the .notdef glyph
false
containsLang
false
true
false
true