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 initialised 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;
TPdfLibraryFeature belongs to FPdfEdition and is distinct from the existing PDFium.TPdfFeature unsupported-document-feature enumeration
| Minimum edition | Feature identifiers |
|---|---|
ppeSingle | pffDocumentRead, pffPdfAValidation, pffPdfUaValidation, pffPadesSigning, pffNativeXfa, pffFontOptimization, pffParagraphEditing, pffEncryptedFormWrites |
ppeSmallBusiness | pffOcrSearchLayer, pffTesseractOcr, pffXfaFlatten, pffStructuredOcr, pffSemanticDiff, pffPdfR, pffBusinessWorkflows, pffXfaMigrationWorkflow, pffSemanticReviewExports, pffRasterSourceValidation |
ppeEnterprise | pffPdfX, 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 licence 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
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
| State | Meaning |
|---|---|
pfsImplementationMissing | The actual implementation unit has not registered this feature |
pfsDependencyMissing | A required runtime, export set or configured provider is explicitly unavailable |
pfsDocumentRejected | The document prerequisite check explicitly failed |
pfsNeedsChecks | The implementation is linked and one or more applicable checks remain unknown |
pfsReady | The 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
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 feature | Profile identifiers |
|---|---|
pffXfaFlatten | pfpXfaPositioned, pfpXfaStaticFlow, pfpXfaDynamic |
pffStructuredOcr | pfpOcrHeuristicLayout, pfpOcrNativeLayout, pfpOcrPhysicalRegions, pfpOcrReviewedTables |
pffDocumentRepair | pfpTagUntaggedDocument, pfpTagExistingTree, pfpTagUniqueNestedForms |
pffRedaction | pfpRedactionObjects, 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
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
Since 3.267.0, linked pffSemanticReviewExports is ready without a runtime, provider or document; it describes serialisation only, whilst 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 initialised 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
Linking FPdfOcrTesseract does not establish library, export or language-model readiness; first initialise 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
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 initialisation and individual feature hooks still determine availability