function ValidatePdfUa: TPdfUaValidationResult;
ValidatePdfUa detects PDF/UA-1 and PDF/UA-2 from XMP and applies the rules for the selected profile
pdfuaid:part = 1 and the matching pdfaExtension:schemas description (§5)dc:title entry inside the XMP packet (§7.1)StructTreeRoot in the catalog or somewhere in the file (§7.1) — required so the document can carry tagging at all/MarkInfo << /Marked true /Suspects false >> (§7.1)/ViewerPreferences << /DisplayDocTitle true >> (§7.1)/Lang with a BCP 47 language tag (§7.2)/ID array and the absence of encryptionxmp:CreateDate / xmp:ModifyDate (recommended for Info/XMP parity)The result is a TPdfUaValidationResult record:
puc1, puc2, pucNone or pucUnknown/Marked and /DisplayDocTitle must be true in the active catalogue’s /MarkInfo and /ViewerPreferences dictionaries. PDF/UA-1 also checks /Suspects. The validator resolves indirect booleans and falls back to legacy scanning where active inspection fails/Metadata stream, compressed and Unicode XMP included. The original PDF supplies metadata where available. Callers can also supply an XMP packet directly. Unreadable cross-reference data keeps the legacy scanTPdfUaValidationIssues set containing zero or more values: pvuaiMissingXmpMetadata, pvuaiMissingPdfUaIdentifier (for PDF/UA-2 the parsed part property must use the original pdfuaid prefix), pvuaiMissingExtensionSchema, pvuaiMissingDcTitle, pvuaiMissingStructTreeRoot (the active catalogue must resolve /StructTreeRoot to a dictionary; an unreadable active catalogue cannot establish its presence), pvuaiMissingMarkInfo, pvuaiSuspectsTrue, pvuaiMissingDisplayDocTitle, pvuaiMissingLang, pvuaiEncryptionPresent (reserved: PDF/UA permits encryption, so the precise pvuaiEncryptionPBitMissing value is raised instead, whilst this one remains for ABI compatibility), pvuaiMissingTrailerId, pvuaiMissingXmpDates, pvuaiFontNotEmbedded, pvuaiFontMissingToUnicode, pvuaiMissingTabsOrder, pvuaiFigureMissingAlt, pvuaiFormulaMissingAlt, pvuaiNoteMissingId. Round 1 (v1.66.0) adds pvuaiRoleMapMissing (7.1), pvuaiOptionalContentAsKey (PDF/UA-1 §7.10 and PDF/UA-2 §8.7, a non-null /AS entry in an active optional-content configuration), pvuaiXfaPresent (PDF/UA-2 §8.10.1, an XFA entry in the active AcroForm), pvuaiTrapNetAnnotation (7.18.2), pvuaiReferenceXObject (PDF/UA-1 §7.20, a Form XObject stream with a top-level /Ref entry; the check confirms the active revision when it is readable and falls back to the stream dictionary scan otherwise), and pvuaiEncryptionPBitMissing (7.16 — the precise encryption violation that supersedes the old any-encryption flag). Round 2 (v1.67.0) adds pvuaiLinkMissingContents (7.18.5), pvuaiAnnotationMissingContents (7.18.1), pvuaiEmbeddedFileMissingName (7.11), pvuaiMediaClipMissingAlt (7.18.6.2), and pvuaiCidFontMissingCidToGidMap (7.21.3.2). Round 3 (v1.68.0) adds pvuaiUriActionIsMap (7.18.5) and pvuaiHeadingSequenceViolation (7.4.2 — the first structure-tree-level rule; ValidatePdfUaStructureElements now verifies the numbered-heading sequence). Round 4 (v1.69.0) adds pvuaiWidgetOutsideForm (7.18.4 — structure-tree Widget nesting) and pvuaiSubsetMissingCharSet (7.21.4.2, a Type 1 subset only; the font type comes from the owning font dictionary’s /Subtype rather than from the embedding key). Round 5 (v1.70.0) adds pvuaiSubsetMissingCidSet (7.21.4.2, a CIDFont subset only — a TrueType subset embeds through /FontFile2 exactly as a CIDFontType2 does), pvuaiToUnicodeForbiddenValue (7.21.7), pvuaiLangInvalidFormat (7.2), and pvuaiOrderedListMissingListNumbering (7.6 — raised since v1.71.0 when an L element declares a ListNumbering value outside the Table 347 set; an absent attribute is not flagged). Round 7 (v1.80.0) adds the §7.5 table checks pvuaiTableStructureInvalid (TH/TD outside a TR, or TR/THead/TBody/TFoot outside their required container), pvuaiTableHeaderMissingScope (a TH carrying neither a Scope attribute, nor an ID, in a table where no cell uses a Headers association), and pvuaiTableHeadersUndefinedId (cells reference headers via Headers arrays whilst no structure element in the document defines an ID; an individual dangling entry beside resolvable ones is tolerated, matching the authoritative validator). v1.81.0 adds the §7.6 list-nesting check pvuaiListStructureInvalid (an LI outside an L container, or an LBody outside an LI item; nested lists are accepted). ISO 14289-1 lays down no parent requirement for a Lbl, so Lbl placement is judged only for PDF/UA-2, where a Lbl inside LI/Note/BibEntry is accepted. The same diagnostic also covers the §7.2 table-of-contents containment tests for PDF/UA-1: a TOCI outside a TOC, a TOC child other than TOC/TOCI/Caption, and a Caption that is not the first kid. Those three read the active structure tree, because a Caption carrying no page content is invisible to the page-scoped element snapshot. v1.82.0 adds the §7.1 RoleMap resolution checks pvuaiRoleMapRemapsStandard (a RoleMap entry redefines a standard structure type) and pvuaiRoleMapUnresolved (a used non-standard structure type has no RoleMap entry, or its chain is dangling or cyclic; indirect chains reaching a standard type are accepted and unused RoleMap entries are never judged). v1.83.0 adds the §7.4.4 heading-model checks pvuaiHeadingModelMixed (the generic H tag mixed with numbered H1..Hn headings) and pvuaiHeadingMultipleInNode (a structure node carrying more than one child H heading). v1.84.0 adds the §7.1 untagged-content check pvuaiUntaggedContent (a rendered text or image object neither claimed by the page’s structure tree via its marked-content ID nor marked as an Artifact; bare path objects are outside the check to avoid flagging ubiquitous decoration). v1.85.0 adds the §7.15 dynamic-XFA check pvuaiXfaDynamic (the XFA configuration sets dynamicRender to required) and retires the any-XFA candidate pvuaiXfaPresent (static XFA conforms; the enum value remains but is no longer raised). The check reads the config packet or a single XDP stream through the supported PDF filters, including streams whose /Length is indirect in the active revision. Since v1.85.1 the §7.18.3 pvuaiMissingTabsOrder check runs per page: every annotated page needs its own /Tabs entry, which PDF/UA-1 requires to be /S (§7.18.3), whilst PDF/UA-2 also accepts /A, /W or /S (§8.9.3.3). v1.86.0 adds the §7.21.6 TrueType encoding checks pvuaiTrueTypeEncodingInvalid (a non-symbolic TrueType lacks Encoding, or it is neither MacRomanEncoding nor WinAnsiEncoding directly or via BaseEncoding) and pvuaiSymbolicTrueTypeEncoding (a symbolic TrueType carries a non-standard Encoding name; standard names are tolerated because compliant documents routinely mislabel standard-encoded fonts as symbolic). v1.87.0 adds the §7.21.3 composite-font checks pvuaiCidSystemInfoMismatch (embedded CMap and descendant CIDFont disagree on Registry/Ordering, or the CIDFont Supplement exceeds the CMap’s), pvuaiCMapNotEmbedded (a CMap referenced by name is not a Table 118 predefined CMap) and pvuaiCMapWModeMismatch (an embedded CMap’s dictionary WMode differs from its stream content; only byte-readable, uncompressed CMap streams can be judged), and broadens pvuaiCidFontMissingCidToGidMap to also flag a CIDToGIDMap name other than Identity. v1.93.0 adds the Pdfium object-model layer — three precise per-font / per-character issues computed from the live Pdfium object tree: pvuaiPdfiumFontNotEmbedded (§7.21.4, a font a page actually uses is not embedded per FPDFFont_GetIsEmbedded), pvuaiPdfiumUnicodeMapError (§7.21.7, a page character has an invalid Unicode mapping per FPDFText_HasUnicodeMapError), and pvuaiPdfiumNotDefGlyph (§7.21.8, a character renders to Unicode 0 / .notdef). These complement the byte-level pvuaiFontNotEmbedded / pvuaiFontMissingToUnicode heuristics (which only fire on a document-wide zero-embedded or no-/ToUnicode signal); the walk short-circuits at three levels (page loop, per-object loop, character scan). v1.94.0 adds six second-pass issues from a clause-by-clause re-audit: pvuaiHeadingFormatInvalid (§7.4.3, a heading tag starting with H that is neither the generic H nor H + pure Arabic digits — separators, spaces and Roman numerals are forbidden), pvuaiMissingDocumentOutline (§7.17, a multi-page document carrying no bookmark outline; single-page documents are exempt), pvuaiStructElementLangInvalid (§7.2, a structure element /Lang value that is not a valid BCP 47 tag), pvuaiWidgetMissingPrintField (§7.14 / §7.18.4, a Widget structure element lacking the PrintField attribute owner), pvuaiLinkNotInStructureTree (§7.18.5, a document with /Subtype /Link annotations whose structure tree exposes no Link element), and the Pdfium annotation layer pvuaiPdfiumAnnotationMissingContents / pvuaiPdfiumLinkMissingContents (§7.18.1 / §7.18.5, a precise scan that exempts hidden, off-crop-box, Popup and Widget annotations, eliminating the false positives of the byte-level heuristic). v1.95.0 improves recall and soundness: the §7.21.3.3 pvuaiCMapWModeMismatch and §7.21.7 pvuaiToUnicodeForbiddenValue checks now inflate FlateDecode-compressed CMap / ToUnicode streams before scanning (previously only uncompressed streams were judged), and pvuaiSubsetCharSetEmpty (§7.21.4.2) flags a Type 1 subset FontDescriptor whose /CharSet string value is empty (the missing-key check only caught an absent key). v1.96.0 adds pvuaiAnnotationFlagsViolation (§7.18.1, a non-exempt annotation carrying Hidden / Invisible / NoView) and pvuaiActionTargetMissing (§7.18.5, a GoToR / URI / SubmitForm action missing its target key), both ported from the PDF/A validator, and fixes a cross-page ParentIndex rebasing bug in the structure-tree merge plus a RoleMap parser that prematurely terminated on indirect-reference or array values. Later rounds add pvuaiNeedAppearancesTrue (§7.18.4 — the AcroForm /NeedAppearances flag is true, so widget appearances are not reliably locked for assistive technology) and pvuaiTociWithoutToc (§7.7 — TOCI elements are tagged but no TOC container is); then the PDF/UA-2 profile set pvuaiMissingPdfUaRevision (§5 — the revision is missing, carries the wrong prefix, or differs from 2024 for the supported edition), pvuaiPdfVersionNot20 (§6.2 — the effective file version is not PDF 2.0; the validator reads the header and the active catalogue’s top-level /Version and resolves indirect version names), pvuaiOptionalContentConfigMissingName (§7.10 for PDF/UA-1 and §8.7 for PDF/UA-2 — an optional-content configuration under /D or /Configs lacks a non-empty /Name text string; PDF/UA-2 applies the name requirement where /Configs holds at least one configuration dictionary. The check resolves inline and indirect arrays, dictionaries and name strings, and falls back to legacy byte scanning where active inspection fails), pvuaiDeprecatedAnnotation (§8.9.1 — a Sound or Movie annotation deprecated in PDF 2.0 is present), and pvuaiGenericHeadingForbidden (§8.2.5.12 — the generic H structure type is forbidden); the ISO/TS 32005 namespace and semantic-structure group pvuaiNamespaceMissing (a PDF 2.0 structure type with no namespace assignment), pvuaiNamespaceRoleMapInvalid (a custom namespace or type with no valid namespace role mapping), pvuaiNamespaceReuseInvalid (inconsistent namespace reuse or standard-namespace assignment), pvuaiNamespaceContainmentInvalid (a structure element violating the ISO/TS 32005 parent-child model), pvuaiTableGridInvalid (a table grid with invalid spans, overlaps, gaps, or inconsistent row widths), pvuaiAnnotationSemanticInvalid (incomplete or inconsistent annotation or widget structure semantics), pvuaiFormulaSemanticInvalid (incomplete Formula / MathML fallback or containment), pvuaiAssociatedFileSemanticInvalid (an associated file lacking a usable relationship or description), pvuaiDocumentSemanticInvalid (incomplete document, title, note, list, TOC, or caption semantics), and pvuaiTocReferenceMissing (a TOCI element with no target Reference child); and the associated-file ownership group pvuaiAssociatedFileOwnershipInvalid, pvuaiAssociatedFileReadingOrderInvalid, and pvuaiAssociatedFileDiscoverabilityInvalidConformance is a real PDF/UA level and Issues is emptyPDF/UA-2 validation additionally requires pdfuaid:rev to be 2024 for ISO 14289-2:2024, effective PDF 2.0, A/W/S annotation tab
ordering, no XFA, non-empty optional-content configuration names, no
PDF 2.0-deprecated Sound or Movie annotations, and explicitly numbered
H1 through Hn heading structure types
Since v3.73.0 the issue set can also contain pvuaiNaturalLanguageUncovered when non-Artifact page text or a structure Title, Alt, ActualText, or Expansion string lacks a valid effective /Lang declaration
Since v3.74.0 the issue set can also contain pvuaiArtifactInStructureTree when an Artifact page object carries an MCID claimed by the page structure tree, including path-based pagination artefacts
Since v3.75.0 the Unicode mapping issues come from one object-scoped InspectPdfUaUnicodeCoverage pass; valid ActualText covers only characters from its originating text object, whilst Artifact and PDFium-generated characters are excluded from semantic coverage
Internal version 3.396.0 adds pvuaiToUnicodeMapsToZero when a ToUnicode CMap destination is U+0000 (ISO 14289-1 7.21.7); the scan is operator-aware, so <0000> in codespacerange or as a bfrange source bound is not reported. PDF/UA-2 documents can additionally carry pvuaiEmbeddedFileMissingDesc when a file specification reachable from /EmbeddedFiles lacks /Desc (ISO 14289-2 8.14.1); the same file under PDF/UA-1 is not flagged because /Desc is only recommended there
Internal version 3.396.1 resolves the description check through the active catalog's EmbeddedFiles name tree, including indirect Kids and Names arrays and compressed dictionaries. Whitespace and an optional Type entry do not decide membership. Only a top-level Desc key counts, including escaped name spelling; a nested same-name key does not satisfy it. A missing or null description is reported, whilst an empty string satisfies this presence check without proving that its wording is meaningful. An AF-only or unrelated file specification outside that name tree is outside this particular requirement. If the active-object reader cannot inspect this tree, including an unsupported encrypted source or an exhausted parser budget, validation raises an inspection error rather than silently treating the description requirement as satisfied
Internal version 3.396.0 adds pvuaiTextStringUsesPua for a PDF/UA-2 file when a human-readable text string uses the Unicode Private Use Area (ISO 14289-2 8.6, restated for ActualText and Alt by 8.4.3). The entries inspected are ActualText, Alt, E, TU, T, Title, Subject, Keywords, Author, Contents, Desc and Name; a value is decoded as UTF-16 only when it carries a byte order mark, since PDFDocEncoding cannot express a PUA code point, so a binary hex string that happens to start with FEFF is never read as text. PDF/UA-1 has no equivalent requirement and is never flagged
ValidatePdfUa is a read-only inspection — it does not modify
the document and is safe to call repeatedly. Use it before handing a
PDF off to an archive system or accessibility checker to surface
non-compliance to the operator. For the common "is this PDF/UA-1?"
check that doesn't need the issue list, prefer the lighter-weight
PdfUaConformance property
ValidatePdfUa2NamespaceSemantics applies the standalone PDF 1.7 allowance of ISO/TS 32005 §5.2. The default and explicit PDF 1.7 namespaces can use shared and PDF 1.7-only types where the supplied structure uses only PDF 1.7 namespaces. With explicit evidence of another namespace, shared types must use the PDF 2.0 namespace. PDF 2.0-only types require an explicit PDF 2.0 namespace. The checks use the namespace and role mapping fields supplied in the snapshot. For PDF/UA-2, TPdf.ValidatePdfUa reads namespace assignments and follows role maps from the active structure tree of the original PDF where available. It checks declared namespace membership and the role mapping of the types actually used, transitive mappings included. This path needs a readable structure tree with stable indirect element identities and falls back to the native page snapshot where the active tree cannot be read within the structure inspection limits. The active-tree path limits itself to the ISO 14289-2 §8.2.4 rules and does not apply the ISO/TS 32005 §5.3 mixed-namespace reuse requirement, which the authoritative PDF/UA-2 profile does not enforce; the element-level ValidatePdfUa2NamespaceSemantics API keeps that checkFigure structure element to carry an /Alt or /ActualText key and tests for the presence of the key, so an empty /ActualText () conforms. For PDF/UA-2, TPdf.ValidatePdfUa reads that presence from the active structure tree, because the native page snapshot cannot tell a present-but-empty value from an absent key. Where the active tree cannot be read, the page snapshot stays in useActualText for presence too, but require Alt to be non-empty, so an empty /Alt () satisfies neither clause whilst an empty /ActualText () satisfies both. For PDF/UA-1 the active namespace tree is not read, so TPdf.ValidatePdfUa confirms a snapshot pvuaiFigureMissingAlt or pvuaiFormulaMissingAlt finding against the element dictionaries and drops it only when every byte-visible Figure or Formula element satisfies that test. Custom types role-mapped to those standard types are not resolved by this confirmation, so where none is visible the snapshot finding is kept/Contents; ISO 14289-2 has no equivalent annotation-key rule, since its §8.2.5.20 tests concern Link structure elements. Both pvuaiLinkMissingContents and pvuaiPdfiumLinkMissingContents are therefore raised only for PDF/UA-1. The byte-level scan reads the /Subtype key token and its value name, so the compact /Subtype/Link spelling is recognised as well as the spaced form, and it tests the decoded /Contents string for non-emptiness: an empty /Contents () is a violation rather than an exemption/Contents entry. ISO 14289-1 §7.18.1 exempts widgets entirely, so pvuaiAnnotationMissingContents is raised for an unlabelled widget without /Contents only for PDF/UA-2. Both the widget scan and the /Lbl exemption read the key token and its value name, so the compact /Subtype/Widget and /S/Lbl spellings are recognised just like the spaced forms. These byte-level checks read the original PDF bytes, because a native full save can renumber annotation objects/FS entry references to include an /AFRelationship entry. A missing entry raises pvuaiAssociatedFileSemanticInvalid for PDF/UA-2. The annotation scan reads the /Subtype key token and its value name, so the compact /Subtype/FileAttachment spelling is recognised as well as the spaced form/SD, or a destination array whose first element resolves to a structure element. A GoTo action without /SD, or a destination array that points at a page instead, raises pvuaiActionTargetMissing. Only top-level dictionary keys count, because a page’s /Group subdictionary also spells /S /Transparency. ISO 14289-1 states no equivalent rule, so this applies to PDF/UA-2 onlypvuaiAnnotationFlagsViolation. §8.10.1/2 allows at most one widget annotation per Form structure element and raises pvuaiAnnotationSemanticInvalid where two widgets share a /StructParent key. Both resolve the key through the ParentTree /Nums map, the array-valued form included, where the array index is added to the number-tree key. ISO 14289-1 exempts hidden annotations and states neither rule, so both are PDF/UA-2 onlyDocument structure element as the StructTreeRoot’s only child, and that element must use the PDF 2.0 namespace. The native page snapshot omits a tree root without /K entirely, so TPdf.ValidatePdfUa reads the root children from the active structure tree of the original PDF and raises pvuaiDocumentSemanticInvalid where the child count, role or namespace is wrongLink or Reference structure elements. The check resolves each annotation’s /StructParent key through the ParentTree /Nums map and compares the structure destination the annotation reaches: a GoTo action’s /SD, or its /D where no /SD is present, or the annotation’s own /Dest where there is no /A. A destination dictionary contributes the object its /SD names, and a destination array contributes its first element only where that element resolves to a dictionary carrying /S, so a destination naming a page takes no part in the comparison. Two different target object keys under one structure element raise pvuaiAnnotationSemanticInvalid. The action object number itself is not compared, because several annotations may share one action and two actions may name one structure element; a named destination is left unresolved and contributes nothing. The scan reads the /Subtype key token and its value name, so the compact /Subtype/Link and /Nums[ spellings are recognised as well as the spaced forms, whilst a structure element’s /S /Link is never mistaken for an annotation. It reads the original PDF bytes because a native full save can renumber annotation objects, and it applies to PDF/UA-2 onlyTPdf.ValidatePdfUa reads the active structure tree so that it can include empty cells without /K. It resolves ColSpan and RowSpan from the cell attributes and /ClassMap, derives the width from the first row, and reports overlaps, gaps and spans that cross row group boundaries as pvuaiTableGridInvalid. Where the active tree cannot be read, validation uses the native page snapshotpvuaiMissingLang is raised only when the document states no /Lang at all — only then is there text whose language cannot be determined. A document declaring the language on its structure elements and leaving the catalogue silent is conformingpvuaiLangInvalidFormat reads a /Lang value the way ISO 32000-1 7.9.2.2 defines a text string: a UTF-16BE value behind an FE FF byte order mark is decoded before the BCP 47 grammar runs, in the literal form as well as the hexadecimal one, because no language subtag is written above U+00FF. Both the catalogue and the structure-element checks apply the ISO 14289-2 8.4.4/2 and ISO 14289-1 7.2/29 grammar ^[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*$, so an overlong or malformed subtag is reported rather than acceptedcontainsDifferences branch. When a non-symbolic TrueType font defines a /Differences array, every glyph name in it must belong to the Adobe Glyph List and the embedded font program must carry a Microsoft Unicode (3,1) cmap subtable; otherwise pvuaiTrueTypeEncodingInvalid is raised. A font with no embedded program is accepted, as in the authoritative validator. The check reads the original PDF bytes because a native full save rewrites font Encoding dictionaries. The shared Adobe Glyph List includes the reserved .notdef name for glyph 0, matching the authoritative list.notdef glyph. In a CID-keyed font, character code 0 addresses glyph 0, the reserved .notdef glyph, so TPdf.ValidatePdfUa inspects the /Contents streams of every page and reports pvuaiPdfiumNotDefGlyph when Tj or TJ displays a zero CID. Both the regular /Type /Page and the compact /Type/Page dictionary spellings are recognised/RoleMap only where a non-standard structure type is used, so a tagged document whose every element states a standard type reports nothing. pvuaiRoleMapMissing therefore looks for a /S inside a dictionary that also states /Type /StructElem: a page states /Tabs /S, a transparency group states /S /Transparency, and an action states /S /GoTo, and none of those is a structure typepvuaiEmbeddedFileMissingName reads 7.11 as the sentence stands: a file may be embedded “either as EmbeddedFiles or as File Attachment annotations” (7.18.7 makes the latter conform to all of 7.11), and its file specification dictionary “shall contain the F and UF keys”. Both routes open the check. Only top-level keys count — the /F inside a nested /EF dictionary is a stream reference — and an empty /F() or /UF() names no file, so it is reported like an absent key. A dictionary expanded from an object stream spells its type /Type/Filespec with no space, and both spellings are read/CharSet, and a CID subset descriptor stating no /CIDSet, are conforming; only a stated value is judged, which is what pvuaiSubsetCharSetEmpty and the empty-bitmap reading of a /CIDSet stream do. pvuaiSubsetMissingCharSet and pvuaiSubsetMissingCidSet are kept for API compatibility with no emission point/Contents conforms when it carries /StructParent: 7.18.1 accepts an alternative description as ISO 32000-1 14.9.3 defines it, and 14.9.3 takes that description from the structure element that owns the annotation. The byte-level scan reads the /Subtype key token and its value name, so a compact spelling such as /Subtype/Highlight is recognised as well as the spaced form, and an empty /Contents () does not satisfy the requirementdc:title entry (7.1) and the pdfuaid:part marker (clause 5). The pdfaExtension schema set and the xmp:CreateDate / xmp:ModifyDate pair belong to PDF/A, so they are not reported here/Name, which marks a form-default resource rather than a font any content selectsConformance = pucUnknown and an empty Issues setpvuaiSuspectsTrue when an explicit /Suspects true appears in /MarkInfo. Documents that lack the /Suspects key entirely are considered compliant on that point (the spec only forbids true)N 0 R); existing keys are preserved and the dictionary is normalised to a direct dictionary in the rewritten catalog
uses System.TypInfo;
var
Outcome: TPdfUaValidationResult;
Issue: TPdfUaValidationIssue;
begin
Pdf1.FileName := 'C:\Incoming\report.pdf';
Pdf1.Active := True;
Outcome := Pdf1.ValidatePdfUa;
Memo1.Lines.Add('Level: ' + GetEnumName(TypeInfo(TPdfUaConformance),
Ord(Outcome.Conformance)));
for Issue in Outcome.Issues do
Memo1.Lines.Add('- ' + GetEnumName(TypeInfo(TPdfUaValidationIssue), Ord(Issue)));
end;