PDFium Delphi Component Docs

PdfUa2StructureHasIssue function

Unit: PDFium
Reports whether the complete PDF/UA-2 rule set detects one specific issue in flattened structure data

Syntax

function PdfUa2StructureHasIssue(const Elements: TPdfStructureElements;
  Issue: TPdfUaValidationIssue): Boolean;

Parameters

ElementsTPdfStructureElements
IssueTPdfUaValidationIssue

Return Value

Boolean

Description

PdfUa2StructureHasIssue runs ValidatePdfUa2StructureElements over the element array and returns True when the requested issue is part of the resulting set

It is the single-issue shorthand for Issue in ValidatePdfUa2StructureElements(Elements)

Useful PDF/UA-2 issue values include pvuaiNamespaceMissing, pvuaiNamespaceRoleMapInvalid, pvuaiNamespaceReuseInvalid, pvuaiNamespaceContainmentInvalid, pvuaiTableGridInvalid, pvuaiAnnotationSemanticInvalid, pvuaiFormulaSemanticInvalid, pvuaiAssociatedFileSemanticInvalid, pvuaiAssociatedFileOwnershipInvalid, pvuaiAssociatedFileReadingOrderInvalid, pvuaiAssociatedFileDiscoverabilityInvalid, pvuaiDocumentSemanticInvalid, and pvuaiTocReferenceMissing

Remarks

Example

if PdfUa2StructureHasIssue(Pdf.StructureElements, pvuaiTableGridInvalid) then
  ShowMessage('Invalid table grid detected');

See Also

ValidatePdfUa2StructureElements, ValidatePdfUaStructureElements, TPdf.ValidatePdfUa, TPdf.StructureElements