PDFiumPas Docs

Feature availability queries

Available in every edition since v3.245.0, updated 2026-10-31

FPdfEdition.QueryPdfFeature identifies a feature's minimum edition and actual implementation registration, separately from dependency and document checks supplied by the caller

TPdf.QueryFeatureStatus adds cheap checks against the current native runtime and document, and can inspect the presence of an initialized OCR provider without invoking it

function QueryPdfFeature(Feature: TPdfLibraryFeature): TPdfFeatureStatus; overload;
function QueryPdfFeature(Feature: TPdfLibraryFeature;
  const Checks: TPdfFeatureChecks): TPdfFeatureStatus; overload;

function TPdf.QueryFeatureStatus(Feature: TPdfLibraryFeature;
  const OcrProvider: IPdfOcrProvider = nil): TPdfFeatureStatus;

Implementation and edition

TPdfLibraryFeature belongs to FPdfEdition and is distinct from the existing PDFium.TPdfFeature unsupported-document-feature enumeration

Minimum editionFeature identifiers
ppeSinglepffDocumentRead, pffPdfAValidation, pffPdfUaValidation, pffPadesSigning, pffNativeXfa, pffFontOptimization, pffParagraphEditing, pffEncryptedFormWrites
ppeSmallBusinesspffOcrSearchLayer, pffTesseractOcr, pffXfaFlatten, pffStructuredOcr, pffSemanticDiff, pffPdfR, pffBusinessWorkflows, pffXfaMigrationWorkflow, pffSemanticReviewExports, pffRasterSourceValidation
ppeEnterprisepffPdfX, pffPdfE, pffPdfVT, pffPdfVT2s, pffPreflight, pffStandardsExecution, pffDocumentRepair, pffDocumentRepairProviders, pffPkcs11, pffRemoteSigning, pffPadesLtv, pffPadesTrust, pffTrustedList, pffRedaction, pffSanitise, pffWorkflowEvidence

ImplementationLinked reports registration by the individual implementation unit, named by ImplementationUnit; a partial Enterprise engine does not imply that OCR, remote signing or the other Enterprise implementations are linked

Since 3.269.0, pffStandardsExecution names FPdfStandardsExecution, which carries batch standards-rule execution, measurement and geospatial viewport helpers, repair-plan execution, provider-driven text-semantics repair and automatic tagging; pffDocumentRepairProviders names FPdfDocumentRepairProviders, which carries the concrete colour, structure and text IPdfDocumentARepairProvider implementations

Query them directly when an operation consumes those units rather than the reporting or orchestration layer: pffPreflight reports FPdfPreflightReport and pffDocumentRepair reports FPdfDocumentRepair, so neither on its own proves that batch execution or a concrete repair provider is linked

PdfSmallBusinessEdition and PdfEnterpriseEdition retain their existing edition-marker semantics; they do not replace these per-feature queries or verify a license entitlement

MinimumEdition reports the lowest TPdfProductEdition — ppeSingle, ppeSmallBusiness or ppeEnterprise — that carries the feature's implementation; document reading, standards validation and paragraph editing sit at ppeSingle, the OCR, XFA flattening and semantic workflows at ppeSmallBusiness, and repair, PKCS#11, redaction and evidence workflows at ppeEnterprise. A linked build can still report a missing implementation, so combine it with ImplementationLinked and State rather than treating it as a licence check

Checks and outcomes

TPdfFeatureChecks.Default leaves NativeRuntime, NativeExports, Provider and Document at pfcsNotChecked; the other values are pfcsNotRequired, pfcsReady and pfcsUnavailable

The query derives which checks apply to the selected feature; passing pfcsNotRequired for a required check leaves it unchecked and cannot bypass it

StateMeaning
pfsImplementationMissingThe actual implementation unit has not registered this feature
pfsDependencyMissingA required runtime, export set or configured provider is explicitly unavailable
pfsDocumentRejectedThe document prerequisite check explicitly failed
pfsNeedsChecksThe implementation is linked and one or more applicable checks remain unknown
pfsReadyThe implementation and all applicable supplied prerequisite checks are ready

The result retains each individual check, a human-readable Reason, and an optional DependencyDescription; DocumentReason from the caller is preserved when the aggregate state is pfsDocumentRejected

Precedence is missing implementation, missing dependency, rejected document, remaining checks, then ready; inspect the individual fields when multiple conditions apply

Bounded workflow profiles

Since v3.265.0, FPdfEdition.QueryPdfFeatureProfile describes individual XFA, OCR, tagging and redaction workflows; see the edition matrix for their product boundaries

