Enterprise edition: this unit ships in Lib\Enterprise and is linked by FPdfEnterprise and the PDFiumPasEnt / PDFiumLazEnt packages; see the edition matrix
TPdfTagCaptionPrefixes= array of WideString;
TPdfAutoTagHierarchyOptions= record
MaxNodes, MaxTextCharacters, MaxHeadingCharacters: Integer;
BodyFontSize, Heading1Ratio, Heading2Ratio, Heading3Ratio: Double;
ParagraphGapRatio, ParagraphIndentRatio, CaptionGapRatio: Double;
InferHeadings, GroupParagraphs, InferCaptions: Boolean;
CaptionPrefixes: TPdfTagCaptionPrefixes;
class function Default: TPdfAutoTagHierarchyOptions; static;
end;
function BuildPdfUa2HierarchyPlan(const Objects: TPdfAutoTagObjects;
const Options: TPdfAutoTagHierarchyOptions;
MinimumConfidence: Double= 0.5): TPdfAutoTagNodes;
BuildPdfUa2HierarchyPlan accepts arbitrary input order and unique page/object identities, preserves each eligible object exactly once, and places parents before children
FontSize is an optional positive hint; zero falls back to object height, while BodyFontSize zero estimates the body size from the median eligible text size
Defaults: MaxNodes 100000, MaxTextCharacters 1048576, MaxHeadingCharacters 160, BodyFontSize 0, heading ratios 1.8/1.5/1.2, ParagraphGapRatio 0.8, ParagraphIndentRatio 1.5 and CaptionGapRatio 2
InferHeadings, GroupParagraphs and InferCaptions default True, with Figure and Fig. prefixes; captions require an adjacent described Figure and become its Caption child
Headings and captions have confidence at most 0.75 and paragraph containers at most 0.8; MinimumConfidence filters input and suppresses weaker heuristic additions
Hard limits are 1000000 source objects/nodes, 16777216 text characters, 4096 heading characters, 32 nonempty caption prefixes and 4096 total prefix characters
Heading ratios must descend within 1.01 through 100; body size is 0 through 1000000, paragraph gap 0 through 10, and indent/caption ratios 0 through 100
Geometry, font hints, ratios, duplicate identities and expanded node budgets are validated; these heuristics require review and do not establish reading-order or PDF/UA correctness
| Type | Values or purpose |
|---|---|
EPdfStandardsExecution | Exception raised for invalid inputs, exceeded limits, failed conversions, and unsupported execution states |
TPdfMeasureFormatKind | pmfkDecimal, pmfkFraction, pmfkPercentage |
TPdfAutoTagObjectKind | patokText, patokImage, patokPath, patokForm, patokAnnotation |
TPdfHistoricalEvidenceKind | phekCertificate, phekOcsp, phekCrl |
TPdfEInteractiveIssues | Set containing peiiExternalMultimedia, peiiAnnotationFlags, peiiMissingAppearance, peiiUnsupportedU3d, peiiEncryption, peiiInvalidSignature, and peiiDocMdp |
| Type | Public members |
|---|---|
TPdfMeasureNumberFormat | UnitLabel, ConversionFactor, FormatKind, Precision, FractionDenominator, Prefix, Suffix |
TPdfMeasureNumberFormats | Dynamic array of TPdfMeasureNumberFormat |
TPdfMeasurementProperties | Ratio, X, Y, D, A, T, V, CY |
TPdfGeoPoint | X, Y |
TPdfGeoViewport | PageIndex, Left, Bottom, Right, Top, Lpts, Gpts, CoordinateSystem |
TPdfGeoViewports | Dynamic array of TPdfGeoViewport |
TPdfGeoViewportIndexes | Dynamic array of viewport indexes |
FPdfDocumentRepair supplies a built-in document executor for automatic security and metadata repair and applies reviewed auto-tag plans to supported existing documents; other repair categories still require their own providers
| Type | Public members |
|---|---|
IPdfARepairExecutor | CaptureSnapshot, ApplyStep, Validate, RestoreSnapshot |
TPdfARepairExecutionReport | AppliedSteps, SkippedSteps, RolledBack, ValidationPassed, ErrorText |
TPdfTextRepairItem | PageIndex, ObjectIndex, FontName, ExtractedText, HasEmbeddedFont, HasToUnicode, HasActualText |
TPdfTextRepairItems | Dynamic array of TPdfTextRepairItem |
TPdfTextRepairResult | PageIndex, ObjectIndex, FontRepaired, ToUnicodeRepaired, ActualTextRepaired, PreservedPixels, ErrorText |
TPdfTextRepairResults | Dynamic array of TPdfTextRepairResult |
IPdfTextSemanticsRepairProvider | Repair |
| Type | Public members |
|---|---|
TPdfAutoTagObject | PageIndex, ObjectIndex, Kind, Left, Bottom, Right, Top, Text, AlternateText, Confidence, FontSize |
TPdfAutoTagObjects | Dynamic array of TPdfAutoTagObject |
TPdfAutoTagNode | PageIndex, ObjectIndex, ParentIndex, Mcid, RoleName, Artifact, Confidence |
TPdfAutoTagNodes | Dynamic array of TPdfAutoTagNode |
TPdfUaFormField | PageIndex, AnnotationIndex, FieldName, Tooltip, Contents, TabOrder |
TPdfUaFormFields | Dynamic array of TPdfUaFormField |
TPdfUaFormRepair | PageIndex, AnnotationIndex, LabelText, TooltipText, ContentsText, StructRole, TabOrder, Confidence |
TPdfUaFormRepairs | Dynamic array of TPdfUaFormRepair |
| Type | Public members |
|---|---|
IPdfExternalProfileResolver | Resolve |
TPdfExternalProfileRequest | Uri, ExpectedSha256, Colourants, MaxBytes |
TPdfExternalProfileResult | Profile, Sha256, ComponentCount, IsMulticolour |
TPdfHistoricalEvidence | Kind, Data, ProducedAt, ThisUpdate, NextUpdate |
TPdfHistoricalEvidenceArray | Dynamic array of TPdfHistoricalEvidence |
TPdfHistoricalVri | SignatureContents, EvidenceIndexes |
TPdfHistoricalVris | Dynamic array of TPdfHistoricalVri |
TPdfHistoricalEvidenceReport | ValidEvidence, InvalidEvidence, VriOwnershipValid, ErrorText |
IPdfHistoricalEvidenceValidator | Validate |
| Type | Public members |
|---|---|
TPdfDPartMetadata | Name, Value |
TPdfDPartMetadataArray | Dynamic array of TPdfDPartMetadata |
TPdfDPartRecord | ObjectNumber, PageStart, PageEnd, GtsXid, GtsScope, Metadata |
TPdfDPartRecords | Dynamic array of TPdfDPartRecord |
TPdfDPartQuery | Name, Value, MaxResults |
TPdfDPartQueryResults | Dynamic array of matching record indexes |
TPdfEInteractiveFacts | AllMultimediaEmbedded, AnnotationFlagsValid, AppearancesPresent, U3dVersionSupported, EncryptionAllowed, SignaturesValid, DocMdpAllowsChanges |
TPdfRasterStripInfo | Width, Height, BytesPerPixel, RowStride, Generation, PageObjectNumber, ImageObjectNumber, ContentStreamCount, HasInheritedResources |
TPdfRasterStripReport | RowsCopied, PeakBufferBytes, BytesCopied |
| Routine | Description |
|---|---|
ConvertPdfMeasurement | Applies the selected conversion factor to a measurement value |
FormatPdfMeasurement | Formats decimal, fractional, and percentage values with the configured prefix, unit label, and suffix |
PdfPageToGeo | Maps a page point through a GeoPDF viewport into geographic coordinates |
PdfGeoToPage | Maps geographic coordinates back into a GeoPDF page viewport |
QueryPdfGeoViewports | Returns viewport indexes matching a page and point |
ExecutePdfARepairPlan | Executes automatic repair steps under a snapshot and rolls back when a step or validation fails |
RepairPdfTextSemantics | Coordinates bounded font, ToUnicode, and ActualText repairs through a caller provider |
BuildPdfUa2AutoTagPlan | Builds confidence-filtered reading-order, role, artifact, and MCID decisions |
BuildPdfUa2FormRepairPlan | Builds form labels, tooltips, structure roles, tab order, and confidence values |
ResolvePdfXExternalProfile | Retrieves bounded external ICC data and verifies the expected SHA-256 value |
ValidatePdfHistoricalEvidence | Checks certificate, OCSP, CRL, time-window, and VRI ownership evidence |
QueryPdfDParts | Evaluates bounded DPM metadata queries |
BuildPdfDPartResourceCacheKey | Builds a stable scope-aware resource cache key for a DPart record |
ValidatePdfEInteractiveFacts | Reports independent multimedia, annotation, U3D, encryption, signature, and DocMDP failures |
StreamPdfRasterStrip | Copies complete PDF/R rows under a strict caller memory ceiling |