function QueryPdfFeatureProfile(Profile: TPdfFeatureProfile): TPdfFeatureProfileStatus; overload;
function QueryPdfFeatureProfile(Profile: TPdfFeatureProfile;
  const Checks: TPdfFeatureChecks): TPdfFeatureProfileStatus; overload;

TPdfFeatureProfileStatus contains Profile, Supported, RequiresOptIn, Description, Limitations and the parent FeatureStatus

Parent featureProfile identifiers
pffXfaFlattenpfpXfaPositioned, pfpXfaStaticFlow, pfpXfaDynamic
pffStructuredOcrpfpOcrHeuristicLayout, pfpOcrNativeLayout, pfpOcrPhysicalRegions, pfpOcrReviewedTables
pffDocumentRepairpfpTagUntaggedDocument, pfpTagExistingTree, pfpTagUniqueNestedForms
pffRedactionpfpRedactionObjects, pfpRedactionIsolatedForms, pfpRedactionIsolatedPageGroups

Supported means that the bounded profile exists in the library; actual implementation linkage and readiness remain separate in FeatureStatus

pfpXfaDynamic always returns Supported=False and FeatureStatus.State=pfsUnsupportedProfile, even when all supplied checks are ready; an edition upgrade does not enable dynamic or script-driven XFA-to-AcroForm conversion

For supported profiles, the normal feature-state precedence applies; RequiresOptIn describes operation options and does not enable them

The supplied checks must be verified for the selected profile: Provider must include the required structured-layout or physical-region provider interface and optional exports, and Document must include the profile's ownership, geometry, review and resource limits

Do not reuse a parent feature's ready result as proof of profile readiness; these descriptive queries do not inspect files, discover provider interfaces, load libraries or execute work, and an operation still validates its own input

Additional profiles since 3.266.0

pfpNativeXfaRuntime describes core native V8/XFA interaction separately from unsupported dynamic conversion; pfpFontSelectedInstances, pfpParagraphBidi and pfpEncryptedAcroFormWrites describe recent bounded core processing profiles

pfpScanWorkflow, pfpSemanticReview and pfpXfaMigration require their actual FPdfBusinessWorkflows registration; pfpPdfRRaster requires the Small Business PDF/R engine

pfpPadesTrustedEvidence, pfpActiveContentSanitisation and pfpWorkflowEvidence describe Enterprise trust, sanitisation and evidence workflows

Existing feature/profile ordinals are unchanged; optional core font/paragraph units register only when actually linked, and linking the Enterprise aggregate alone does not imply every optional core unit is present

Native document helper

Since 3.267.0, linked pffSemanticReviewExports is ready without a runtime, provider or document; it describes serialization only, while pfpSemanticReview combines export linkage with native pffSemanticDiff readiness

pffRasterSourceValidation and pfpPdfRSourceValidation describe the Small Business exact-byte/native-fact helper, separately from the byte-level PDF/R engine

TPdf.QueryFeatureStatus never loads PDFium or optional libraries, calls an OCR provider, requests a signature, renders a page, changes selection or changes the current page

For document reading it checks the already initialized runtime; for OCR it additionally checks the editing/rendering export set, provider presence, an active nonempty document and modification permission on an encrypted source

It reports missing documents, repair of a signed source and encrypted static-XFA sources explicitly; other format-specific inspections remain unchecked rather than being inferred from a successfully opened file

Byte-level XFA and standards engines have different native requirements from wrapper save operations; the generic query describes the registered engine and the checks supplied for the requested context

Optional providers

Linking FPdfOcrTesseract does not establish library, export or language-model readiness; first initialize the configured provider with TryCreatePdfTesseractOcrProvider and use that result when supplying Checks.Provider

For signing, PKCS#11 and trusted-list operations the caller similarly supplies checks for the actual credentials, session, evidence or authentication policy; the query performs no network requests or credential probing

pfsReady describes prerequisite readiness, not a guarantee that arbitrary operation options, source content, provider output or later runtime work will succeed; operation-specific validation and the documented format limits still apply

uses FPdfEdition;

Status := Pdf.QueryFeatureStatus(pffOcrSearchLayer, OcrProvider);
if Status.State = pfsReady then
  Pdf.ApplyOcrSearchLayer(OcrProvider, Options, Report, nil);

Implementation registration is internal startup bookkeeping; applications should not call RegisterPdfFeature to simulate feature availability

Edition exceptions and C++Builder

Since v3.255.0, the core EPdfEditionRequired base declares explicit parameterless and message constructors. Generated C++Builder descendants can safely default-construct with empty Message/Feature values; the existing EPdfSmallBusinessRequired.CreateFeature and EPdfEnterpriseRequired.CreateFeature paths retain their feature names and edition diagnostics

Constructing an exception does not register an implementation. Actual Small Business/Enterprise package initialization and individual feature hooks still determine availability