On Windows, use VCL or the Lazarus 3.8+ Windows widget set with Free Pascal 3.2.2 (default) or 3.3.1. Native Free Pascal/LCL targets use Linux Qt6 or macOS Cocoa and a matching PDFium shared library; native LCL setup explains toolchain and runtime requirements. The Delphi/C++Builder VCL wrapper remains a Windows option; native Delphi macOS crypto and timestamp helpers are qualified separately from that visual wrapper
Version 3.153.0 introduces the PDFIUMPAS_CORE_ONLY framework-independent build of the TPdf document API; the bounded TPdfDocumentCore snapshot core together with TPdf.CreateCoreSnapshot give headless document handoff in every build
| Unit | Description |
|---|---|
FPdfDocumentCore | Framework-independent bounded document core carrying a caller-resolved native API table for headless load, text, render, page-edit and save workflows |
FPdfDocumentAssets | Document-level Collection schema, item and embedded-resource read/write with direct RichMedia asset discovery |
FPdfFontSubset | Portable retained-ID TrueType subsetting with composite closure |
FPdfFontVariation | Optional HarfBuzz axis pinning into static TrueType instances with retained glyph IDs |
FPdfHarfBuzzSubset | Optional retained-ID font-program subsetting with native dependency closure and qualified CBDT/CBLC bitmap preservation |
FPdfBitmapFont | Bounded CBDT PNG glyph and Unicode-scalar text writing through CreateHarfBuzzBitmapTextPdf, automatic Type3 font groups, shared images/alpha, nominal space advances and native Form import/save integration |
FPdfDocumentFontSubset | Shared embedded-font replacement with proven CID mapping coverage, opt-in static default instances for variable TrueType fonts, retained missing-glyph outlines and actual document savings |
FPdfDocumentTextRepair | Explicit TrueType and CFF embedding with Identity CIDToGIDMap inference, reviewed ToUnicode/ActualText and bounded native pixel verification |
FPdfDocumentXfaFlatten | Bounded static-XFA flattening into byte-level AcroForm fields, widgets and appearance streams (Small Business and Enterprise editions) |
FPdfOcrLayout | Structured OCR lines, paragraph blocks and optional physical regions, reviewed tables, preprocessing source geometry and structured-text/HTML reflow (Small Business and Enterprise editions) |
FPdfReport | Bounded report serialisation, single-line text escaping, UTF-8 file URI encoding, byte identities and owned source snapshots (every edition) |
FPdfBusinessWorkflows | Owned scan processing, semantic-review reports and static XFA migration assessment (Small Business and Enterprise) |
FPdfWorkflowEvidence | Computed byte identities with explicit operation/profile context (Enterprise) |
PdfComponentVersion: string | Returns the version number of the linked component, such as 3.434.24, without creating a native document; TPdf.About keeps the version and copyright label |
TPdfOcrSemanticReview | Semantic OCR proposals with independent layout snapshots, explicit approval, provider/reviewer provenance and validated reading-order remapping for structured text and HTML reflow (Small Business and Enterprise editions) |
BindPdfOcrReviewedSource | Binds source-hashed reviewed OCR words to unique real invisible page objects using owned nongenerated Unicode and full native quadrilaterals, preserving exact saved bytes and input stream position (Small Business and Enterprise editions) |
FPdfDocumentRepairProviders | Transactional colour, reviewed structure and font/text resource repair providers (Enterprise edition) |
FPdfDocumentStructure | Snapshot-bound structure editing, existing page-MCID binding, ParentTree owner validation, retained MCR/OBJR identities and full-page/appearance Form usage review |
FPdfDocumentRepair | Reviewed full tagging or existing-tree supplementation with lists, table grids, Unicode IDs and header relationships; exact-source reviewed OCR to searchable tagged output; annotation/widget preservation in supplementation and transactional PDF/A security/metadata repairs (Enterprise edition) |
FPdfAsync | Provides structured cancellation, configurable futures, checked wait contexts and a bounded priority worker pool that shuts down in a coordinated fashion |
FPdfNativeWorker | Runs trusted native workers in Windows LPAC jobs or Free Pascal Linux namespaces with verified read-only storage, memory/CPU limits, hard native-call cancellation, bounded framed responses and transactional output publication. Linux authorisation and cleanup handle supervisor exit, termination of a surviving native worker through its retained process descriptor included |
FPdfMatrix | Provides affine composition, diagnostics, fitted rectangle mapping, inverse geometry, decomposition, and bulk point or rectangle transforms for PDFium page-object APIs |
FPdfMeasure | Adds TPdf.MeasureText, MeasureTextWidth, and WrapText helper methods for text layout in PDF user units |
FPdfLayout | Builds paginated, tagged, grid-based, Markdown, HTML, table, image, link, and reusable-node layouts |
FPdfParagraphEdit | Provides paragraph-level editing, vertical column progression, justification, balancing, and shared ActualText/PCM2 cluster maps |
FPdfStreamInspect | Provides bounded arbitrary stream object inventory, raw window copying, and filter decoding through TPdfStreamInspector |
FPdfTextShaping | Shapes bidirectional Unicode text into bounded visual glyph runs with an extensible shaper interface and a Windows Uniscribe implementation |
FPdfProduction | Provides bounded colour, font, SVG, replacement, XFA dataset merging with Unicode SOM paths, barcode, Portfolio, and RichMedia production workflows |
FPdfDiff | Resource-limited exact and optional similar-page alignment, Unicode text changes and connected visual regions |
FPdfMerge | Transactional page merging with outlines, named destinations and internal links, checked by reopening independently. Replacing a named destination also refreshes matching legacy catalogue keys |
FPdfOcrTesseract | Optional Tesseract OCR provider with explicit dependency and recognition limits (Small Business and Enterprise editions) |
FPdfFormMerge | Editable selected/repeated-page form merging with independent/shared passes, state buttons and isolated appearance resources |
FPdfBarcodeZXing | Optional native barcode encoding and recognition |
FPdfStyledEdit | Checked styled PDF text replacement and selected per-Do Form object batches with preview, rollback, complete declaration restoration and preserved external semantic ownership |
FPdfSemanticDiff | Stable annotation and form changes, optional document metadata and mapped internal-link destinations with before/after overlay coordinates (Small Business and Enterprise editions) |
FPdfColourLittleCms | Optional native ICC transformation of original Gray, RGB, CMYK and PCS Lab samples |
FPdfDocumentColour | Bounded PDF document colour conversion with calibrated, indexed and pattern spaces, direct/indirect axial/radial and two-input Type 1 shading dictionaries, Type 4-7 mesh functions, matching encoded components and adaptive nonmatching component meshes with source-space interpolation, optional bounded axial/function-mesh tessellation, Indexed vertex palette expansion, separate colour/geometry tolerances and resource budgets, all sampled bit depths with linear or cubic tensor interpolation, shared source-function DAG identity, aggregate parsed-node/storage budgets and a shared function-work limit, calculator functions and mixed component arrays, explicit paint policy and opt-in matching-ICC Gray/RGB/CMYK Form/page-group and Alpha-mask support, with preserved encoded target ink, precision-aware unsigned JPX sYCC, signed/unsigned CIELab through floating PCS Lab and observable optional device fallback for implicit image colours |
FPdfRedaction | Transactional geometry and source inspection, with explicit isolated-object and complete device-space composition raster policies, retained-layer Form/image-alias revocation, fresh-document source isolation and saved-output composition checks (geometry helpers in every edition; redaction itself requires the Enterprise edition) |
FPdfRedactionMuPdf | Optional colour-managed complete-composition source rasteriser through a caller-supplied native bridge (Enterprise edition) |
FPdfStandardsExecution | Executes measurement, GeoPDF, PDF/A repair, PDF/UA, PDF/X, PAdES evidence, PDF/VT, PDF/E, and PDF/R workflows (Enterprise edition) |
FPdfAsn1 | Encodes, navigates, decodes, and validates bounded ASN.1 DER data with high-tag identifiers, typed values, canonical checks, and resource limits |
FPdfPreflightReport | Builds queryable standards reports, PDF/A repair plans, PDF/X production preflight, declarative rules, resource budgets, isolated parallel validation, aggregation, and machine-readable export (Enterprise edition) |
FPdfBenchmark | Runs bounded performance and conformance corpora with load, first-page, rendering, saving, memory, semantic, pixel, and independent-reopen gates |
FPdfXmp | Reads, edits, and incrementally writes bounded namespace-aware XMP packets whilst preserving wrapper metadata and mixed resource content order, with duplicate-attribute and undeclared-prefix rejection |
FPdf standards helpers | Standalone associated-file, PAdES, PDF/A, PDF/E, PDF/R, PDF/UA, PDF/VT, and PDF/X validation and save APIs |
FPdfThumbnail | Provides the TPdfThumbnailView scrollable thumbnail navigation control |
FPdfCompress | Stream-level FlateDecode compression, default open-action injection, post-save normalisation, and PDF version inspection used by the TPdf save pipeline |
FPdfContentNormalize | Scans and normalises PDF content sequences, including bounded inline-image handling |
FPdfXfdf | Standalone XFDF field and annotation exchange with checked XML boundaries, explicit empty values and bounded extension skipping, without loading pdfium.dll |
FPdfEdit | PDFium page-object editing binding plus standalone ARGB colour helper functions |
FPdfPdfvtMime | Builds and validates single-file PDF/VT-2s MIME part streams carrying an inline PDF/VT document, reusable attachments, and ICC profile (Enterprise edition). MIME inspection accepts inputs up to 256 MiB |
FPdfIccProfile | Performs bounded ICC header and tag-table validation with MD5, SHA-256, profile metadata, checked locale-record ranges and Unicode description matching |
FPdfEncrypt | Writes AESV3-CBC or ISO/TS 32003 AESV4-GCM encrypted PDFs and authenticates AESV4 compatibility decryption |
FPdfAes | Pure-Pascal AES-128 and AES-256 block cipher with key expansion and AES-256-CBC stream wrappers |
FPdfHmac | Pure-Pascal HMAC-SHA256, HKDF-SHA256, constant-time byte comparison, and secure byte clearing |
FPdfMac | Builds and verifies ISO/TS 32004 standalone CMS AuthenticatedData tokens |
FPdfAesGcm | Pure-Pascal AES-GCM authenticated encryption for AES-128 and AES-256 keys, backed by fixed-size GHASH scratch storage |
FPdfSha256 | Pure-Pascal SHA-256 hash with incremental and one-shot helpers |
FPdfSha512 | Pure-Pascal SHA-512 and SHA-384 hashing sharing one context type |
FPdfSha3 | Pure-Pascal SHA3-256, SHA3-384, SHA3-512, and streaming SHAKE256 hashing for PDF 2.x cryptographic extensions |
FPdfCms | Builds RFC 5652 CMS and CAdES SignedData from a detached digest and an ICmsSigner crypto backend |
FPdfTsa | RFC 3161 timestamp authority client for the PAdES B-T and B-LTA profiles |
FPdfTsaWin | Windows WinHttp timestamp transport backend for RFC 3161 requests |
FPdfTsaFpc | libcurl timestamp transport for RFC 3161 requests on Linux and macOS |
FPdfTsaPosix | Native Delphi POSIX HTTP transport for RFC 3161 timestamps, with finite request allowances |
FPdfCrypto | PAdES signer-resolution facade over the active crypto backend |
FPdfTrustedList | Authenticated European trusted-list parsing, caching, updating, trust anchors, and qualified-service evaluation (Enterprise edition) |
FPdfCryptoWin | Windows backend for CNG signing, detached CMS verification, signer certificate extraction, and cache-only system trust evaluation |
FPdfCryptoMac | macOS Keychain signing and CMS verification through CMSDecoder, a checked native SecKey RSA-PSS path and independent SecTrust evaluation |
FPdfCryptoSsl | Explicit OpenSSL signing credentials, independent CMS verification, bounded HTTP(S) and Windows/FPC Unix LDAP certificate/CRL retrieval with CryptoLdapAvailable readiness, fixed-address LDAP with original-host TLS validation on FPC Linux, macOS, FreeBSD, NetBSD, DragonFly BSD and OpenBSD through TPdfLdapTlsOptions, DER PKCS#7 AIA certificate bundles as untrusted chain candidates, OCSP evidence, and per-signer diagnostics that retain the preceding CRL verdict when no OCSP response or responder is examined |
FPdfCryptoHttpCurl | FPC libcurl HTTP(S) transport backend behind TPdfCryptoFetchSession certificate, CRL and OCSP retrieval on Linux and macOS, and the shared readiness gate for the FPdfTsaFpc timestamp transport |
FPdfCryptoOcsp | Resource-limited OCSP DER and freshness filtering ahead of native responder authentication |
FPdfPkcs11 | PKCS#11 token signing backend that keeps the private key inside the token, on every platform (Enterprise edition) |
FPdfSha1 | Pure-Pascal SHA-1 used only to match a certificate by thumbprint, never as a signing digest |
FPdfBidi | Unicode Bidirectional Algorithm (UAX #9) resolution and visual reordering, with no platform dependency |
FPdfTextShapingHb | HarfBuzz text shaping backend for platforms without Uniscribe |
| Method | Description |
|---|---|
CreateDocument | Create a new empty PDF document |
LoadDocument(Data: TMemoryStream; Buffered: Boolean = True) | Load PDF document from memory stream |
LoadDocument(Data: Pointer; Size: NativeUInt; Buffered: Boolean = True) | Load PDF document from memory buffer |
LoadDocument | Load PDF document from FileName |
LoadDocument(const Data: TBytes; Buffered: Boolean = True) | Load PDF document from TBytes |
LoadCustomDocument(AStream: TStream; AOwnsStream: Boolean = False) | Stream a PDF document from any TStream via FPDF_LoadCustomDocument; PDFium pulls blocks on demand instead of copying the entire file into memory. AOwnsStream = True transfers stream lifetime to the TPdf instance |
TPdfLoadOptions, TPdfLoadReport, LastLoadReport | Select compatible, strict, or recovery loading and inspect bounded xref audit evidence |
SaveAsRepaired | Write a full single-revision copy and independently strict-load it before delivery |
TPdfRandomAccessStore | Thread-safe seekable storage with positioned I/O and one-way spill from bounded memory to private delete-on-close temporary storage |
SaveMemoryLimit, SaveTemporaryDirectory, LastSaveSpillCount, LastSaveLargestMemoryBuffer | Configure and measure bounded working storage used by TPdf save staging |
SaveAs(Stream: TStream; Option: TSaveOption = saNone; PdfVersion: TPdfVersion = pvUnknown): Boolean | Save document to stream with optional compression and explicit PDF 1.3 through PDF 2.0 conformance checks; encrypted explicit-version output and pv13 with saIncremental raise EPdfError |
SaveAs(const FileName: string; Option: TSaveOption = saNone; PdfVersion: TPdfVersion = pvUnknown): Boolean | Atomically save document to file with optional compression and explicit PDF 1.3 through PDF 2.0 conformance checks; a failed normalisation or validation leaves an existing target unchanged |
SaveSourceBytes(Stream: TStream): Boolean, SaveSourceBytes(const FileName: string): Boolean | Write the exact source bytes the document is loaded from without a native re-save, which keeps a signed document valid after SetFormFieldValues appended its field revision |
SaveAsLinearized(Stream: TStream; Option: TSaveOption = saNone; PdfVersion: TPdfVersion = pvUnknown): Boolean | Write Annex F Fast Web View output with first-page grouping and verified page-offset and shared-object hint tables |
SaveAsLinearized(const FileName: string; Option: TSaveOption = saNone; PdfVersion: TPdfVersion = pvUnknown): Boolean | Atomically write Fast Web View output through a same-directory temporary file |
SaveAsObjectStream(Stream: TStream; Option: TSaveOption = saNone; PdfVersion: TPdfVersion = pvUnknown; MaxObjectsPerStream: Integer = 100; MaxDecodedBytesPerStream: Integer = 65536): Boolean | Write bounded PDF 1.5+ object streams with a complete type-2 xref stream |
SaveAsObjectStream(const FileName: string; Option: TSaveOption = saNone; PdfVersion: TPdfVersion = pvUnknown; MaxObjectsPerStream: Integer = 100; MaxDecodedBytesPerStream: Integer = 65536): Boolean | Atomically write modern object-stream output through a same-directory temporary file |
SaveAsNormalizedContent(Stream: TStream; out Report: TPdfContentNormalizeReport; const Options: TPdfContentNormalizeOptions; SaveOption: TSaveOption = saNoIncremental; PdfVersion: TPdfVersion = pvUnknown): Boolean | Write normalised and coalesced logical page content with bounded syntax validation |
SaveAsNormalizedContent(const FileName: string; out Report: TPdfContentNormalizeReport; const Options: TPdfContentNormalizeOptions; SaveOption: TSaveOption = saNoIncremental; PdfVersion: TPdfVersion = pvUnknown): Boolean | Atomically write normalised-content output through a same-directory temporary file |
SaveAsReachable(Stream: TStream; out Report: TPdfPruneReport; AllowSignedDocument: Boolean = False): Boolean | Rewrite the document as a single clean revision keeping only the objects reachable from the catalog and trailer /Info |
SaveAsReachable(const FileName: string; out Report: TPdfPruneReport; AllowSignedDocument: Boolean = False): Boolean | Atomically write a pruned single-revision copy through a same-directory temporary file |
SaveAsDeduplicated(Stream: TStream; out Report: TPdfDedupReport; AllowSignedDocument: Boolean = False): Boolean | Rewrite the document sweeping unreachable objects and merging compatible fonts, images, and form XObjects onto one representative |
SaveAsDeduplicated(const FileName: string; out Report: TPdfDedupReport; AllowSignedDocument: Boolean = False): Boolean | Atomically write a deduplicated single-revision copy through a same-directory temporary file |
SaveAsFlateRecompressed(Stream: TStream; const Options: TPdfFlateRecompressOptions; out Report: TPdfFlateRecompressReport; AllowSignedDocument: Boolean = False): Boolean | Rewrite the document re-encoding FlateDecode streams at maximum compression when the saving clears a caller threshold |
SaveAsFlateRecompressed(const FileName: string; const Options: TPdfFlateRecompressOptions; out Report: TPdfFlateRecompressReport; AllowSignedDocument: Boolean = False): Boolean | Atomically write a Flate-recompressed copy through a same-directory temporary file |
SaveAsInlineImagesExternalised(Stream: TStream; const Options: TPdfInlineImageExternaliseOptions; out Report: TPdfInlineImageExternaliseReport; AllowSignedDocument: Boolean = False): Boolean | Rewrite the document extracting BI/ID/EI inline images into reusable XObjects and replacing inline blocks with Do operators |
SaveAsInlineImagesExternalised(const FileName: string; const Options: TPdfInlineImageExternaliseOptions; out Report: TPdfInlineImageExternaliseReport; AllowSignedDocument: Boolean = False): Boolean | Atomically write an externalised copy through a same-directory temporary file |
SaveAsReproducible(Stream: TStream; out Report: TPdfReproducibleReport; AllowSignedDocument: Boolean = False): Boolean | Rewrite the document stripping non-deterministic timestamps and /ID so repeated saves are byte-identical |
SaveAsReproducible(const FileName: string; out Report: TPdfReproducibleReport; AllowSignedDocument: Boolean = False): Boolean | Atomically write a reproducible copy through a same-directory temporary file |
ExportObjectGraph(Stream: TStream; const Options: TPdfObjectGraphInspectOptions; out Report: TPdfObjectGraphReport): Boolean | Export active direct and object-stream values as bounded typed JSON with optional encoded-stream SHA-256 digests |
SaveAsObjectGraphPatched(Stream: TStream; const Operations: TPdfObjectPatchOperations; out Report: TPdfObjectGraphReport; AllowSignedDocument: Boolean = False): Boolean | Apply transactional typed top-level dictionary patches and strict-load the staged result before delivery |
SaveAsObjectGraphPatched(const FileName: string; const Operations: TPdfObjectPatchOperations; out Report: TPdfObjectGraphReport; AllowSignedDocument: Boolean = False): Boolean | Atomically replace a file after the complete object-graph patch transaction succeeds |
ExportObjectGraph / SaveAsObjectGraphPatched object-graph envelope | Object-graph inspection and patching model page shared by both methods, covering the versioned pdf-object-graph-v1 envelope and transactional patches verified by strict loading |
InspectOptionalContent(out Inventory: TPdfOptionalContentInventory; Usage: TPdfOptionalContentUsage = ocuView; ConfigurationIndex: Integer = -1): Boolean | Read the optional-content model and effective native rendering state |
SaveAsOptionalContentConfigured(Stream: TStream; const Changes: TPdfOptionalContentStateChanges; const Options: TPdfOptionalContentConfigureOptions; out Report: TPdfOptionalContentConfigureReport; AllowSignedDocument: Boolean = False): Boolean | Write and strictly verify caller-selected optional-content state |
SaveAsOptionalContentCreated(Stream: TStream; const Groups: TPdfOptionalContentCreateGroups; const Memberships: TPdfOptionalContentCreateMemberships; const Forms: TPdfOptionalContentCreateForms; out Report: TPdfOptionalContentCreateReport; AllowSignedDocument: Boolean = False): Boolean | Create optional-content groups, memberships and OC-gated form layer content within a verified copy |
SaveAsShadingCreated(Stream: TStream; const Shadings: TPdfShadingCreateShadings; out Report: TPdfShadingCreateReport; AllowSignedDocument: Boolean = False): Boolean | Create axial and radial shading gradient fills under verified native rendering |
BeginEditTransaction(const LabelText: WString = ''; AllowSignedDocument: Boolean = False) | Start an atomic document edit transaction from a reproducible native snapshot |
CommitEditTransaction: Boolean | Store the changed transaction as a bounded SHA-256-chained bidirectional delta |
RollbackEditTransaction | Restore the pre-transaction document without adding an undo entry |
BeginPageObjectEditTransaction(AllowSignedDocument: Boolean = False; PreserveSourceEvents: Boolean = False) | Start an atomic page-scoped batch, optionally keeping supported source semantic events intact |
CommitPageObjectEditTransaction: Boolean | Generate page content once and commit all successful native mutations |
RollbackPageObjectEditTransaction | Restore the validated pre-batch document snapshot |
PageObjectEditTransactionStatus: TPdfPageObjectEditTransactionStatus | Report transaction state, page, mutation count, and content-generation count |
BeginPageObjectEditTransaction / CommitPageObjectEditTransaction / RollbackPageObjectEditTransaction / PageObjectEditTransactionStatus | Atomic page-scoped edit transaction model covering the bounded snapshot, batched native mutations, a single content regeneration pass, and rollback |
UndoEdit: Boolean | Apply and verify the inverse delta at the current journal position |
RedoEdit: Boolean | Apply and verify the forward delta after the current journal position |
EditCanUndo: Boolean | Report whether a committed document transaction can be undone |
EditCanRedo: Boolean | Report whether an undone document transaction can be redone |
ClearEditJournal | Release committed edit history while keeping the current document state |
ConfigureEditJournal(const Options: TPdfEditJournalOptions) | Set entry, stored-delta, and snapshot limits |
GetEditJournalInfo: TPdfEditJournalInfo | Read journal position, labels, fingerprints, limits usage, and undo or redo availability |
ExportEditJournal(Stream: TStream) | Write the portable bounded journal format |
ImportEditJournal(Stream: TStream; ApplyRecordedPosition: Boolean = True; AllowSignedDocument: Boolean = False) | Validate and replay a journal only against its root or recorded fingerprint |
SaveRecoverySnapshot | Write a checksummed recovery package containing source fingerprints and the verified edit journal |
RestoreRecoverySnapshot | Restore a recovery package only after checksum, source, journal, and result verification |
InspectRecoverySnapshot | Read recovery metadata and validate the package without applying edits |
EnableRecoveryAutosave(const FileName: string) | Atomically refresh an explicit recovery file after commit, undo, or redo |
DisableRecoveryAutosave | Stop commit-driven recovery writes without deleting an existing package |
RecoveryAutosaveFileName: string | Read the absolute recovery autosave path or an empty string when disabled |
ValidatePagePlan(const Plan: TPdfPagePlan; ImportedSource: TPdf = nil; AllowSignedDocument: Boolean = False): TPdfPagePlanValidationReport | Compile a page operation into an exact old-to-new map and report navigation, label, form, structure, imported-feature, and signature effects without changing either document |
GenerateLayout(Layout: TPdfLayoutDocument; out Plan: TPdfLayoutPlan; AllowSignedDocument: Boolean = False): Boolean | Measure and paginate first, then atomically append native text, rules, table borders, images, pages, and reusable page XObjects with stable page totals |
GeneratePagedLayout(Layout: TPdfLayoutDocument; PagedPlan: TPdfLayoutPagedPlan; out Plan: TPdfLayoutPlan; AllowSignedDocument: Boolean = False): Boolean | Stream commands to seekable storage, materialise one bounded page array at a time, and append PDFium pages sequentially |
GenerateTaggedLayout(Layout: TPdfLayoutDocument; out Plan: TPdfLayoutPlan; const Language: string = 'en-US'): Boolean | Generate a new semantic layout document with native MCIDs, a complete structure and parent tree, alternate text, table header associations, and tagged links |
TPdfLayoutDocument.AddLink / AddSemanticNode / SetLastItemSemantics | Attach URI links, non-visual semantic containers, and role, parent, ID, language, alternate-text, list, and table metadata to layout items |
TPdfLayoutDocument.AddTable(Table: TPdfLayoutTable) | Snapshot and paginate a table with captions, repeated headers, splittable rows, merged cells, links, borders, and continuous tagged semantics |
TPdfLayoutDocument.AddCachedNode(Node: TPdfLayoutCachedNode; Height: Single = 0; Width: Single = 0) | Build a lazy node once, cache its measured plan, and emit repeated placements from one native Form XObject template |
BeginIncrementalSave(AllowSignedDocument: Boolean = False) | Start a dirty-object revision session from a stable semantic snapshot while retaining the exact encrypted or unencrypted source prefix |
CommitIncrementalSave(Stream: TStream; out Info: TPdfIncrementalCommitInfo): Boolean | Append only changed or new indirect objects, inheriting encrypted security parameters and validating the complete revision chain |
CommitIncrementalSave(const FileName: string; out Info: TPdfIncrementalCommitInfo): Boolean | Durably flush, reopen, validate, and atomically replace through a same-directory side file while rolling session state back after failure |
EndIncrementalSave | Release the baseline and accumulated revision state |
SaveAsEncrypted(const FileName: string; const Options: TPdfEncryptOptions): Boolean | Saves the active PDF with AESV3-CBC or ISO/TS 32003 AESV4-GCM encryption |
SaveAsEncryptedToStream(Stream: TStream; const Options: TPdfEncryptOptions): Boolean | Writes the encrypted PDF output into any seekable TStream without staging through disk |
ValidatePdfMac(const Password: AnsiString): TPdfMacValidationResult | Validates an ISO/TS 32004 standalone PDF MAC against the original loaded source bytes |
SaveAsWithAssociateFiles(const FileName: string; const Options: TAssocFilesOptions): Boolean | Saves the active PDF to a file path while injecting associated files into the catalog or pages conforming to ISO 32000-2 §7.11.4 |
SaveAsWithAssociateFilesToStream(Stream: TStream; const Options: TAssocFilesOptions): Boolean | Writes the PDF output with injected associated files into any seekable TStream without staging through disk |
CompareWith(Other: TPdf; const Options: TPdfDocumentDiffOptions; out Report: TPdfDocumentDiffReport): Boolean | Compares page count, geometry, rotation, extracted text, and tolerance-aware rendered pixels |
ImportImposed(const Options: TPdfImpositionOptions; out Plan: TPdfImpositionPlan; out Report: TPdfImpositionExecutionReport): TPdf | Builds N-up or booklet output through batched native PDFium composition and reports execution counts |
ImportPages(Pdf: TPdf; const Range: string; PageNumber: Integer = 1): Boolean | Import pages from another PDF document. Range format: '1,3,5-7' |
ImportPreferences(Pdf: TPdf): Boolean | Import viewer preferences from another PDF |
| Method | Description |
|---|---|
AddPage(PageNumber: Integer; Width, Height: Double) | Add a new page at the specified one-based position with given dimensions (in points, 72 points = 1 inch). Passing 0 is accepted as a compatibility alias for inserting the first page, and the inserted page becomes current |
DeletePage(PageNumber: Integer) | Delete page at specified index |
ExtractThumbnail(PageNumber: Integer): TBitmap | Decode the embedded thumbnail for any one-based page without changing the active page |
GetPageBox(Box: TPdfPageBox): TPdfRectangle | Read the selected page dictionary box from the current page |
RemoveObject(Index: Integer; DestroyObject: Boolean = True) | Remove a page object from the current page and regenerate page content |
ReloadPage | Reload the current page |
SetPageBox(Box: TPdfPageBox; const Rectangle: TPdfRectangle) | Set the selected page dictionary box on the current page |
UpdatePage | Apply pending changes to the current page (calls FPDFPage_GenerateContent) |
| Method | Description |
|---|---|
Text(StartIndex: Integer = 0; Count: Integer = MaxInt): WString | Extract text from current page |
TextInRectangle(Left, Top, Right, Bottom: Double): WString | Extract text from rectangular area (page coordinates) |
TextInRectangle(Rectangle: TPdfRectangle): WString | Extract text from rectangle |
ReadTextPageSnapshot(PageNumber: Integer; const Options: TPdfTextSnapshotOptions; out Status: TPdfTextSnapshotStatus): TPdfTextPageSnapshot | Captures text, Unicode, geometry, style, and normalised text-object metadata in one explicitly bounded native pass |
TextPageSnapshot[PageNumber: Integer]: TPdfTextPageSnapshot | Returns a deep caller-owned copy from the revision-aware text snapshot LRU without changing the active page |
TextSnapshotCacheCapacity, TextSnapshotCacheCount, TextSnapshotCacheHitCount, TextSnapshotCacheMissCount | Configures bounded retention and reports cache occupancy, hits, and misses |
TPdfTextPageSnapshot / TPdfTextSnapshotStatus | Caller-owned text snapshot record and bounded-read status model, plus the behaviour of the revision-aware LRU cache |
ReadPageObjectsSnapshot(PageNumber: Integer; const Options: TPdfPageObjectSnapshotOptions; out Status: TPdfPageObjectSnapshotStatus): TPdfPageObjectsSnapshot | Captures immutable page-object geometry, style, marks, clips, image facts, and text facts under explicit budgets |
ReadPageContentSemanticFrame(PageNumber: Integer): TPdfContentSemanticFrame | Inspect caller-owned serialised declaration occurrences and verified native object boundaries for source-preserving editing |
PageObjectsSnapshot[PageNumber: Integer]: TPdfPageObjectsSnapshot | Returns a deep caller-owned copy from the revision-aware page-object snapshot LRU |
PageObjectSnapshotCacheCapacity, PageObjectSnapshotCacheCount, PageObjectSnapshotCacheHitCount, PageObjectSnapshotCacheMissCount | Configures bounded page-object retention and reports cache occupancy, hits, and misses |
TPdfPageObjectsSnapshot / TPdfPageObjectSnapshotStatus | Caller-owned page-object snapshot record and bounded-read status model, plus the behaviour of the revision-aware LRU cache |
GetStructuredText(const Options: TPdfStructuredTextOptions): TPdfStructuredTextPage | Build a bounded page, block, line, and styled-span model with native character geometry and optional semantic enrichment |
ExtractTables(const Options: TPdfTableExtractionOptions): TPdfTables | Detect ruled and whitespace-aligned tables on the current page with merged cells, confidence, CSV, and JSON output |
ExtractDocumentTables(const Options: TPdfTableExtractionOptions): TPdfTables | Extract bounded tables across every page and mark matching cross-page continuation chains |
BuildReflowDocument(const Options: TPdfReflowOptions; const CancellationToken: IPdfCancellationToken = nil): TPdfReflowDocument | Build a bounded semantic page tree and emit responsive, escaped HTML with headings, paragraphs, lists, figures, and span-aware tables |
ApplyOcrSearchLayer(Provider, Options, Report, CancellationToken): Boolean | Render selected pages and add confidence-filtered invisible OCR text with complete Unicode-to-CID encoding, supplementary characters supported by the selected font, current-page rollback and preserved image resources (Small Business and Enterprise editions) |
AddText(const Text, Font: WString; FontSize: Single; X, Y: Double; Color: TColor = clBlack; Alpha: Byte = $FF; Angle: Double = 0.0) | Add text at specified position with font, colour, transparency, and rotation angle |
SetText(ObjectIndex: Integer; const Text: WString) | Set text for an existing text object (undocumented PDFium API, may cause formatting issues) |
SetTextPositions(ObjectIndex: Integer; const Positions: TPdfSingleArray) | Set per-character positions for an existing text object. Positions start with the second character and are relative to the text object origin |
FindFirst(const Text: WString; Options: TSearchOptions = []; StartIndex: Integer = 0; DirectionUp: Boolean = True): Integer | Start text search, returns character index or -1 if not found |
FindNext: Integer | Continue text search forward, returns character index or -1 |
FindPrevious: Integer | Continue text search backward, returns character index or -1 |
CreateDocumentSearch(Text, Options, StartPage, Direction, CancellationToken): TPdfDocumentSearch | Create a lazy forward or backward full-document search with one-page native handle retention, cancellation, and per-match geometry |
CharacterIndexAtPos(X, Y, ToleranceX, ToleranceY: Double): Integer | Get character index at page position |
RectangleCount(StartIndex: Integer = 0; Count: Integer = MaxInt): Integer | Get the number of text rectangles for a character range |
ReadingUnits: TPdfReadingUnits | Return sentence-level reading units for assistive listen-reading and semantic navigation |
DocumentReadingUnits: TPdfReadingUnits | Builds sentence-level TPdfReadingUnit records for the whole document readable-content stream |
PageWordBoxes: TPdfWordBoxes | Return word boxes with FTextPage ranges and page-space rectangles for word-by-word highlighting |
| Method | Description |
|---|---|
CreateAnnotation(const Annotation: TPdfAnnotation) | Create a new annotation on the current page |
DeleteAnnotation(Index: Integer) | Delete annotation at index |
| Method | Description |
|---|---|
GenerateFormAppearances | Regenerates /AP appearance streams for every form widget on every page (FPDF_FFLDraw). Call after FormField[] assignments and before SaveAs / FlattenPage / FlattenAllPages |
FlattenPage(nFlag: Integer = FLAT_NORMALDISPLAY): Integer | Flatten annotations and form widgets on the current page into static content. Returns FLATTEN_SUCCESS, FLATTEN_NOTHINGTODO, or FLATTEN_FAIL |
FlattenAllPages(nFlag: Integer = FLAT_NORMALDISPLAY): Boolean | Flatten every page in the document. Returns True when all pages succeed |
SetFormFieldFlags(Index: Integer; const Flags: TPdfFormFieldFlags) | Set AcroForm field flags for the form field at the specified annotation index on the current page |
SetFormFieldFlagsAt(X, Y: Single; const Flags: TPdfFormFieldFlags) | Set AcroForm field flags for the form field at the specified page coordinates |
The v3.125.3 ordinary Windows libraries report failed final buffered writes as failed saves, in line with the v3.125.2 V8 repair. The Windows V8 libraries preserve edited text in packet-array and supported single-stream XDP saves, including original whitespace and supplementary Unicode. In v3.126.0, supported single-stream XDP also retains comments and processing instructions outside replaced live datasets and form packets, including UTF-8 and BOM-marked UTF-16 inputs; invalid input encoding, incomplete tags, invalid entity references, malformed processing instructions, comments or processing instructions inside replaced packets, DTD declarations and XMLDSig are rejected. These are bounded save guards, not a complete XML validator. Other supported packets and root namespaces are retained semantically; arbitrary external-form conformance and byte-identical XML serialisation remain outside the verified scope
Windows viewer copy, cut and form paste use a bounded 100ms clipboard-open retry budget in v3.126.0 without pumping UI messages; unavailable clipboard access still returns failure, and a failed cut leaves the original field text and selection intact
In v3.126.1, dynamic XFA page additions and removals update TPdf.PageCount and OnXfaPageCountChanged from the completed layout's actual total page count, rather than reading the native event's delta as the total
In v3.126.2, full XFA viewing keeps the default text-selection settings safe, replaces selected field text during keyboard input and refreshes page handles once a dynamic layout callback returns; read-only fields and AllowFormEvents retain their input restrictions
The v3.126.2 Windows V8 save guards validate attribute syntax, duplicate attributes, qualified names, namespace scopes and XML declarations before altering single-stream XDP; XML schemas, DTD, XMLDSig, XML 1.1 and supplementary-plane names remain outside the supported scope
AnalyzeSignatureRevisions separates page ownership from widget navigation links and preserves page-content context for shared appearance payloads, so a later page edit is no longer treated as a permitted form or annotation update
The v3.126.1 Windows V8 libraries also refresh loaded input-widget geometry when dynamic layout moves a field, keeping its text and native input hit area aligned with the new location. The required repository fixture verifies instance addition, removal and height changes through native events; arbitrary external forms and foreground viewer input remain separate acceptance work
| Method | Description |
|---|---|
GetXfaConfig | Retrieves the raw XML bytes of the XFA config packet from the PDF document |
GetXfaDatasets | Retrieves the original XFA datasets XML bytes from the PDF document |
GetXfaFormPackets | Snapshots all embedded XFA packets in a TXfaPacketList collection |
GetXfaPacketByName | Returns the raw content bytes of the XFA packet identified by name |
GetXfaPacketContent | Returns the raw content bytes of the XFA packet at the given zero-based index |
GetXfaPacketCount | Returns the number of XFA packets embedded in the document |
GetXfaPacketName | Returns the name of the XFA packet at the given zero-based index |
GetXfaTemplate | Retrieves the raw XML bytes of the XFA template packet from the PDF document |
| Method | Description |
|---|---|
CreateAttachment(const Name: WString): Boolean | Create a new empty attachment |
CreateAttachment(const Name: WString; const Data: TBytes): Boolean | Create a new attachment together with its content; attachments are kept in name order, so the new entry is not necessarily the last index |
DeleteAttachment(Index: Integer): Boolean | Delete attachment at index |
| Method | Description |
|---|---|
AddJpegImage(JpegImage: TStream; X, Y, Width, Height: Double): Boolean | Add JPEG image from stream at specified position and size |
AddJpegImageDeferred(JpegImage: TStream; X, Y, Width, Height: Double; OwnsJpegImage: Boolean = False): Boolean | Add a JPEG image from a stream without copying it into the document; the bytes are pulled through the stream at render and save time |
AddJpegImageFile(const FileName: string; X, Y, Width, Height: Double): Boolean | Add a JPEG image from a file that the component opens, owns and reads on demand |
AddPicture(Picture: TPicture; X, Y: Double) | Add picture at position (original size) |
AddPicture(Picture: TPicture; X, Y, Width, Height: Double) | Add picture at position with specified size |
AddImage(const FileName: string; X, Y, Width, Height: Double) | Direct image-file insertion (delegates to AddPicture through a temporary TPicture); accepts any image format registered with the VCL or LCL graphics units |
AddImage(Bitmap: TBitmap; X, Y, Width, Height: Double) | Insert a pf32bit TBitmap directly without the TPicture intermediary; raises EPdfError on nil bitmap |
| Method | Description |
|---|---|
CreatePath(X, Y: Single; FillMode; FillColor; FillAlpha; Stroke; StrokeColor; StrokeAlpha; StrokeWidth; LineCap; LineJoin; BlendMode) | Create a path starting at position (X, Y) |
CreatePath(X, Y, Width, Height: Single; ...) | Create a rectangular path with given bounds |
MoveTo(X, Y: Single) | Move the current point to (X, Y) |
LineTo(X, Y: Single) | Draw a line from the current point to (X, Y) |
BezierTo(X1, Y1, X2, Y2, X3, Y3: Single) | Draw a Bezier curve with two control points and an endpoint |
ClosePath | Close the current subpath |
AddPath | Add the completed path to the current page |
| Method | Description |
|---|---|
RenderPage(DeviceContext: HDC; Left, Top, Width, Height: Integer; Rotation; Options) | Render page to a device context (HDC) |
RenderPage(Left, Top, Width, Height: Integer; Rotation; Options; Color): TBitmap | Render page to a new bitmap |
RenderPage(Bitmap: TBitmap; Left, Top, Width, Height: Integer; Rotation; Options; Color) | Render page to an existing bitmap |
RenderPageByIndex(PageNumber, Width, Height: Integer; Rotation; Options; Color): TBitmap | Render any page at an exact size without changing the active page, reusing parsed page scenes |
RenderPageSkia(Canvas, Width, Height, DrawFormOverlay) | Render the active page and optional form overlay to a caller-owned SkCanvas when the loaded PDFium module exposes Skia |
RenderPageSkiaByIndex(Canvas, PageNumber, Width, Height, DrawFormOverlay) | Render any page to Skia through the bounded parsed-page scene cache without changing the active page |
SpotPlates / RenderSpotPlate / PageUsesOverprint / RenderOverprintPreview | Enumerate and render exact print plates or overprint preview through the capability-gated optional print-output ABI |
GetSkiaRenderCapabilities / GetPrintOutputCapabilities | Probe optional native rendering exports without making them PDFium DLL load requirements |
RenderPageThumbnail(PageIndex, MaxWidth, MaxHeight, Rotation, Options, Background, ColorScheme): TBitmap | Render any one-based page to a caller-owned thumbnail bitmap with optional rotation, flags, background, and low-vision colours without changing PageNumber |
ThumbnailCacheMaxEntries / ThumbnailCacheMaxBytes / ThumbnailCacheStatistics / ClearThumbnailCache | Bound embedded and rendered thumbnail retention by item and pixel-byte ceilings and inspect LRU telemetry |
ClearPageSceneCache | Release all unused parsed page scenes and retire in-flight entries when their render finishes |
RenderPagesParallel(PageNumbers; Options; CancellationToken): TPdfParallelRenderReport | Render several one-based page requests concurrently through isolated worker documents sharing one immutable memory, mapped-file, or native random-access source |
RenderPageBandedToEncoder(Width, Height, BandHeight; Encoder): TPdfBandedImageReport | Feed correctly clipped page bands to a caller codec without assembling a full-page bitmap |
RenderPageBandedToStream(Stream, Width, Height, StreamOptions): TPdfBandedImageReport | Write forward-only PNG or TIFF output with bounded band memory and an optional output byte ceiling |
RenderDiffOverlay(Other: TPdf; const Difference: TPdfPageDifference; const Options: TPdfDocumentDiffOptions): TBitmap | Renders one TPdfPageDifference returned by CompareWith as a caller-owned overlay bitmap |
RenderTile(Left, Top, Width, Height, PageWidth, PageHeight: Integer; ...): TBitmap | Render a tile (portion) of a page to a new bitmap |
RenderTile(Bitmap: TBitmap; Left, Top, Width, Height, PageWidth, PageHeight: Integer; ...) | Render a tile to an existing bitmap |
InvertPdfBitmap(Bitmap) | Inverts RGB channels in a rendered 32-bit TBitmap in place for dark-mode or high-contrast viewing |
GrayscalePdfBitmap(Bitmap) | Converts a rendered 32-bit TBitmap to luminance greyscale in place |
DuotonePdfBitmap(Bitmap, DarkColor, LightColor) | Maps rendered bitmap luminance onto caller-selected dark and light colours in place |
| Method | Description |
|---|---|
DeviceToPage(X, Y, Left, Top, Width, Height: Integer; Rotation: TRotation; out PageX, PageY: Double): Boolean | Convert device coordinates to page coordinates |
PageToDevice(PageX, PageY: Double; Left, Top, Width, Height: Integer; Rotation: TRotation; out X, Y: Integer): Boolean | Convert page coordinates to device coordinates |
| Method | Description |
|---|---|
PadesCryptoAvailable | Indicates whether the signature cryptographical backend is available on the system |
AnalyzeSignatureRevisions | Classifies later original-byte revisions against each signature's DocMDP and FieldMDP permissions |
BuildPadesEvidenceReport(Options) | Correlates native signature facts, trust, timestamps, policies, DSS/VRI coverage, and later revisions into bounded JSON or CSV evidence (Enterprise edition) |
PreparePadesRemoteSignature(Prepared; Options; out Request) | Prepares a fingerprint-bound detached-signature placeholder with optional seed-value, certificate, FieldMDP, and DocMDP constraints for an HSM, cloud, or interrupted workflow (Enterprise edition) |
CompletePadesRemoteSignature(Prepared; Dest; Request; CmsDer) | Validates and fills a persisted remote-signing session with the returned detached CMS value (Enterprise edition) |
SavePadesRemoteSigningRequest(Stream; Request) | Serialises a versioned remote-signing request for later resumption (Enterprise edition) |
LoadPadesRemoteSigningRequest(Stream) | Loads and validates a persisted remote-signing request (Enterprise edition) |
RenewPadesArchiveTimestamp(FileName; Options; out Report) | Appends a new archival Document Time-stamp without modifying prior signed revisions (Enterprise edition) |
RenewPadesArchiveTimestampToStream(Stream; Options; out Report) | Writes the renewed B-LTA chain to a stream after complete validation (Enterprise edition) |
SaveAsPadesDss(const FileName: string; const Options: TPadesDssOptions) | Saves the active PDF with deduplicated PAdES DSS material and signature-specific VRI dictionaries |
SaveAsPadesDssToStream(Stream: TStream; const Options: TPadesDssOptions) | Saves the active PDF to a stream with deduplicated PAdES DSS material and signature-specific VRI dictionaries |
SignPades(const FileName: string; const Options: TPadesSignOptions) | Appends a constrained approval or certification PAdES signature using local certificate stores |
SignPadesToStream(Stream: TStream; const Options: TPadesSignOptions) | Writes a constrained approval or certification PAdES signature update to a stream |
SignPadesWithPdfA(const FileName: string; const Options; PdfAOptions) | Saves a signed PAdES PDF document complying with PDF/A archive standards |
ValidatePades | Inspects original-byte PAdES structures, rejects ambiguous required keys, proves exact Contents token exclusion, and reports covered revisions, cryptographic states, ISO/TS 32002 algorithm profiles, baseline level, and structural issues |
ValidatePadesTrust(Options) | Validates original-byte signature integrity, current system trust, optional revocation evidence, and RFC 3161 timestamp tokens (Enterprise edition) |
ValidatePadesTrustAsync(Options; Reply) | Runs the staged trust validation on a worker thread with progress and cancellation (Enterprise edition) |
| Property | Type | Description |
|---|---|---|
About | string | Component version information (stored False) |
Active | Boolean | Set to True to load/activate the document, False to close it |
FileName | string | Path to the PDF file to load |
FormFill | Boolean | Enable interactive form filling with JavaScript support (default True) |
PageNumber | Integer | Current page number (1-based, 0 when no document is loaded) |
Password | string | Password for opening encrypted PDF documents |
| Property | Type | R/W | Description |
|---|---|---|---|
Author | WString | R | Document author |
Compressed | Boolean | R/W | When True (default), SaveAs post-processes the output to ensure all streams are FlateDecode compressed |
CreationDate | WString | R | Document creation date metadata |
Creator | WString | R | Application that created the document |
Document | FPDF_DOCUMENT | R | Low-level PDFium document handle |
FileIdentifier[IDType: TPdfFileIdentifierType] | TBytes | R | Permanent or changing trailer file identifier bytes without the PDFium terminator byte |
FormType | TPdfFormType | R | Form type: ftNone, ftAcroForm, ftXFAFull, ftXFAForeground |
IsTagged | Boolean | R | True if document is a tagged PDF |
JavaScriptAction[Index] | TPdfJavaScriptAction | R | Document-level JavaScript name-tree action by zero-based index |
JavaScriptActionCount | Integer | R | Number of document-level JavaScript name-tree actions |
JavaScriptActions | TPdfJavaScriptActions | R | All document-level JavaScript name-tree actions |
Keywords | WString | R | Document keywords |
Language | WString | R/W | Document catalog language (/Lang) |
StructureElements | TPdfStructureElements | R | Flattened logical structure elements for the current page through the shared snapshot cache |
StructureElementsForPage[PageNumber] | TPdfStructureElements | R | Caller-owned cached structure snapshot for any one-based page without changing the active page |
StructureCacheCapacity | Integer | R/W | Maximum number of complete page structure snapshots retained by the LRU cache |
StructureCacheCount | Integer | R | Current number of cached page structure snapshots |
StructureCacheHitCount / StructureCacheMissCount | Int64 | R | Cumulative structure snapshot cache telemetry for this component instance |
MetaText[const Tag: string] | WString | R | Arbitrary metadata value by tag name |
Metadata | TPdfDocumentMetadata | R | One snapshot containing the eight standard Info dictionary metadata fields |
ModifiedDate | WString | R | Last modification date metadata |
PageCount | Integer | R | Total number of pages |
PdfVersion | TPdfVersion | R | Effective PDF version, including a valid catalog /Version override when present |
Permissions | LongWord | R | Document permissions flags |
GrantedPermissions | TPdfPermissions | R | Typed owner-password permission set decoded from Permissions |
PrintCopies | Integer | R | Number of print copies specified |
PrintPageRanges | TPdfPrintPageRanges | R | One-based print page ranges from viewer preferences |
PrintPaperHandling | TPrintPaperHandling | R | Paper handling preference |
PrintScaling | Boolean | R | Whether print scaling is enabled |
Producer | WString | R | PDF producer application |
Subject | WString | R | Document subject |
Title | WString | R | Document title |
UserPermissions | LongWord | R | User-level permissions |
UserGrantedPermissions | TPdfPermissions | R | Typed user-password permission set decoded from UserPermissions |
ViewerPreference[const Key: string] | WString | R | Viewer preference value by key |
XFA | Boolean | R | True if document contains XFA forms |
| Property | Type | R/W | Description |
|---|---|---|---|
Page | FPDF_PAGE | R | Low-level PDFium page handle |
PageBounds | TPdfRectangle | R | Bounding rectangle of the current page |
PageComplexity | TPdfPageComplexity | R | Native object, segment, image-pixel, and transparency facts for the current page |
PageBox[Box: TPdfPageBox] | TPdfRectangle | R/W | MediaBox, CropBox, BleedBox, TrimBox, or ArtBox for the current page |
PageHeight | Double | R | Height of current page in points |
PageLabel[PageNumber: Integer] | WString | R | Page label for a given page number |
PageMode | TPageMode | R | How the document should be displayed when opened |
PageRotation | TRotation | R/W | Rotation of the current page (ro0, ro90, ro180, ro270) |
PageWidth | Double | R | Width of current page in points |
Thumbnail | TBitmap | R | Thumbnail bitmap of the current page |
Transparent | Boolean | R | True if the current page contains transparent content |
| Property | Type | Description |
|---|---|---|
Character[Index] | WideChar | Unicode character at index |
CharacterAngle[Index] | Single | Character rotation angle in radians |
CharacterCount | Integer | Number of characters on current page |
CharacterFontSize[Index] | Double | Font size of character at index; FontSize[Index] remains as a compatible alias |
CharacterFontWeight[Index] | Integer | Font weight of character at index |
CharacterGenerated[Index] | Boolean | True if character was generated (not from original content) |
CharacterIsHyphen[Index] | Boolean | True if character is a hyphen |
CharacterMapError[Index] | Boolean | True if character has a mapping error |
CharacterOrigin[Index] | TPdfPoint | Origin point of the character |
CharacterRectangle[Index] | TPdfRectangle | Bounding rectangle of the character |
Charcode[Index] | WideChar | Character code at index |
Find | FPDF_SCHHANDLE | Low-level PDFium search handle |
Rectangle[Index] | TPdfRectangle | Text rectangle from last RectangleCount call |
TextPage | FPDF_TEXTPAGE | Low-level PDFium text page handle |
| Property | Type | Description |
|---|---|---|
FontAscent[Index; FontSize] | Single | Ascent of the font used by the text object at index |
FontBaseName[Index] | WString | Base font name for the text object at index |
FontData[Index] | TBytes | Raw font data for the text object at index |
FontDescent[Index; FontSize] | Single | Descent of the font used by the text object at index |
FontFamilyName[Index] | WString | Font family name for the text object at index |
FontHandle[Index] | FPDF_FONT | Low-level PDFium font handle for the text object at index |
FontIsEmbedded[Index] | Boolean | True if the text object's font is embedded in the PDF |
FontItalicAngle[Index] | Integer | Italic angle of the text object's font |
FontSize[Index] | Double | Backward-compatible alias for CharacterFontSize[Index] |
FontWeight[Index] | Integer | Font weight of the text object's font (e.g. 400 = normal, 700 = bold) |
| Property | Type | Description |
|---|---|---|
ObjectCount | Integer | Number of page objects |
ObjectType[Index] | TObjectType | Type: otUnknown, otText, otPath, otImage, otShading, otForm |
ObjectBounds[Index] | TPdfRectangle | Bounding rectangle of the object |
ObjectBitmap[Index] | TBitmap | Bitmap representation of the object |
ObjectHandle[Index] | Pointer | Low-level object handle |
ObjectTransparent[Index] | Boolean | True if object is transparent |
| Property | Type | Description |
|---|---|---|
Bitmap[Index] | TBitmap | Bitmap of page object at index |
BitmapCount | Integer | Number of bitmap objects on page |
Image[Index] | TPdfImage | Image record (dimensions, pixel data, raw stream data, filters, DPI, bit depth, colour space, MCID, ICC profile) at index |
ImageInfo[Index] | TPdfImageInfo | Lightweight dimensions, filters, DPI, bit depth, colour space, marked-content ID, and ICC facts without copying payload bytes |
ImageCount | Integer | Number of images on page |
| Property | Type | R/W | Description |
|---|---|---|---|
Annotation[Index] | TPdfAnnotation | R/W | Get or set annotation at index |
AnnotationCount | Integer | R | Number of annotations on current page |
| Property | Type | R/W | Description |
|---|---|---|---|
FormField[Index] | WString | R/W | Form field value by index |
FormFieldAt[X, Y: Single] | WString | R/W | Form field value at page position |
FormFieldCount | Integer | R | Number of form fields on current page |
FormFieldInfo[Index] | TPdfFormFieldInfo | R | Form field information by index |
FormFieldInfoAt[X, Y: Single] | TPdfFormFieldInfo | R | Form field information at page position |
FormFieldTypeAtPoint(X, Y: Double; out FieldType) | Boolean | R | Returns the native field type at a page point without allocating an annotation handle |
FocusedFormFieldValue() | WString | R | Returns the current logical form field value by FocusedFormFieldIndex without depending on the interactive caret |
FocusedFormFieldName() | WString | R | Returns the current logical form field display name, preferring AlternateName and falling back to Name |
FocusedFormFieldDetails() | TPdfFormFieldInfo | R | Returns TPdfFormFieldInfo for the current logical form field |
FormHandle | FPDF_FORMHANDLE | R | Low-level form fill handle |
HasFormFieldAt[X, Y: Single] | Boolean | R | True if a form field exists at the position |
| Property | Type | R/W | Description |
|---|---|---|---|
Attachment[Index] | TBytes | R/W | Attachment data by index |
AttachmentCount | Integer | R | Number of attachments |
AttachmentName[Index] | WString | R | Attachment filename by index |
AttachmentType[Index] | WString | R | Attachment MIME subtype by index |
| Property | Type | Description |
|---|---|---|
Bookmark[const Title: WString] | TBookmark | Find a bookmark by title with destination, action, open state, descendant count, path, and colour metadata |
BookmarkChildren[const Bookmark: TBookmark] | TBookmarks | Child bookmarks of a bookmark |
BookmarkFrom[Handle: FPDF_BOOKMARK] | TBookmark | Bookmark data from a handle |
Bookmarks | TBookmarks | Top-level bookmarks array |
Destination[Index] | TDestination | Named destination by index with view mode and raw view parameters |
DestinationByName[const Name: WString] | TDestination | Named destination by name |
DestinationCount | Integer | Number of named destinations |
HasBookmarkChildren[const Bookmark: TBookmark] | Boolean | True if bookmark has children |
LinkAnnotation[PageNumber, Index] | TLinkAnnotation | Link annotation on a given page |
LinkAnnotationCount[PageNumber] | Integer | Number of link annotations on a page |
WebLink[PageNumber, Index] | TWebLink | Web link (URL) on a given page |
WebLinkCount[PageNumber] | Integer | Number of web links on a page |
| Property | Type | Description |
|---|---|---|
Signature[Index] | TPdfSignature | Digital signature information at index |
SignatureCount | Integer | Number of digital signatures in the document |
Signatures | TPdfSignatures | Caller-owned snapshot of every native digital signature |
| Event | Type | Description |
|---|---|---|
OnFormFieldEnter | TPdfFormFieldEnterEvent | Fired when a form field is entered. Parameters: Sender: TObject; const Text: WString |
OnFormFieldExit | TNotifyEvent | Fired when focus leaves a form field |
OnJavaScriptAlert | TPdfJavaScriptAlertEvent | Fired when PDF-embedded JavaScript calls app.alert to show a message box |
OnJavaScriptBeep | TPdfJavaScriptBeepEvent | Fired when PDF-embedded JavaScript calls app.beep to play a system sound |
OnJavaScriptMail | TPdfJavaScriptMailEvent | Fired when PDF-embedded JavaScript calls mailDoc or app.mailMsg to compose a mail message |
OnJavaScriptPrint | TPdfJavaScriptPrintEvent | Fired when PDF-embedded JavaScript calls print to start a print job |
OnJavaScriptResponse | TPdfJavaScriptResponseEvent | Fired when PDF-embedded JavaScript actions request user interaction |
OnJavaScriptSubmitForm | TPdfJavaScriptSubmitFormEvent | Fired when PDF-embedded JavaScript submits a form to a URL |
OnNamedAction | TPdfNamedActionEvent | Fired when the document raises a named action; set Handled to take the four standard navigation names over |
OnPageChange | TNotifyEvent | Fired when the current page changes |
OnUnsupportedFeature | TPdfUnsupportedFeatureEvent | Fired when the PDF contains an unsupported feature |
OnXfaEmail | TPdfXfaEmailEvent | Fired when a dynamic XFA form requests an email action |
OnXfaFocusChange | TPdfXfaFocusChangeEvent | Fired when the focused field changes inside a dynamic XFA form |
OnXfaGotoUrl | TPdfXfaGotoUrlEvent | Fired when navigating link URLs inside dynamic XFA forms |
OnXfaHttpRequest | TPdfXfaHttpRequestEvent | Fired when a dynamic XFA form issues an HTTP request |
OnXfaOpenFile | TPdfXfaOpenFileEvent | Fired when a dynamic XFA form requests opening an external file |
OnXfaPageCountChanged | TPdfXfaPageCountChangedEvent | Fired when the page count of a dynamic XFA form changes at runtime |
OnXfaRuntimeMissing | TNotifyEvent | Fired when an XFA document is opened but the XFA runtime is unavailable |
OnXfaUriAction | TPdfXfaUriActionEvent | Fired when link URI actions trigger inside dynamic XFA contexts |
OnFormCursor | TPdfFormCursorEvent | Fired when a form field requests a cursor shape; set Handled to override the native cursor |
OnFormValueChange | TPdfFormValueChangeEvent | Fired after the value of the focused form field changes |
OnFormUriAction | TPdfFormUriActionEvent | Fired when a form field raises a URI action; set Handled to suppress native navigation |
OnFormGoToAction | TPdfFormGoToActionEvent | Fired when a form field raises a go-to action with page, zoom mode, and positions; set Handled to navigate manually |
OnFormSelectionRect | TPdfFormSelectionRectEvent | Fired when the form layer reports one selection rectangle for the focused field |
| API | Description |
|---|---|
function AnalyzeSignatureRevisions: TPadesRevisionAnalysisReport | Reconstructs the original revision chain and classifies later object changes for every embedded signature |
function BuildPadesEvidenceReport(const Options: TPadesEvidenceReportOptions): TPadesEvidenceReport | Builds exportable multi-signature evidence from one retained original-byte capture (Enterprise edition) |
property About: string | Reports PDFium Delphi Component component version information for TPdf |
Active | Opens or closes the selected PDF document |
function AddAnnotationFileAttachment(AnnotIndex: Integer; const Name: WString; const FileData: TBytes): Boolean | Attaches an embedded file to an existing annotation and writes its contents in one call |
procedure AddImage(const FileName: string; X, Y, Width, Height: Double) | Insert an image from a file into the current PDF page. Internally uses TPicture.LoadFromFile, so any image format registered with the VCL or LCL graphics units (BMP, PNG via Vcl.Imaging.PngImage / LCL TPortableNetworkGraphic, JPG, etc.) is accepted. Coordinates are in PDF user space (origin at the page lower-left); Width and Height are the placement size in user units, not the source image pixel size |
function AddJpegImage(JpegImage: TStream; X, Y, Width, Height: Double): Boolean | Add JPEG image to the current PDF page using the specified coordinates |
function AddJpegImageDeferred(JpegImage: TStream; X, Y, Width, Height: Double; OwnsJpegImage: Boolean = False): Boolean | Embeds a JPEG stream as its original DCTDecode data without copying the whole stream into the document: only the first 8 KiB are read at insert time, and the rest is pulled through the stream at render and save time. OwnsJpegImage decides whether the component or the caller closes the stream |
function AddJpegImageFile(const FileName: string; X, Y, Width, Height: Double): Boolean | AddJpegImageDeferred over a file that the component opens and owns. The JPEG keeps its original DCTDecode stream: no decode-and-re-encode step as with AddImage, and no full-file copy as with AddJpegImage. The file remains open and locked until the document is unloaded |
procedure AddPage(PageNumber: Integer; Width, Height: Double) | Creates a new blank page with the given dimensions in points |
AddPath | Commits the accumulated MoveTo/LineTo/BezierTo path as a new page object with the requested paint |
procedure AddPathToAnnotation(Index: Integer) | Hands the pending CreatePath path to an ink or stamp annotation instead of to the page content |
procedure AddPicture(Picture: TPicture; X, Y: Double) | Add picture to the current PDF page using the specified coordinates |
function AddPageObjectMark(Index: Integer; const Name: AnsiString; const Params: TPdfContentMarkParams): Integer | Adds a marked-content entry and its initial typed property list to a page object |
PageObjectInfo / AnnotationObjectInfo / PageObjectMarks / PathInfo / TransformPageObject / RenderPageWithMatrix | Advanced page-content and annotation-object inspection, marks, paths, transforms, and text metrics gathered on one overview page |
function SharePageObjectMark(TargetIndex, SourceIndex, SourceMarkIndex: Integer): Boolean | Reuses one native marked-content property mark on another page object |
function AddShapedText(const Text, Font: WString; FontSize: Single; X, Y: Double; out Shaped: TPdfShapedText; Direction: TPdfTextDirection = ptdAuto; Color: TColor = clBlack; Alpha: Byte = $FF): Boolean | Shape bidi and complex-script runs into positioned CID Type 2 glyphs with ToUnicode and logical ActualText semantics |
procedure AddStandardFontText(const Text: WString; StandardFont: TPdfStandardFont; FontSize: Single; X, Y: Double; Color: TColor; Alpha: Byte; Angle: Double = 0.0) | Draws text with one of the 14 standard PDF fonts, embedding no font program |
function AddCidType2Text(const FontData: TBytes; const Glyphs: TPdfCidGlyphs; FontSize: Single; X, Y: Double; const Options: TPdfCidFontOptions; out Report: TPdfCidFontReport; Color: TColor = clBlack; Alpha: Byte = $FF): Boolean | Embed positioned CID Type 2 glyphs with explicit Unicode mappings, optional TrueType subsetting, controlled fallback, and extraction verification |
procedure AddText(const Text, Font: WString; FontSize: Single; X, Y: Double; Color: TColor = clBlack; Alpha: Byte = $FF; Angle: Double = 0.0) | Add text to the current PDF page, including exact installed Windows variable TrueType default instances through optional DirectWrite since v3.205.1 |
Annotation | Indexed property — returns the annotation record at the given index on the current page (subtype, rect, colour, contents, etc.) |
AnnotationCount | Number of annotation objects attached to the currently active page |
function AnnotationObjectCount(Index: Integer): Integer | Counts the page objects an ink or stamp annotation draws itself from |
function AnnotationObjectInfo(Index, ObjectIndex: Integer): TPdfPageObjectInfo | Reads type, bounds, matrix, colours, and line style of one page object owned by an annotation |
property Attachment[Index: Integer]: TBytes | Reads or replaces the raw byte payload of the document-level embedded file at the specified zero-based index. Each slot corresponds to one entry in the PDF EmbeddedFiles name tree defined in section 7.11 of the PDF 1.7 specification |
AttachmentCount | Number of embedded file attachments declared in the document |
property AttachmentDescription[Index: Integer]: WString | Reads or writes the /Desc description of a document-level embedded file |
function AttachmentHasKey(Index: Integer; const Key: WString): Boolean | Tests whether an embedded attachment carries a given file-specification key |
AttachmentName | Returns the Unicode file name registered for the embedded file at the given zero-based index in the document EmbeddedFiles name tree |
property AttachmentRelationship[Index: Integer]: WString | Gives the /AFRelationship name of a document-level embedded file (ISO 32000-2 Table 43), or an empty string when it is absent |
AttachmentType | Returns the registered MIME / subtype string for the embedded file at the specified zero-based index. The value is taken from the file specification dictionary's /Subtype entry as defined in PDF section 7.11.3 |
Author | Returns the value of the /Author entry from the PDF document information dictionary |
BezierTo | Appends a cubic Bezier curve from the current point through control points (X1,Y1) and (X2,Y2) to (X3,Y3) |
Bitmap | Returns a freshly-decoded VCL TBitmap holding the raster data of the specified image object on the current page. The bitmap is newly allocated on each call; the caller owns it and is responsible for calling Free |
BitmapCount | Number of image page objects on the active page, accessible as VCL TBitmap |
Bookmark | Looks up a bookmark by its title string and returns the matching TBookmark record from the document outline tree defined in PDF section 12.3.3 |
BookmarkChildren | Indexed property — returns the immediate child bookmarks of a given parent bookmark node |
BookmarkFrom | Converts a raw FPDF_BOOKMARK handle into a fully populated TBookmark record by reading the title, destination page, and action metadata for that outline node |
Bookmarks | Indexed property — returns the full list of top-level outline (bookmark) entries for the document |
Character | Read-only indexed access to the UTF-16 string form of the character at the given index (typically one code unit, but two for a surrogate pair) |
CharacterAngle | Read-only indexed access to the rotation angle of the character in radians, taking the page CTM into account |
CharacterCount | Number of extractable characters on the currently active page |
CharacterFontSize | Read-only indexed access to the effective font size used to render the character (in PDF points, after CTM scaling) |
CharacterFontWeight | Read-only indexed access to the OS/2 usWeightClass value of the font used (100 = Thin, 400 = Regular, 700 = Bold, 900 = Black) |
CharacterGenerated | Returns True when the character at the specified index was synthesised by PDFium during text extraction rather than being drawn explicitly by the page content stream. Synthetic characters are emitted for ligature expansion, soft hyphenation, and word/line boundary heuristics so search and select-all results read naturally |
function CharacterIndexToTextIndex(Index: Integer): Integer | Maps a character index to its offset in the extracted text, or -1 for generated characters |
function CharacterInfo(Index: Integer): TPdfCharacterInfo | Reads colour, font name and flags, loose bounds, matrix, and owning text object of one character |
function TryGetCharacterSource(Index: Integer; out Info: TPdfCharacterSourceInfo): Boolean | Queries optional native glyph ordinals, invocation paths and ActualText offsets; standard DLLs report unavailable |
ContentEventCount | Counts the checked source marked-content operators on a page or Form invocation |
TryGetContentEvent | Reads source declaration/point boundaries and borrowed mark ownership, empty scopes included |
function CharacterIndexAtPos(X, Y, ToleranceX, ToleranceY: Double): Integer | Get the index of the character at or near a given position on the page. If no character lies at or near the point, the return value will be -1. If an error occurs, -3 will be returned |
CharacterIsHyphen | Returns True when the character at the specified index is recognised as a soft hyphen used for end-of-line word breaking. Useful when reconstructing words across line wraps without retaining the visible hyphen mark |
CharacterMapError | Returns True when the character at the specified index could not be mapped to a valid Unicode code point. The flag is reported per-character by the PDFium text extractor and lets callers identify code points that are likely incorrect because the originating font lacks a usable ToUnicode CMap or encoding vector |
CharacterOrigin | Read-only indexed access to the origin (baseline-left anchor) of the character in PDF user-space points |
CharacterRectangle | Read-only indexed access to the bounding rectangle of the character in PDF user-space coordinates (origin bottom-left, in points) |
Charcode | Read-only indexed access to the Unicode code point (UCS-4) of the character at the given index |
function ChooseRenderFlags(Scale: Double; DestWidth, DestHeight: Integer): Integer | Picks native FPDF_RENDER_* flags from the final scale and destination size for adaptive image subsampling |
procedure ClearFormFieldFocus | Works with the current-page AcroForm logical focus cursor for keyboard, speech, and accessibility workflows |
procedure ClearPageSceneCache | Clears cached parsed page scenes without changing the active page |
procedure ClearThumbnailCache | Releases retained embedded and rendered thumbnail bitmaps without changing cache limits or telemetry |
ClosePath | Closes the current sub-path by drawing a straight line back to the most recent MoveTo |
Compressed | Controls whether streams in the output PDF are FlateDecode-compressed when SaveAs / Save is called. The post-save compression engine scans the serialised PDF, replaces any uncompressed streams with their zlib-deflated equivalents, and rebuilds the xref table. Already-compressed streams pass through unchanged |
constructor Create(AOwner: TComponent); override | Creates the TPdf component and initialises document, rendering, form, and cache state |
procedure CreateAnnotation(const Annotation: TPdfAnnotation) | Create a new annotation |
CreateAttachment | Adds a new embedded file (attachment) at the document level |
function CreateCoreSnapshot(const Options: TPdfDocumentCoreOptions): TPdfDocumentCore | Hands the active document over to an independent bounded TPdfDocumentCore backed by a leased PDFium runtime |
procedure CreateDocument | Closes the current document (if any) and starts a brand-new empty PDF |
procedure CreatePath(X, Y: Single; FillMode: TPdfFillMode = fmNone; FillColor: TColor = clBlack; FillAlpha: Byte = $FF; Stroke: Boolean = True; StrokeColor: TColor = clBlack; StrokeAlpha: Byte = $FF; StrokeWidth: Single = 1.0; LineCap: TPdfLineCap = lcDefault; LineJoin: TPdfLineJoin = ljDefault; BlendMode: TPdfBlendMode = bmDefault) | Create a new path object at an initial position |
CreateXObjectFromPage | Wraps a page from another TPdf as a reusable Form XObject handle that can be stamped into this document any number of times |
CreationDate | Original creation timestamp from the document Info dictionary |
Creator | Name of the originating authoring application stored in the Info dictionary |
property CrossReferenceTableValid: Boolean | Reports whether the loaded document has an intact cross-reference table |
DeleteAnnotation | Removes the annotation at the given index on the current page |
function DeleteAttachment(Index: Integer): Boolean | Removes the embedded file attachment at the given index |
procedure DeletePage(PageNumber: Integer) | Removes the one-based page PageNumber from the currently open PDF document |
Destination | Returns the TDestination record for the named destination at the specified zero-based index. Named destinations are the indirect targets defined under the document catalog Dests / Names tree as described in PDF section 12.3.2 |
DestinationByName | Looks up a /Names destination by string name and returns its target page / fit-type / coordinates |
DestinationCount | Number of named destinations declared in the document |
function DetectPageSkew(out Report: TPdfSkewReport): Boolean | Measures the tilt of the current page to about 0.1 degrees, with a confidence value |
destructor Destroy; override | Releases document handles, form state, cached fonts, streams, and timers before TPdf is destroyed |
ExportXFDF | Serialises form fields and annotations to UTF-8 XFDF while preserving nested field paths and absent versus explicitly empty values |
function ExportXFDFToStream(Stream: TStream): Integer | Writes every form value and annotation of the document to a stream as XFDF |
function ExtractAttachmentsToStreams(const Destinations: array of TStream; const Options: TPdfAttachmentBatchOptions; out Report: TPdfAttachmentBatchReport; const CancellationToken: IPdfCancellationToken = nil): Boolean | Writes decoded attachments to caller-owned streams under count and byte budgets with cancellation and per-item results |
TPdfAttachmentBatchOptions / TPdfAttachmentBatchReport | Bounded, single-pass attachment batch model for caller-owned metadata enumeration and payload extraction |
ExtractThumbnail(PageNumber: Integer): TBitmap | Decodes the embedded page thumbnail without switching or reloading the active page |
function DeviceToPage(X, Y, Left, Top, Width, Height: Integer; Rotation: TRotation; out PageX, PageY: Double): Boolean | Convert the screen coordinate of a point to page coordinate |
property Document | Native PDFium FPDF_DOCUMENT handle for direct low-level access |
function DocumentReadableContent: TPdfContentFragments | Returns semantic readable content fragments for screen-reader, text-to-speech, and accessibility workflows |
function DocumentReadingUnits: TPdfReadingUnits | Builds sentence-level TPdfReadingUnit records for the whole document readable-content stream |
FileIdentifier | Read-only flag — returns the document file identifier array for the requested identifier slot |
property FileName | Path of the PDF to open; assigning while Active reloads from the new path |
Find | Searches for Pattern starting from PageNum (or the current page if -1) and returns the global character index of the first match |
function FindFirst(const Text: WString; Options: TSearchOptions = []; StartIndex: Integer = 0; DirectionUp: Boolean = True): Integer | Start a search of the specified text. StartIndex is 0-based, -1 is for end of the page. DirectionUp parameter determines direction of this search operation |
function FindNext | Advances the cursor of an in-progress Find session and returns the next matching character index |
function FindPrevious | Reverses the Find cursor by one match |
function CreateDocumentSearch | Creates a lazy document-wide search that returns one match and its page-space rectangles per call |
function FlattenAllPages(nFlag: Integer = FLAT_NORMALDISPLAY): Boolean | Convenience wrapper that flattens every page in the document. Returns True when every page completes with FLATTEN_SUCCESS or FLATTEN_NOTHINGTODO. Recommended workflow: GenerateFormAppearances → FlattenAllPages → SaveAs |
function FlattenPage(nFlag: Integer = FLAT_NORMALDISPLAY): Integer | Flattens annotations and form widgets on the current page into permanent (non-editable) page content. nFlag selects the flattening profile: FLAT_NORMALDISPLAY (0) for screen display or FLAT_PRINT (1) for printed output. Returns one of FLATTEN_SUCCESS, FLATTEN_NOTHINGTODO, or FLATTEN_FAIL. Call GenerateFormAppearances first when flattening filled-in form values |
FlattenPageRotation | Bakes the current /Rotate of every page into the content stream, page boxes, and annotation rectangles, then resets /Rotate to 0 so the visual layout is preserved without relying on the rotation display hint |
function FocusedFormFieldDetails: TPdfFormFieldInfo | Returns TPdfFormFieldInfo for the current logical form field |
function FocusedFormFieldIndex: Integer | Works with the current-page AcroForm logical focus cursor for keyboard, speech, and accessibility workflows |
function FocusedFormFieldName: WString | Returns the current logical form field display name, preferring AlternateName and falling back to Name |
function FocusedFormFieldText: WString | Works with the current-page AcroForm logical focus cursor for keyboard, speech, and accessibility workflows |
function FocusedFormFieldTextDirection: TPdfFormTextDirection | Reads the focused widget's in-memory text direction through the PDFium FORM_GetTextDirection export |
function FocusedFormOptionSelected(Index: Integer): Boolean | Reports whether one option of the focused list or combo box is selected |
function FocusedFormFieldValue: WString | Returns the current logical form field value by FocusedFormFieldIndex without depending on the interactive caret |
function FocusFormField(Index: Integer): Boolean | Works with the current-page AcroForm logical focus cursor for keyboard, speech, and accessibility workflows |
function FocusNextFormField: Integer; overload | Cycles within the current page by default, with an explicit AcrossPages overload for bounded forward/backward AcroForm navigation, optional document wrapping and empty-page skipping |
function FocusPreviousFormField: Integer; overload | Cycles within the current page by default, with an explicit AcrossPages overload for bounded forward/backward AcroForm navigation, optional document wrapping and empty-page skipping |
FontAscent | Returns the font's ascent (distance from the baseline to the highest ascender) of a page object's font, expressed in PDF points and scaled to a caller-supplied font size |
FontBaseName | Returns the PostScript base name (the /BaseFont entry from the PDF font dictionary) of the font used by a page object, including any style suffix such as -Bold or ,Italic |
FontData | Read-only indexed access to the raw bytes of the embedded font program (only populated when the font is embedded) |
FontDescent | Returns the font's descent (the distance from the baseline down to the lowest descender) of a page object's font, expressed in PDF points and scaled to a caller-supplied font size |
FontFamilyName | Returns the typographic family name (e.g. Helvetica, Times New Roman, Noto Sans CJK SC) of the font used by a page object on the current page |
property FontFlags[Index: Integer]: Integer | Returns the native PDF font descriptor flags, or -1 when the object has no font |
FontHandle | Returns the native FPDF_FONT handle of the font used by a page object. The handle gives advanced callers direct access to PDFium font APIs not wrapped by the component |
FontIsEmbedded | Indicates whether the font used by a page object is embedded inside the PDF (True) or merely referenced and resolved at view time from the operating system (False) |
FontItalicAngle | Read-only indexed access to the italic angle of the font in degrees (negative for typical italic; 0 for upright) |
FontSize | Returns the rendered font size, in PDF points, of an individual character on the current page. FontSize is an alias for CharacterFontSize retained for backward compatibility |
FontWeight | Returns the CSS-style weight (boldness) of the font used by a page object on the current page. Typical values are 400 for regular and 700 for bold |
FormField | Indexed property — returns one form field on the current page |
FormFieldAt | Read or write the value of the form field located at the given page coordinate |
FormFieldCount | Number of form field widgets on the currently active page |
FormFieldInfo | Full record describing a form field at a given index on the active page |
FormFieldInfoAt | Form field record for the widget located at the given page coordinate |
FormHostCallbacksComplete, FormSelectionRects, OnForm* | Lifetime-safe native form pages plus host-controlled navigation, URI, cursor, value-change, and selection callbacks |
function FormFieldTypeAtPoint(X, Y: Double; out FieldType: TPdfFormFieldType): Boolean | Uses native point hit testing to return the field type without creating an annotation handle |
FormFieldTabOrder: TPdfIntegerArray; overloadFormFieldTabOrder(out Status: TPdfFormTabOrderStatus): TPdfIntegerArray; overload | Current-page widget ordinals in declared R/C/S/A/W order, with rotated geometry, reading direction, structure references and explicit fallback diagnostics |
property FormFill | Interface that lets your application supply forms-related callbacks (Beep, Invalidate, OutputDocFile, etc.) |
FormHandle | Native PDFium form-fill environment handle attached to the document |
function DetachFormObjectChild(FormIndex, ChildIndex: Integer): FPDF_PAGEOBJECT | Removes a Form XObject child and transfers ownership of its native handle |
function FormObjectChildren(Index: Integer): TPdfPageObjectInfos | Lists the page objects nested inside a Form XObject |
function GetAnnotationFontColor(AnnotIndex: Integer; out Color: TColor): Boolean | Reads the text colour of a form-field widget annotation |
function GetAttachmentStringValue(Index: Integer; const Key: WString): WString | Reads one string entry from the file-specification dictionary of an attachment |
function GetImageObjectRenderedBitmap(Index: Integer): TBitmap | Renders an image object with its mask, colour conversion, and matrix applied |
function GetObjectRenderedFillPattern(Index: Integer): TBitmap | Rasterises the tiling pattern a path object fills with into a caller-owned bitmap, or returns nil when there is none |
function GetObjectRenderedStrokePattern(Index: Integer): TBitmap | Rasterises the tiling pattern with which a path object is stroked into a caller-owned bitmap, or returns nil when there is none |
property FormType | Tells you whether the document contains AcroForm fields, XFA, or no forms at all |
procedure GenerateFormAppearances | Regenerates the /AP (appearance stream) for every form widget on every page by rendering each page through FPDF_FFLDraw. This is the recommended companion call to FormField[i] := value assignments — without it, form values may be visible only when the field has focus, and any subsequent flatten operation will silently lose the values. Call after all FormField[] assignments and before SaveAs / FlattenPage / FlattenAllPages |
function GetPageBox | Reads the rectangle of the named page box on the current page |
function GetXfaConfig: TBytes | Retrieves the raw XML bytes of the XFA config packet from the PDF document |
function GetXfaDatasets: TBytes | Retrieves the original XFA datasets XML bytes from the PDF document |
function GetXfaFormPackets: TXfaPacketList | Snapshots all embedded XFA packets in a TXfaPacketList collection |
function GetXfaPacketByName(const Name: string): TBytes | Returns the raw content bytes of the XFA packet identified by name |
function GetXfaPacketContent(Index: Integer): TBytes | Returns the raw content bytes of the XFA packet at the given zero-based index |
function GetXfaPacketCount: Integer | Returns the number of XFA packets embedded in the document |
function GetXfaPacketName(Index: Integer): string | Returns the name of the XFA packet at the given zero-based index |
function GetXfaTemplate: TBytes | Retrieves the raw XML bytes of the XFA template packet from the PDF document |
GrantedPermissions | Returns owner-password permissions as a typed TPdfPermissions set |
HasBookmarkChildren | Returns True when the given outline node has at least one child bookmark |
HasFormFieldAt | Hit-test that returns True when a form field widget covers the given page coordinate |
HasPermission(Permission: TPdfPermission): Boolean | Tests one owner-password permission without manual bit arithmetic |
Image | Indexed property — returns one decoded image object on the current page (dimensions, pixel data, DPI, bit depth, colour space, ICC profile) |
ImageCount | Number of raster image XObjects on the currently active page |
function ImportFDF(const FileName: string): Integer | Applies form field values from an FDF document; a TStream overload is also available |
ImportXFDF | Applies namespace-aware XFDF fields and annotations, including explicit empty values, mixed text and CDATA, and deeply nested field names |
property IncrementalSaveActive: Boolean | Reports whether an incremental save session is currently open |
procedure InsertClipPath(Left, Bottom, Right, Top: Single) | Clips everything drawn on the current page to a rectangle in PDF page units |
procedure InsertObjectAtIndex(StackIndex: Integer; PageObj: Pointer) | Inserts a page object at a chosen depth in the drawing order instead of on top |
class function InspectAvailability(AStream: TStream): TPdfAvailability | Reports linearisation, parse availability, and first page of a PDF stream without loading it |
ImportNPagesToOne | Builds a brand-new TPdf whose pages are NumX×NumY composites of the source document's pages, suitable for N-up printing layouts |
ImportPages | Copies one or more pages from another open TPdf into this document |
ImportPagesByIndex | Imports a specific subset of pages from another TPdf by zero-based index, with control over the insertion point in the current document |
function ImportPreferences(Pdf: TPdf): Boolean | Bit-set controlling how ImportPages copies content (resources, named destinations, comments, etc.) |
function InsertFormObjectFromXObject(XObject: TPdfXObject): FPDF_PAGEOBJECT | Inserts ONE copy of the page wrapped by a TPdfXObject into the current page of this document, returning the FPDF_PAGEOBJECT so the caller can position / scale / rotate it |
IsTagged | Whether the document declares a structure tree for accessibility |
JavaScriptAction | Indexed property — returns one document-level JavaScript action (Name and Script) |
JavaScriptActionCount | Number of document-level JavaScript actions stored in the PDF |
JavaScriptActions | All document-level JavaScript actions returned as a single dynamic array |
Keywords | Author-supplied keyword list from the document Info dictionary |
Language | Natural language identifier declared in the document catalog |
LineTo | Appends a straight line from the current point to (X, Y) |
LinkAnnotation | Indexed property — returns the explicit /Annot Subtype Link at the given index, including the target action or destination |
LinkAnnotationCount | Number of /Link annotation entries on a specific page |
function LinkAtPoint(X, Y: Double): Boolean | Hit-tests a page-space coordinate against native link annotations through FPDFLink_GetLinkAtPoint |
procedure ReadCurrentPageLinks(MaxLinksPerKind: Integer; out AnnotationLinks: TLinkAnnotations; out TextLinks: TWebLinks; out Limited: Boolean) | Reads up to the positive limit per kind on the active page. Limited reports omitted links. Annotation handles stay valid whilst the page is active. The cap limits the returned records and the Pascal-side materialisation. PDFium detects text links across the page before their count is available |
function LinkAnnotationToAnnotationIndex(LinkIndex: Integer): Integer | Maps a link to the annotation index that Annotation and UpdateAnnotation use |
procedure LoadCustomDocument(AStream: TStream; AOwnsStream: Boolean = False) | Loads a PDF from any seekable TStream using PDFium's on-demand block reader, so multi-GB documents and remote / database-backed sources do not need an up-front in-memory copy |
TPdfRandomAccessStore | Stores seekable content under a memory ceiling, spills to private temporary storage, and supports cursor-independent ReadAt and WriteAt calls |
function TextIndexToCharacterIndex(Index: Integer): Integer | Maps an offset in the extracted text back to the character that produced it |
function TextObjectGlyphOutline(Index, GlyphIndex: Integer; FontSize: Single): TPdfPathSegments | Reads the vector outline of one glyph, normalised so that one em is 1.0 |
function TextObjectGlyphWidth(Index, GlyphIndex: Integer; FontSize: Single): Single | Measures the native glyph advance at a requested font size |
function TextObjectFontSize(Index: Integer): Single | Reads the native font size of one text page object |
procedure SetTextObjectFontSize(Index: Integer; FontSize: Single) | Edits text-object font size without matrix scaling |
procedure LoadDocument | Opens a PDF from a file, byte array, validated memory buffer, or non-nil memory stream |
LastLoadReport | Returns the latest load status, native recovery route, xref validity, bounded audit counters, and typed issues |
SaveAsRepaired | Writes a complete copy and verifies it through an isolated strict load before returning success |
property MetaText | Returns one document Info dictionary value by tag name |
Metadata | Returns the standard title, author, subject, keywords, creator, producer, creation date, and modification date as one record snapshot |
MergeFiles | Merges file-backed source lists with bounded source handles, native page import batches, explicit policies, progress, cancellation, rollback, and a detailed report |
ModifiedDate | Last-modification timestamp recorded in the document Info dictionary |
MovePages | Reorders pages of this document in place by zero-based index, keeping the page count constant |
MoveTo | Starts a new sub-path at the given page coordinate |
ObjectBitmap | Indexed property — returns one image page object as a renderable VCL TBitmap (lossy decoded from JPX/CCITT/etc.) |
ObjectBounds | Tight axis-aligned bounding rectangle of a single page object on the current page, |
ObjectCount | Read-only number of page objects (text, path, image, shading, form) at the current page |
ObjectHandle | Raw PDFium FPDF_PAGEOBJECT pointer for the specified page object, |
ObjectTransparent | Indicates whether a page object participates in PDF transparency — either through |
ObjectType | Returns the category of the page object at the specified index — text, path, image, shading, or form XObject. The classification matches the PDF content-stream operator that produced the object and lets callers iterate the page-object array with a single switch dispatch |
function OptimizeImages(const Options: TPdfImageOptimizeOptions; out Report: TPdfImageOptimizeReport): Boolean | Downsamples page image objects whose effective placement DPI exceeds a caller target through the native bitmap and FPDFImageObj_SetBitmap paths, then leaves the document ready for SaveAs |
QueryFeatureStatus / FPdfEdition.QueryPdfFeature | Reports minimum edition, actual implementation linkage and separate native, provider and document prerequisite states without performing the operation; each feature names the single unit that registers it, so since 3.269.0 pffStandardsExecution and pffDocumentRepairProviders are queried separately from pffPreflight and pffDocumentRepair |
FPdfEdition.QueryPdfFeatureProfile / TPdfFeatureProfileStatus | Describes bounded XFA, OCR, tagging and redaction workflows, unsupported scopes, opt-in requirements and profile-specific prerequisite outcomes without executing work; see the edition matrix |
function GetFeatureInventory: TPdfFeatureInventory | Scans every page once and returns a unified record of text, path, image, form XObject, and shading object counts alongside document-level facts |
function GetObjectText(Index: Integer): WString | Extracts the text drawn by one text object |
function GetObjectsByType(ObjType: TObjectType): TPdfIntegerArray | Lists the indexes of every page object of one kind on the current page |
function GetPageActionType(EventType: Integer): Integer | Reports the PDFACTION_* type of the page open or close additional action, 0 when there is none |
function GetPageActionURI(EventType: Integer): WString | Reads the URI a page open or close action opens |
function GetTextInReadingOrder(Order: TPdfReadingOrder): WString | Extracts page text in raw content order or sorted into physical reading order |
function GetTextObjectRenderedBitmap(Index: Integer; Scale: Single): TBitmap | Rasterises one text object on its own at the requested scale |
function GetTextRenderMode(Index: Integer): Integer | Reads the FPDF_TEXTRENDERMODE_* mode of a text object, which is how invisible OCR text is told from visible text |
procedure SetTextObjectRenderMode(Index: Integer; RenderMode: Integer) | Sets a text object's rendering mode, covering invisible OCR layers, stroked glyphs and clipping text |
function FocusFormFieldAt(X, Y: Double; Modifier: Integer = 0): Boolean | Gives input focus to the form field at a page point, clearing form focus when no annotation sits there |
function AnnotationSupportsAttachmentPoints(AnnotIndex: Integer): Boolean | Reports whether an annotation type supports quadpoints, regardless of any stored points |
function GetWidgetAdditionalActionJavaScript(AnnotIndex, EventType: Integer): WString | Reads the keystroke, format, validate, or calculate script of a form-field widget |
function AuditActiveContent: TPdfActiveContentAudit | Returns a snapshot of JavaScript action count, embedded files, signatures, XFA form type, and permissions without executing any script or action |
property OnFormFieldEnter | Fired when the form-fill engine gains focus on a form field |
property OnFormFieldExit | Fired when the form-fill engine loses focus on a form field |
property OnJavaScriptResponse | Fired when PDF-embedded JavaScript actions request user interaction |
property OnPageChange | Fired when PageNumber changes to a different page |
property OnUnsupportedFeature | Fired when the document uses a PDF feature that PDFium does not implement (e.g. XFA full forms, 3D annotations, multimedia) |
property OnXfaGotoUrl | Fired when navigating link URLs inside dynamic XFA forms |
property OnXfaUriAction | Fired when link URI actions trigger inside dynamic XFA contexts |
function PadesCryptoAvailable: Boolean | Indicates whether the signature cryptographical backend is available on the system |
Page | Native PDFium page handle for the currently active page |
function PageUsesOverprint: Boolean | Queries exact page overprint use when the optional print-output extension supports detection |
function PathInfo(Index: Integer): TPdfPathInfo | Reads fill mode, stroke flag, and segment geometry of a path object |
property PageBounds: TPdfRectangle | Page-level property — returns the bounding rectangle of the current page in PDF user-space points |
property PageBox[Box: TPdfPageBox]: TPdfRectangle | Page-level property — reads or writes a specific page-box rectangle on the current page |
property PageCount: Integer | Page-level property — total number of pages in the open document |
property PageMetrics[PageNumber: Integer]: TPdfPageMetrics | Cached dimensions, rotation, label, transparency, and standard page boxes for any page |
property CacheBudgetBytes: Int64 | Sets the unified retained-cache byte ceiling for one TPdf instance |
property CacheGovernor: TPdfCacheGovernor | Returns the owned shared governor for per-kind queries and application-cache coordination. Page scene and thumbnail eviction is serialised with rendering |
property CacheGovernorStatistics: TPdfCacheGovernorStatistics | Returns current, peak, pinned, eviction, touch, and rejection telemetry |
property LifecycleActionPolicy: TPdfLifecycleActionPolicy | Selects disabled, explicit-only, or compatible automatic document and page lifecycle action execution |
property PageSceneCacheCapacity: Integer | Maximum number of parsed inactive page scenes retained for indexed rendering |
property PageSceneCacheCount: Integer | Current number of reusable parsed page scenes |
PageHeight | Height of the active page in PDF user-space units (points = 1/72 inch) |
function PageObjectClipPath(Index: Integer): TPdfClipPath | Reads the clip path that limits where one page object may paint |
function PageObjectInfo(Index: Integer): TPdfPageObjectInfo | Reads every editable attribute of one page object in a single record |
function PageObjectMarkedContentID(Index: Integer): Integer | Reads the /MCID that links a page object to the structure tree, -1 when untagged |
function PageObjectMarks(Index: Integer): TPdfContentMarks | Reads the marked-content tags and typed property lists attached to a page object |
property PageLabel[PageNumber: Integer]: WString | Indexed property — returns the user-visible page label (such as "iv" or "A-3") for a 1-based page number |
property PageMode: TPageMode | Document-level property — the catalog /PageMode hint (Outlines, Thumbs, FullScreen, ...) |
property PageNumber: Integer | Read/write 1-based current page index with bounds checking and rollback-safe native page replacement |
property PageRotation: TRotation | Page-level property — rotation applied to the current page when rendering (ro0 / ro90 / ro180 / ro270) |
function PageToDevice(PageX, PageY: Double; Left, Top, Width, Height: Integer; Rotation: TRotation; out X, Y: Integer): Boolean | Convert the page coordinate of a point to screen coordinate |
property PageWidth: Double | Page-level property — width of the current page in points (1 pt = 1/72 inch) |
function PageWordBoxes: TPdfWordBoxes | Returns TPdfWordBox records for words on the current TPdf page with character ranges and page-space rectangles |
function ExecuteDocumentLifecycleAction(Action: TPdfDocumentLifecycleAction; out ErrorMessage: string): Boolean | Runs one native document lifecycle action and reports policy, environment, or callback failures without propagating exceptions |
function ExecutePageLifecycleAction(PageNumber: Integer; Action: TPdfPageLifecycleAction; out ErrorMessage: string): Boolean | Runs a page open or close action without changing the active page and releases temporary native page state deterministically |
TPdfDocumentLifecycleAction / TPdfPageLifecycleAction | Document and page lifecycle action policy and execution model covering the disabled, explicit-only, and compatible automatic modes |
property Password | Decryption password assigned before Active := True |
PdfAConformance | Read-only PDF/A conformance level of the currently open document, without needing to call ValidatePdfA explicitly |
PdfEConformance | Read-only PDF/E conformance level of the currently open document, without needing to call ValidatePdfE explicitly (Enterprise edition) |
PdfRConformance | Read-only PDF/R conformance level of the currently open document, without needing to call ValidatePdfR explicitly (Small Business and Enterprise editions) |
PdfUaConformance | Read-only PDF/UA conformance level of the currently open document, without needing to call ValidatePdfUa explicitly |
PdfVersion | Read-only flag — the PDF specification version of the open document (e.g. pv14, pv17, pv20) |
PdfVTConformance | Read-only PDF/VT conformance level of the currently open document, without needing to call ValidatePdfVT explicitly (Enterprise edition) |
PdfXConformance | Read-only PDF/X conformance level of the currently open document, without needing to call ValidatePdfX explicitly (Enterprise edition) |
function PerformNamedAction(const ActionName: string): Boolean | Carries out a named action; NextPage, PrevPage, FirstPage, and LastPage move PageNumber with clamping |
property Permissions | Returns the owner-password permission bits as decoded from the /Encrypt dictionary |
PrintCopies | Embedded suggested number of copies the PDF's author would like the print dialog |
PrintPageRanges | Decoded list of one-based page ranges the PDF's author would like the print |
PrintPaperHandling | Decoded value of the document's /ViewerPreferences /Duplex hint — |
PrintScaling | Decoded value of the document's /ViewerPreferences /PrintScaling |
Producer | Name of the PDF library or converter that produced the file |
function ReadXmpPacket: TPdfXmpPacket | Reads the XMP metadata packet as a parsed object the caller owns |
function InspectPdfAMetadata: TPdfAMetadataReport | Returns typed equivalence evidence for all eight ISO 19005-1 Info-to-XMP mappings |
function InspectPdfUaLanguageCoverage: TPdfUaLanguageCoverageReport | Reports bounded natural-language evidence using marked-content, structure-ancestor, and catalog language inheritance |
function InspectPdfUaUnicodeCoverage: TPdfUaUnicodeCoverageReport | Reports object-scoped direct Unicode and ActualText extraction coverage in one native text-page pass |
function ReadAttachmentMetadata(MaxAttachments: Integer = 10000): TPdfAttachmentMetadataArray | Captures attachment metadata and decoded sizes in one bounded native enumeration without loading payload bytes |
function ReadStructureElements(PageNumber; Options; out Status): TPdfStructureElements | Materialises an iterative structure-tree snapshot under caller-selected depth, element, attribute, and time budgets |
property ReadableContentCacheCapacity: Integer; | Sets the retained-page limit from 0 through 64, default 8; zero disables retention and reducing the value immediately trims LRU entries |
property ReadableContentCacheMaxBytes: Int64; | Sets the estimated retained-data budget from 0 through 64 MiB, default 8 MiB; zero disables retention and reductions trim immediately without truncating caller results |
property ReadableContentCacheStatistics: TPdfReadableContentCacheStatistics; | Returns current limits, retained page count and estimated bytes, plus lifetime hit, miss, eviction and bypass counts; reading statistics does not populate the cache |
procedure ClearReadableContentCache; | Releases all retained readable snapshots and governor tokens, preserving cache limits and lifetime counters; returned caller snapshots remain valid |
TPdfReadableContentCacheStatistics = record | Capacity and MaxBytes are configured limits; PageCount and StoredBytes describe retained entries; counters distinguish reused, rebuilt, evicted and intentionally unretained reads |
TPdf.WordSegmentation | See the linked reader API policy and declared profile |
TPdfView.WordSegmentation | See the linked reader API policy and declared profile |
TPdfReadingSession.WordSegmentation | See the linked reader API policy and declared profile |
TPdfWordSegmentation | See the linked reader API policy and declared profile |
TPdfReadableContentOptions | See the linked reader API policy and declared profile |
TPdf.ReadableContentOptions | See the linked reader API policy and declared profile |
TPdfReadableHeuristicOrder | See the linked reader API policy and declared profile |
TPdfReaderTableHeader | See the linked reader API policy and declared profile |
TPdfReaderTableContext | See the linked reader API policy and declared profile |
TPdfView.BuildSpokenReadingUnit | See the linked reader API policy and declared profile |
TPdfView.BuildSpokenSemanticScope | Validate and explicitly speak a retained structure or native ActualText/Alt/E declaration with its own origin, nesting and complete source coverage, without invented glyph mapping |
ApplyReaderTableContext | See the linked reader API policy and declared profile |
TPdfContentFragment | See the linked reader API policy and declared profile |
TPdfReadableContent | See the linked reader API policy and declared profile |
TPdfReaderListLevel | See the linked reader API policy and declared profile |
TPdfReaderListContext | See the linked reader API policy and declared profile |
TPdfParagraphContinuationOptions | See the linked reader API policy and declared profile |
TPdf.ParagraphContinuation | See the linked reader API policy and declared profile |
TPdfReadableSourcePart | See the linked reader API policy and declared profile |
TPdfFormValue | See the linked reader API policy and declared profile |
TPdfFormValueWriteReport | See the linked reader API policy and declared profile |
TPdf.SetFormFieldCursor | See the linked reader API policy and declared profile |
TPdf.SetFormFieldValues | Atomic batch form values with typed requests, Opt button exports and explicit reports |
TPdfView.SetFormFieldValues | Atomic batch form values with typed requests, Opt button exports and explicit reports |
TPdfFormValueRequest | Atomic batch form values with typed requests, Opt button exports and explicit reports |
TPdfFormValueRequests | Atomic batch form values with typed requests, Opt button exports and explicit reports |
TPdfFormValuesWriteReport | Atomic batch form values with typed requests, Opt button exports and explicit reports |
TPdfReadingSession.FollowPages | Opt-in source-bound page following and manual-navigation suspension |
TPdfReadingSession.FollowingSuspended | Opt-in source-bound page following and manual-navigation suspension |
TPdfReadingSession.ResumeFollowing | Opt-in source-bound page following and manual-navigation suspension |
TPdfReadableContentOptions.IncludeFormXObjects | Opt-in unique nested Form reading with transformed geometry and exact native source ownership |
TPdfReadableContentOptions.IncludeSharedFormXObjects | Opt-in shared Form invocation reading and exact source mapping |
TPdfReadableContentOptions.IncludeTaggedFormXObjects | Opt-in tagged Form logical reading with explicit MCID namespaces, per-Do page/Form ownership and independent same-page/cross-page shared invocation identities |
TPdfReadableContentOptions.IncludeSemanticReplacements | Certified structure/native ActualText/Alt/E graphs, typed non-painting source provenance and explicit connected-component alternatives, with complete filters and exact uncovered glyphs |
TPdfReadableContentOptions.IncludeUnownedSemanticContent | Explicit native semantic reading without certified MCR ownership, with rosContent provenance, complete source graphs and exact uncovered glyph mapping |
TryComposeReadableText | Compose character substitutions and word/phrase substitutions whilst keeping original whitespace and explicit primary-choice boundaries |
TPdfReadableContentOptions.IncludeEmptySemanticSources | Keep complete empty or whitespace-only semantic sources for lossless character/word substitution boundaries |
TPdfReadableContentOptions.Default | Default reader profile: native order, no filtering, an 18-point column gap, and all opt-in switches off |
TPdfReadableContentOptions.ExcludeArtifacts | Drop top-level objects carrying an Artifact content mark, and tagged elements beneath Artifact structure ancestors, from readable output |
TPdfReadableContentOptions.HeuristicOrder | Choose rhoNative or rhoColumns ordering for untagged readable content, with bounded recursion and flow-band spans |
TPdfReadableContentOptions.ColumnGap | Minimum column gutter in PDF points for the rhoColumns heuristic: 1 to 1000000, with an 18-point default |
TPdfReadableContentOptions.RightToLeft | Right-to-left column progression and horizontal tie order for the rhoColumns heuristic |
TPdfReadableSemanticPartKind | Distinguish painted objects, non-painting marked sequences including generic zero-paint MCIDs, empty text shows and consumed or non-painting paths, and real empty Form invocations in complete semantic source provenance |
TPdfView.BuildSpokenReadableText | Validate contiguous page/document sources and compose speech with exact glyph mappings and unmapped semantic/boundary spans |
TPdf.SetFormFieldValue | See the linked reader API policy and declared profile |
TPdf.SetFocusedFormFieldValue | See the linked reader API policy and declared profile |
TPdfView.SetFormFieldCursor | See the linked reader API policy and declared profile |
TPdfView.SetFormFieldValue | See the linked reader API policy and declared profile |
TPdfView.SetFocusedFormFieldValue | See the linked reader API policy and declared profile |
TPdfReadingWordStyle | See the linked reader API policy and declared profile |
TPdfView.ReadingWordStyle | See the linked reader API policy and declared profile |
TPdfView.ReadingWordThickness | See the linked reader API policy and declared profile |
TPdfView.ReadingWordOpacity | See the linked reader API policy and declared profile |
ReadableContent | Returns semantic readable content fragments for screen-reader, text-to-speech, and accessibility workflows |
function ReadablePageContent(PageNumber: Integer): TPdfReadableContent | Returns semantic readable content fragments for screen-reader, text-to-speech, and accessibility workflows |
function ReadingUnits: TPdfReadingUnits | Builds sentence-level TPdfReadingUnit records from the current page readable-content stream for assistive listen-reading workflows |
Rectangle | Returns one text bounding rectangle from the current page text layout |
procedure RefreshAppearance(AnnotIndex: Integer) | Forces PDFium to regenerate the appearance stream of one annotation |
procedure RemoveAnnotationObject(Index, ObjectIndex: Integer) | Deletes one page object from an ink or stamp annotation |
function RectangleCount(StartIndex: Integer = 0; Count: Integer = MaxInt): Integer | Count number of rectangular areas occupied by a segment of texts. Function automatically merges small character boxes into bigger one if those characters are on the same line and use same font settings |
procedure ReloadPage | Reloads the currently selected page from the PDFium engine, refreshing the page object cache |
procedure RemoveObject(Index: Integer; DestroyObject: Boolean = True) | Removes the specified page object from the current page. When DestroyObject is True, the removed object is released after removal. The page content stream is regenerated automatically |
procedure RemovePageObjectMark(Index, MarkIndex: Integer) | Removes one marked-content entry from a page object |
procedure RemovePageObjectMarkParam(Index, MarkIndex: Integer; const Key: WString) | Removes one property from an existing mark without replacing it |
procedure RenderPage(DeviceContext: HDC; Left, Top, Width, Height: Integer; Rotation: TRotation = ro0; Options: TRenderOptions = []) | Render contents of a page to a device (screen, bitmap, or printer) |
function RenderPageByIndex(PageNumber, Width, Height: Integer; Rotation: TRotation = ro0; Options: TRenderOptions = []; Color: TColor = clWhite): TBitmap | Renders any page without changing PageNumber and reuses its parsed PDFium scene across output sizes |
procedure RenderPageSkia(Canvas: FPDF_SKIA_CANVAS; Width, Height: Integer; DrawFormOverlay: Boolean = True) | Renders the current page and optional form overlay to a caller-owned SkCanvas |
procedure RenderPageSkiaByIndex(Canvas: FPDF_SKIA_CANVAS; PageNumber, Width, Height: Integer; DrawFormOverlay: Boolean = True) | Renders any page to Skia through the parsed-page scene cache without changing the active page |
function RenderPageWithMatrix(Width, Height: Integer; const Matrix: FS_MATRIX; const Clip: TPdfRectangle; Options: TRenderOptions = []; Color: TColor = clWhite): TBitmap | Renders through an arbitrary transform with a destination-space clip rectangle |
function RenderSpotPlate(PlateIndex, Width, Height: Integer; Rotation: TRotation = ro0; Options: TRenderOptions = []; Color: TColor = clWhite): TBitmap | Renders one exact native print plate when the optional ABI exposes the operation |
function RenderOverprintPreview(Width, Height: Integer; Rotation: TRotation = ro0; Options: TRenderOptions = []; Color: TColor = clWhite): TBitmap | Renders exact native overprint preview when the optional ABI exposes the operation |
function RenderPageBanded(Width, Height, BandHeight: Integer; BandCallback: TPdfBandCallback; Rotation: TRotation = ro0; Options: TRenderOptions = []; Color: TColor = clWhite): Integer | Renders the page in horizontal bands so a large page never needs a full-size bitmap |
function RenderPageBandedToEncoder(Width, Height, BandHeight: Integer; Encoder: TPdfBandedImageEncoder; Rotation: TRotation = ro0; Options: TRenderOptions = []; Color: TColor = clWhite): TPdfBandedImageReport | Delivers sequential native-clipped bands to a caller-owned encoder and reports progress and peak band memory |
function RenderPageBandedToStream(Stream: TStream; Width, Height: Integer; const StreamOptions: TPdfBandedImageStreamOptions; Rotation: TRotation = ro0; Options: TRenderOptions = []; Color: TColor = clWhite): TPdfBandedImageReport | Streams PNG or TIFF rows directly from page bands without retaining full-page pixels |
RenderPageProgressive | Cancellable variant of RenderPage that drives PDFium's progressive rendering loop and polls an IPdfCancellationToken between iterations so long high-DPI renders can abort mid-page instead of blocking until completion |
function RenderPageProgressiveWithColorScheme(Bitmap: TBitmap; Left, Top, Width, Height: Integer; const AToken: IPdfCancellationToken; const ColorScheme: TPdfColorScheme; Rotation: TRotation = ro0; Options: TRenderOptions = []; Background: TColor = clWhite): TPdfProgressiveStatus | Cancellable progressive render that overrides path and text colours for low-vision reading |
function RenderPagesParallel(const PageNumbers: array of Integer; const Options: TPdfParallelRenderOptions; const CancellationToken: IPdfCancellationToken = nil): TPdfParallelRenderReport | Captures the current document once into bounded storage and renders requested pages through isolated worker-owned PDFium documents sharing memory, a read-only file mapping, or native random access |
function RenderPageThumbnail(PageIndex, MaxWidth, MaxHeight: Integer; Rotation: TRotation; Options: TRenderOptions; Background: TColor; const ColorScheme: TPdfColorScheme): TBitmap | Renders any one-based page into a revision-cached caller-owned bitmap with full render-key control |
function RenderTile(Left, Top, Width, Height, PageWidth, PageHeight: Integer; Rotation: TRotation = ro0; Options: TRenderOptions = []; Color: TColor = clWhite): TBitmap | Render rectangular area of a page to a new bitmap. Returned bitmap has to be manually released |
function SpotPlates: TPdfSpotPlateInfos | Returns exact native spot-plate indices and UTF-8 names when the optional ABI exposes enumeration |
InspectOptionalContent | Enumerates optional-content groups, configurations, usage metadata, radio groups, OCMD expressions, and effective PDFium rendering state |
function IsAnnotationSubtypeSupported(Subtype: TPdfAnnotationSubtype): Boolean | Reports whether the loaded PDFium module can create the annotation subtype |
function IsAnnotationObjectSubtypeSupported(Subtype: TPdfAnnotationSubtype): Boolean | Reports whether PDFium can extract and edit appearance objects for the annotation subtype |
function SaveAs(Stream: TStream; Option: TSaveOption = saNone; PdfVersion: TPdfVersion = pvUnknown): Boolean | Saves the copy of PDF document to the specified stream. If PdfVersion is pv13 through pv17, the saved output is normalised and validated for that target version, including existing catalog /Version overrides in incremental output. The validator covers the full PDF 1.1–1.7 / ISO 32000-1 feature timeline: filters (FlateDecode, JBIG2Decode, JPXDecode), object & xref streams, transparency (SMask, ca/CA, blend modes), Tagged PDF (StructTreeRoot, MarkInfo), colour spaces (ICCBased, DeviceN), page boxes (BleedBox/TrimBox/ArtBox), output intents, optional content, AcroForm, CID/Type 0 and OpenType fonts, AES & AES-256 encryption (CFM AESV2/AESV3), all version-restricted annotation subtypes (Widget, Sound, Movie, FreeText, Line, Square, Circle, Highlight, Underline, StrikeOut, Stamp, Ink, Popup, FileAttachment, TrapNet, Squiggly, PrinterMark, Polygon, PolyLine, Caret, Screen, Watermark, 3D, Redact), version-restricted action types (SubmitForm, ResetForm, ImportData, Hide, Named, JavaScript, Trans, SetState, Rendition, GoToE, GoTo3DView), and catalog entries (Perms, Legal, Collection, Requirements, NeedsRendering). Anything that exceeds the chosen target version raises EPdfError. If the document has no existing OpenAction and the target version supports it, the saved PDF opens on the first page with Fit Height zoom. Trial builds apply the trial watermark during save |
function SaveSourceBytes(Stream: TStream): Boolean | Writes the exact byte image the document is loaded from to a stream, without a native re-save; after SetFormFieldValues on a signed source this is the original signed bytes followed by the appended field revision |
function SaveSourceBytes(const FileName: string): Boolean | Atomically writes the exact source byte image to a file; an existing target is replaced only after the complete copy is written |
function SaveAsLinearized(Stream: TStream; Option: TSaveOption = saNone; PdfVersion: TPdfVersion = pvUnknown): Boolean | Writes a full-rewrite Fast Web View PDF with first-page grouping, two classic xref sections, and compressed Annex F hints when beneficial |
function SaveAsLinearized(const FileName: string; Option: TSaveOption = saNone; PdfVersion: TPdfVersion = pvUnknown): Boolean | Atomically writes Fast Web View output to a file after completing and validating a sibling temporary file |
function SaveAsObjectStream(Stream: TStream; Option: TSaveOption = saNone; PdfVersion: TPdfVersion = pvUnknown; MaxObjectsPerStream: Integer = 100; MaxDecodedBytesPerStream: Integer = 65536): Boolean | Reorders active objects for page locality, packs eligible values into bounded ObjStm groups, and writes complete type-2 xref entries |
function SaveAsObjectStream(const FileName: string; Option: TSaveOption = saNone; PdfVersion: TPdfVersion = pvUnknown; MaxObjectsPerStream: Integer = 100; MaxDecodedBytesPerStream: Integer = 65536): Boolean | Atomically writes PDF 1.5+ object-stream output after completing a sibling temporary file |
function SaveAsNormalizedContent(Stream: TStream; out Report: TPdfContentNormalizeReport; const Options: TPdfContentNormalizeOptions; SaveOption: TSaveOption = saNoIncremental; PdfVersion: TPdfVersion = pvUnknown): Boolean | Normalises each logical page content sequence and coalesces safe /Contents arrays into one stream |
function SaveAsNormalizedContent(const FileName: string; out Report: TPdfContentNormalizeReport; const Options: TPdfContentNormalizeOptions; SaveOption: TSaveOption = saNoIncremental; PdfVersion: TPdfVersion = pvUnknown): Boolean | Atomically replaces a file after normalised content and a complete classic xref are written |
SaveAsPageLabelled | Writes a full PDF copy whose catalog /PageLabels number tree is replaced with the supplied ranges, applying decimal, roman, and letter numbering styles per ISO 32000-1 §12.4.2 |
SaveAsOptionalContentConfigured | Writes and strictly verifies a copy with caller-selected optional-content group visibility for one configuration and usage |
SaveAsOptionalContentCreated | Creates optional-content groups carrying intent, state, locked and radio registration, membership dictionaries with policies or visibility expressions, and OC-gated form layer content on any page |
SaveAsShadingCreated | Creates axial and radial shading dictionaries with Device, calibrated and ICCBased colour spaces, rendering them through page-box-clipped sh invocations |
function SaveAsReachable(Stream: TStream; out Report: TPdfPruneReport; AllowSignedDocument: Boolean = False): Boolean | Sweeps unreachable objects and rewrites the document as one classic revision preserving object numbers |
function SaveAsReachable(const FileName: string; out Report: TPdfPruneReport; AllowSignedDocument: Boolean = False): Boolean | Atomically replaces a file after a pruned single-revision rewrite |
function SaveAsDeduplicated(Stream: TStream; out Report: TPdfDedupReport; AllowSignedDocument: Boolean = False): Boolean | Sweeps unreachable objects and rewrites references so duplicate fonts, images, and form XObjects share one representative |
function SaveAsDeduplicated(const FileName: string; out Report: TPdfDedupReport; AllowSignedDocument: Boolean = False): Boolean | Atomically replaces a file after a deduplicated single-revision rewrite |
function SaveAsFlateRecompressed(Stream: TStream; const Options: TPdfFlateRecompressOptions; out Report: TPdfFlateRecompressReport; AllowSignedDocument: Boolean = False): Boolean | Re-encodes eligible FlateDecode streams at maximum compression when the measured saving clears a caller threshold |
function SaveAsFlateRecompressed(const FileName: string; const Options: TPdfFlateRecompressOptions; out Report: TPdfFlateRecompressReport; AllowSignedDocument: Boolean = False): Boolean | Atomically replaces a file after a Flate-recompressed rewrite |
function SaveAsInlineImagesExternalised(Stream: TStream; const Options: TPdfInlineImageExternaliseOptions; out Report: TPdfInlineImageExternaliseReport; AllowSignedDocument: Boolean = False): Boolean | Extracts BI/ID/EI inline images into reusable XObjects, expands abbreviations, and replaces inline blocks with Do operators |
function SaveAsInlineImagesExternalised(const FileName: string; const Options: TPdfInlineImageExternaliseOptions; out Report: TPdfInlineImageExternaliseReport; AllowSignedDocument: Boolean = False): Boolean | Atomically replaces a file after inline-image externalisation |
function SaveAsReproducible(Stream: TStream; out Report: TPdfReproducibleReport; AllowSignedDocument: Boolean = False): Boolean | Strips non-deterministic timestamps and /ID so two saves of the same document are byte-identical |
function SaveAsReproducible(const FileName: string; out Report: TPdfReproducibleReport; AllowSignedDocument: Boolean = False): Boolean | Atomically replaces a file after a reproducible rewrite |
function ExportObjectGraph(Stream: TStream; const Options: TPdfObjectGraphInspectOptions; out Report: TPdfObjectGraphReport): Boolean | Exports active indirect values as budgeted typed JSON and reports explicit truncation |
function SaveAsObjectGraphPatched(Stream: TStream; const Operations: TPdfObjectPatchOperations; out Report: TPdfObjectGraphReport; AllowSignedDocument: Boolean = False): Boolean | Appends a validated dictionary-only patch revision and strict-loads it before copying to the destination |
function SaveAsObjectGraphPatched(const FileName: string; const Operations: TPdfObjectPatchOperations; out Report: TPdfObjectGraphReport; AllowSignedDocument: Boolean = False): Boolean | Atomically replaces a file after a successful object-graph patch transaction |
function SaveAsRedacted(Stream: TStream; const Options: TPdfRedactionOptions; out Report: TPdfRedactionReport): Boolean | Applies /Redact annotations to an isolated snapshot, removes intersecting content, paints opaque replacements, and emits a clean single-revision stream (Enterprise edition). Detailed redaction rebuilds supported dashed open and closed subpaths, preserves qualified fill-and-stroke paths, subtracts redactions from the painted outline of supported solid strokes, and retains supported path clips on rebuilt straight and cubic Bézier fills, supported straight strokes and solid or dashed cubic Bézier strokes with butt, round or projecting square caps and round, bevel or supported miter joins, supported horizontal text, and affine images, packed DeviceGray and DeviceRGB samples with supported explicit /Decode mappings and supported Indexed palette strings or streams with default or explicit index decoding included, given the matching native DLL. The optional FPDFTextObj_CreateRedactionGlyph export also preserves supported horizontal invisible and stroked text without a path clip. The optional glyph-clip exports preserve qualified glyph clips on pages and in expanded Forms as trimmed path geometry, supported fill, stroke and fill-and-stroke text with clipping and TJ spacing adjustments included. With the optional Type 3 detection export, unmodified Type 3 pages can be retained whilst supported Form XObjects elsewhere in the document are rewritten. The optional FPDFTextObj_GetRedactionType3Bounds export lets qualified Type 3 text on pages and in expanded Forms outside the redaction regions survive a detailed vector redaction rewrite, with or without glyph clipping. Qualified Type 3 text retains character spacing, word spacing and kerning. The optional FPDFTextObj_MarkRedactionType3Source export allows removal of intersecting eligible shows where their font and glyph programs can be revoked, including where several intersecting shows share the same resources. For eligible shared Type 3 fonts with qualified path glyphs, device colour and constant alpha resources defined by the font or glyph included, the exporter can remove unused CharProc streams and retain the other glyphs. Font-level colour and alpha entries that only the removed glyphs use are pruned. Retained annotation-only appearances can use shading patterns and eligible tiling patterns with explicit resources. Without glyph clipping, eligible unmodified pages retain their original pattern paint. Given the matching native module, a redacted page can also retain disjoint pattern fills and supported solid and dashed pattern strokes on straight and cubic Bézier paths, separate fills and strokes in one graphics state scope across several isolated content streams included, where their predecessors restore their graphics state or carry only an exactly replayable affine transform across the stream boundary. The matching native module also supports separate clipping streams with supported line and cubic Bézier contours, implicit or explicit closures, concave contours, holes, and crossings within or between contours included, where the actual clip contains every redaction region, clips that inherit an exactly replayable affine transform included. Eligible filled Type 3 glyph paths can use device colour aliases and constant alpha graphics states in direct or indirect font and glyph stream resource dictionaries. The optional FPDFPageObj_GetStrokeMiterLimit export enables miter joins on supported rebuilt polylines and cubic Bézier strokes |
function SaveAsRedacted(const FileName: string; const Options: TPdfRedactionOptions; out Report: TPdfRedactionReport): Boolean | Atomically replaces a file after the redaction and sanitisation pipeline succeeds (Enterprise edition) |
SaveAsSanitised | Produces a clean single-revision copy that strips active content and catalog /AF, then prunes unreachable objects so orphaned JavaScript, action, and attachment bodies disappear from the file body (Enterprise edition) |
BeginIncrementalSave / CommitIncrementalSave / EndIncrementalSave | Dirty-object incremental save session: capture a stable baseline once, append byte-preserving revisions after the exact previous output, and release the session when done |
procedure BeginIncrementalSave(AllowSignedDocument: Boolean = False) | Captures the stable baseline and exact encrypted or unencrypted source prefix for a dirty-object revision session |
function CommitIncrementalSave(Stream: TStream; out Info: TPdfIncrementalCommitInfo): Boolean | Appends changed or new indirect objects, inherits existing encryption, and independently validates the result |
function CommitIncrementalSave(const FileName: string; out Info: TPdfIncrementalCommitInfo): Boolean | Durably flushes and reopens a side file before atomic replacement and restores session state after any failure |
procedure EndIncrementalSave | Releases the session baseline and accumulated output |
function ExportFDF(const FileName: string): Integer | Writes form field values as FDF (ISO 32000-1 12.7.11); a TStream overload is also available |
function SaveAsEncrypted(const FileName: string; const Options: TPdfEncryptOptions): Boolean | Saves the active PDF with AESV3-CBC or ISO/TS 32003 AESV4-GCM encryption |
function SaveAsEncryptedToStream(Stream: TStream; const Options: TPdfEncryptOptions): Boolean | Writes the encrypted PDF output into any seekable TStream without staging through disk |
function PreparePadesRemoteSignature(Prepared: TStream; const Options: TPadesRemoteSignOptions; out Request: TPadesRemoteSigningRequest): Boolean | Creates a constrained approval or certification field plus the detached-signature digest, exact ByteRange, coordinates, and prepared-PDF fingerprint needed for remote signing (Enterprise edition) |
class function CompletePadesRemoteSignature(Prepared, Dest: TStream; const Request: TPadesRemoteSigningRequest; const CmsDer: TBytes): Boolean | Rejects a modified or reused session and fills the reserved signature slot only when the detached CMS is bound to the prepared document digest (Enterprise edition) |
class procedure SavePadesRemoteSigningRequest(Stream: TStream; const Request: TPadesRemoteSigningRequest) | Writes the fixed versioned remote-signing request format to a stream (Enterprise edition) |
property SecurityHandlerRevision: Integer | Revision of the standard security handler, or a negative value for an unencrypted document |
function SetAnnotationFontColor(AnnotIndex: Integer; Color: TColor): Boolean | Overrides the text colour of a form-field widget annotation |
procedure SetAttachmentStringValue(Index: Integer; const Key, Value: WString) | Writes one string entry into the file-specification dictionary of an attachment |
class procedure SetDeterministicTime(FixedEpoch: Int64) | Freezes the clock PDFium stamps into output so saved documents are byte-reproducible |
class function LoadPadesRemoteSigningRequest(Stream: TStream): TPadesRemoteSigningRequest | Reads and validates the fixed versioned remote-signing request format (Enterprise edition) |
function RenewPadesArchiveTimestamp(const FileName: string; const Options: TPadesArchiveTimestampOptions; out Report: TPadesArchiveTimestampReport): Boolean | Appends an archival Document Time-stamp to the original loaded PAdES bytes and writes an atomically staged file (Enterprise edition) |
function RenewPadesArchiveTimestampToStream(Stream: TStream; const Options: TPadesArchiveTimestampOptions; out Report: TPadesArchiveTimestampReport): Boolean | Appends an archival Document Time-stamp and writes the validated B-LTA chain to a stream (Enterprise edition) |
class procedure RestoreActualTime | Returns PDFium to the system clock after a deterministic-time session |
function SaveAsPadesDss(const FileName: string; const Options: TPadesDssOptions): Boolean | Saves the active PDF to a file with deduplicated PAdES DSS material, signature-specific VRI dictionaries, and the source xref representation (Enterprise edition) |
function SaveAsPadesDssToStream(Stream: TStream; const Options: TPadesDssOptions): Boolean | Saves the active PDF to a stream with deduplicated PAdES DSS material, signature-specific VRI dictionaries, and the source xref representation (Enterprise edition) |
SaveAsPdfA | Saves the current document as a PDF/A-1b conformant file by post-processing the base PDF with an incremental update that injects an XMP metadata stream, an sRGB ICC OutputIntent, and an updated document catalog |
function SaveAsPdfAToStream(Stream: TStream; const Options: TPdfASaveOptions): Boolean | In-memory variant of SaveAsPdfA — writes the PDF/A-1b output into any TStream without staging through disk |
SaveAsPdfE | Saves the current document as a PDF/E-1 conformant file by post-processing the base PDF with an incremental update that injects PDF/E-1 file-format markers (ISO 24517-1:2008) (Enterprise edition) |
function SaveAsPdfEToStream(Stream: TStream; const Options: TPdfESaveOptions): Boolean | In-memory variant of SaveAsPdfE — writes the PDF/E-1 output into any TStream without staging through disk (Enterprise edition) |
SaveAsPdfR | Saves the current document as a PDF/R-1 conformant file (ISO 23504-1:2020, the raster image transport and storage subset of PDF used for scanned documents) (Small Business and Enterprise editions) |
function SaveAsPdfRToStream(Stream: TStream; const Options: TPdfRSaveOptions): Boolean | In-memory variant of SaveAsPdfR — writes PDF/R-1 output into any TStream without staging through disk (Small Business and Enterprise editions) |
SaveAsPdfUa | Saves PDF/UA-1 by default or PDF/UA-2 with TPdfUaSaveOptions.PdfUa2, including the required XMP identification and effective PDF version |
function SaveAsPdfUaToStream(Stream: TStream; const Options: TPdfUaSaveOptions): Boolean | In-memory PDF/UA-1 and PDF/UA-2 output without staging through disk |
SaveAsPdfVT | Saves the current document as a single-file PDF/VT-1 conformant file (ISO 16612-2:2010, the variable and transactional printing PDF subset) (Enterprise edition) |
function SaveAsPdfVTToStream(Stream: TStream; const Options: TPdfVTSaveOptions): Boolean | In-memory variant of SaveAsPdfVT — writes PDF/VT output into any TStream without staging through disk (Enterprise edition) |
SaveAsPdfX | Saves the current document as a PDF/X-1a:2001, PDF/X-3:2002, or PDF/X-4 conformant file by post-processing the base PDF with an incremental update that injects PDF/X file-format markers (ISO 15930 family) (Enterprise edition) |
function SaveAsPdfXToStream(Stream: TStream; const Options: TPdfXSaveOptions): Boolean | In-memory variant of SaveAsPdfX — writes PDF/X output into any TStream without staging through disk (Enterprise edition) |
function SaveAsWithAssociateFiles(const FileName: string; const Options: TAssocFilesOptions): Boolean | Saves the active PDF to a file path while injecting associated files into the catalog or pages conforming to ISO 32000-2 §7.11.4 |
function SaveAsWithAssociateFilesToStream(Stream: TStream; const Options: TAssocFilesOptions): Boolean | Writes the PDF output with injected associated files into any seekable TStream without staging through disk |
function SaveAsWithXmpPacket(Stream: TStream; Packet: TPdfXmpPacket; AllowSignedDocument: Boolean = False): Boolean | Saves the document with a replacement XMP metadata packet |
function NormalizePdfAMetadata(Stream: TStream; AllowSignedDocument: Boolean = False): Boolean | Repairs mismatched mapped XMP properties and saves the normalised document |
procedure SetFormFieldFlags(Index: Integer; const Flags: TPdfFormFieldFlags) | Sets AcroForm field flags for the form field at the specified annotation index on the current page |
procedure SetFormFieldFlagsAt(X, Y: Single; const Flags: TPdfFormFieldFlags) | Sets the Flags bit field on the form field at the given coordinates |
function SetFocusedFormFieldText(const Value: WString): Boolean | Sets the value of the current logical form field by FocusedFormFieldIndex without depending on the interactive caret |
function SetFocusedFormFieldTextDirection(Direction: TPdfFormTextDirection): Boolean | Changes the focused widget's in-memory text direction; the value is not persisted on save |
function SetFocusedFormOptionSelected(Index: Integer; Selected: Boolean): Boolean | Selects or clears one option of the focused list or combo box |
procedure SetPageBox(Box: TPdfPageBox; const Rectangle: TPdfRectangle) | Writes a new rectangle for the named page box (MediaBox / CropBox / BleedBox / TrimBox / ArtBox) on the current page |
procedure SetPageObjectMarkParam(Index, MarkIndex: Integer; const Param: TPdfContentMarkParam) | Upserts one typed property on an existing mark while preserving its identity and unrelated properties |
SetText | Adds a text page object at the given page coordinate |
procedure SetTextPositions(ObjectIndex: Integer; const Positions: TPdfSingleArray) | Sets per-character positions for the specified text object. The first character position is implied as 0; Positions[0] sets the second character position, Positions[1] sets the third, and so on. Values are in points and relative to the text object origin |
StampPagesFromPdf | Stamps a source page as a positioned, scaled, optionally rotated Form XObject overlay or underlay across one or more target pages |
Signature | Indexed property — returns one digital-signature record (content, byte range, encoding, reason, signing time, permission) |
SignatureCount | Number of digital signature fields embedded in the document |
property Signatures: TPdfSignatures | Copies all native signature records into one lifetime-safe snapshot |
function SignPades(const FileName: string; const Options: TPadesSignOptions): Boolean | Appends an approval or certification PAdES signature with optional seed-value, certificate, FieldMDP, and DocMDP constraints while preserving existing form and permission entries (B-LT and B-LTA levels: Enterprise edition) |
function SignPadesToStream(Stream: TStream; const Options: TPadesSignOptions): Boolean | Writes a constrained PAdES signature update with a registered Widget field, 64-bit ByteRange processing, and the source xref representation (B-LT and B-LTA levels: Enterprise edition) |
function SignPadesForDigest(const FileName: string; const Options: TPadesSignOptions; DigestAlgorithm: TCmsDigestAlgorithm): Boolean | Appends an approval or certification PAdES signature computed and declared with the chosen digest, including the ISO/TS 32001 SHA-3 family (B-LT and B-LTA levels: Enterprise edition) |
function SignPadesToStreamForDigest(Stream: TStream; const Options: TPadesSignOptions; DigestAlgorithm: TCmsDigestAlgorithm): Boolean | Writes the same digest-selected PAdES signature update to a destination stream (B-LT and B-LTA levels: Enterprise edition) |
function SignPadesWithPdfA(const FileName: string; const Options: TPadesSignOptions; PdfAOptions: TPdfASaveOptions): Boolean | Saves a signed PAdES PDF document complying with PDF/A archive standards (B-LT and B-LTA levels: Enterprise edition) |
StructureElements | Returns the flattened logical structure tree elements (TPdfStructureElements) for the current page |
Subject | Returns the value of the /Subject entry from the PDF document information dictionary |
function Text(StartIndex: Integer = 0; Count: Integer = MaxInt): WString | Extract text string from the page. StartIndex and Count parameters determine characters to be extracted. StartIndex parameter is 0-based |
function TextInRectangle(Left, Top, Right, Bottom: Double): WString | Extract text within a rectangular boundary on the page |
TextPage | Native PDFium text-page handle for the currently active page |
function ThumbnailDecodedData: TBytes | Reads the embedded page thumbnail with its stream filters decoded |
property ThumbnailCacheMaxEntries: Integer | Maximum retained embedded and rendered thumbnail entries, default 64 |
property ThumbnailCacheMaxBytes: Int64 | Maximum estimated pixel bytes retained by the thumbnail LRU, default 64 MiB |
property ThumbnailCacheStatistics: TPdfThumbnailCacheStatistics | Reports occupancy, stored bytes, hits, misses, and evictions |
property ThumbnailRevision: Int64 | Monotonic content revision used by thumbnail consumers to discard stale local previews |
function ThumbnailRawData: TBytes | Reads the embedded page thumbnail as stored, with its filters still applied |
property Thumbnail | Returns the embedded /Thumb preview of the current page as a caller-owned TBitmap (or nil if none is stored) |
Title | Returns the value of the /Title entry from the PDF document information dictionary |
property TrailerEnds: TPdfCardinalArray | Byte offsets where each trailer of the document ends, one per revision |
procedure TransformPageAnnotations(const Matrix: FS_MATRIX) | Applies a transform matrix to every annotation on the current page |
procedure TransformPageContent(const Matrix: FS_MATRIX; const Clip: TPdfRectangle) | Applies a transform matrix to every content object on the current page, with a clip rectangle |
procedure TransformPageObject(Index: Integer; const Matrix: FS_MATRIX) | Multiplies the transform matrix of one page object, moving, scaling, rotating, or skewing it |
procedure TransformPageObjectClipPath(Index: Integer; const Matrix: FS_MATRIX) | Transforms only the clip geometry associated with one page object |
Transparent | Whether the currently active page contains transparent content |
procedure UpdateAnnotationObject(AnnotIndex: Integer; PageObj: Pointer) | Tells an annotation that one of its page objects has been modified |
procedure UpdatePageObject(Index: Integer; const Value: TPdfPageObjectInfo; Changes: TPdfPageObjectChanges) | Writes back only the page-object attributes named by the change set |
procedure UpdatePage | Commits in-memory edits made through CreateAnnotation, AddImage, AddText, SetFormFieldFlagsAt, etc. to the underlying PDFium page |
property UserPermissions | Returns the user-password permission bits (a subset of Permissions) |
UserGrantedPermissions | Returns user-password permissions as a typed TPdfPermissions set |
UserHasPermission(Permission: TPdfPermission): Boolean | Tests one user-password permission without manual bit arithmetic |
function ValidatePades: TPadesValidationResult | Validates unique signature-profile entries and the exact Contents exclusion span directly in the original source bytes without resaving the PDF |
function ValidatePadesTrust(const Options: TPadesTrustValidationOptions): TPadesValidationResult | Verifies exact original ByteRange data, signer trust, optional revocation evidence, and RFC 3161 timestamp tokens (Enterprise edition) |
function ValidatePadesTrustAsync(const Options: TPadesTrustValidationOptions; const Reply: TPadesTrustValidationReply): Boolean | Captures the original source and dispatches cancellable staged trust validation to a worker thread (Enterprise edition) |
function ValidatePdfMac(const Password: AnsiString): TPdfMacValidationResult | Verifies a standalone PDF MAC using the exact original source bytes and supplied password |
function ValidatePdfA: TPdfAValidationResult | Validates PDF/A markers, content facts, and exact ISO 19005-1 Info-to-XMP value equivalence |
function ValidatePdfE: TPdfEValidationResult | Inspects the currently open PDF for PDF/E-1 compliance markers and returns a structured result with the detected conformance level plus the set of specific issues found (Enterprise edition) |
ValidatePdfR | Validates PDF/R-1 file markers, metadata, encryption profile, raster-only page content, strip geometry, colour, effective resolution, and compression parameters (Small Business and Enterprise editions) |
function ValidatePdfUa: TPdfUaValidationResult | Validates PDF/UA-1 and PDF/UA-2 identification, active catalogue metadata and ISO 14289-2:2024 identification included, the active structure root and PDF/UA-2 table grids, widget structure rules, catalogue accessibility flags, page-local annotation tab order, optional-content configuration rules, XFA restrictions with indirect configuration stream lengths, the PDF/UA-1 Reference XObject prohibition, shared accessibility rules, and the effective PDF 2.0 version that PDF/UA-2 requires |
function ValidatePdfVT: TPdfVTValidationResult | Inspects the currently open PDF for PDF/VT compliance markers and returns a structured result with the detected conformance level plus the set of issues found (Enterprise edition) |
function ValidatePdfX: TPdfXValidationResult | Inspects the currently open PDF for PDF/X compliance markers and returns a structured result with the detected conformance level plus the set of specific issues found (Enterprise edition) |
function VisitStructureElements(PageNumber; Options; Visitor; out Status): Integer | Streams structure element snapshots to a method callback without materialising a page array |
ViewerPreference | Indexed property — returns the string representation of a named /ViewerPreferences entry |
WebLink | URL and bounding rectangles for an auto-detected web link on a page |
WebLinkCount | Number of auto-detected web URLs identified by scanning a page's text |
property XFA | Read-only property — returns True when the document contains an XFA form payload (full or foreground) |
property XfaFormPackets: TXfaPacketList | Snapshots all embedded XFA packets exposed through the XFA runtime as a TXfaPacketList collection |
property XfaRuntimeAvailable: Boolean | Indicates whether the XFA runtime is available for the loaded document |
property XfaStaticReadable: Boolean | Indicates whether the static XFA packet can be read without the XFA runtime |
function LinkZOrderAtPoint(X, Y: Double): Integer | Returns the frontmost link annotation z-order at page coordinates, or -1 when no link is hit |
function FormFieldZOrderAtPoint(X, Y: Double): Integer | Returns the frontmost form field z-order at page coordinates, or -1 when no field is hit |
function TryGetAnnotationFileAttachment(AnnotIndex: Integer; out Attachment: TPdfAnnotationAttachment; MaxBytes: Cardinal = 67108864): Boolean | Copies bounded file-attachment metadata and payload from an annotation into an owned record |
function GetLinkedAnnotationIndex(AnnotIndex: Integer; Relationship: TPdfAnnotationRelationship): Integer | Resolves the Popup or IRT related annotation index with dangling-reference protection |
function GetLinkedAnnotationChain(AnnotIndex: Integer; Relationship: TPdfAnnotationRelationship; MaxDepth: Integer = 64): TPdfIntegerArray | Walks a Popup or IRT relationship chain with cycle and depth protection |
function GetAnnotationDictionaryValue(AnnotIndex: Integer; const Key: WString): TPdfDictionaryValue | Reads one typed value from an annotation dictionary entry |
function GetAttachmentDictionaryValue(Index: Integer; const Key: WString): TPdfDictionaryValue | Reads one typed value from an embedded-file attachment dictionary entry |
procedure SetFocusableAnnotationSubtypes(const Subtypes: array of TPdfAnnotationSubtype) | Restricts which annotation subtypes may receive keyboard focus through the form handle |
function GetFocusableAnnotationSubtypes: TPdfAnnotationSubtypes | Returns the annotation subtypes currently eligible for keyboard focus |
procedure ClearFormSelectionRects | Clears the cached form selection rectangles reported through OnFormSelectionRect |
TPdfView is a scrollable visual control for displaying and interacting with PDF documents. It requires a Pdf: TPdf reference
| Property | Type | Default | Description |
|---|---|---|---|
About | string | Component version information | |
Active | Boolean | False | Activate/deactivate the viewer |
CurrentCharIndex | Integer | 0 | Application-selected character index retained for compatibility |
DisplayMode | TPdfDisplayMode | dmSingleContinuous | Page display mode (dmSingleContinuous, dmTwoPageContinuous, dmTwoPageContinuousWithCover) |
Options | TRenderOptions | [reLcd] | Rendering options (LCD text, annotations, greyscale, etc.) |
PageShadowSize | Integer | 0 | Optional drop-shadow size in pixels; negative values clamp to 0 |
PageShadowColor | TColor | clGray | Drop-shadow fill colour used when PageShadowSize > 0 |
PageBorderColor | TColor | clBlack | One-pixel page border colour |
SmoothScroll | Boolean | False | Animates line/page scrollbar commands in timer-driven segments; thumb tracking remains immediate |
LinkOptions | TPdfViewLinkOptions | [loAutoGoto, loAutoOpenURI] | Controls automatic goto, URI, launch, and embedded-goto behaviour after link click events |
AsyncRendering | Boolean | False | Shows the loading overlay when enabled; the application still owns worker dispatch |
LoadingText | string | Loading... | Text drawn in the AsyncRendering overlay; an empty string suppresses the overlay |
LoadingColor | TColor | clYellow | Background colour for the AsyncRendering overlay |
NightDuotoneInk | TColor | $0000C8FF | Ink colour used by the reNightDuotone low-vision render option |
NightDuotonePaper | TColor | clBlack | Paper colour used by the reNightDuotone low-vision render option |
ReadingHighlightColor | TColor | clSkyBlue | Controls the broader reading highlight overlay colour |
ReadingWordColor | TColor | $0000A5FF | Controls the overlay colour used for the current word-level reading cursor |
ReadingWordFollow | Boolean | True | Controls whether TPdfView scrolls the current spoken word into view whilst tracking reading |
PageNumber | Integer | 1 | Current page number (1-based) |
Pdf | TPdf | nil | Reference to the TPdf component |
Rotation | TRotation | ro0 | Display rotation (ro0, ro90, ro180, ro270) |
Zoom | Double | 1.0 | Zoom level (1.0 = 100%) |
| Property | Type | Description |
|---|---|---|
ActualSizeZoom[PageNumber] | Double | Zoom value to display the page at its actual size |
AllowFormEvents | Boolean | Gates the mouse, keyboard, and focus events the viewer forwards to the form-fill layer; page load and close are never gated |
Canvas | TCanvas | Canvas for custom drawing on the viewer |
CharacterAngle[Index] | Single | Character rotation angle in radians |
CharacterCount | Integer | Number of characters on the current viewer page |
CharacterFontSize[Index] | Double | Font size of the character at index; FontSize[Index] remains as a compatible alias |
CharacterFontWeight[Index] | Integer | Font weight of the character at index |
CharacterOrigin[Index] | TPoint | Character origin in viewer device coordinates |
CharacterRectangle[Index] | TRect | Character bounds in viewer device coordinates |
FontAscent[Index; FontSize] | Single | Ascent of the font used by the text object at index |
FontBaseName[Index] | WString | Base font name for the text object at index |
FontData[Index] | TBytes | Raw font data for the text object at index |
FontDescent[Index; FontSize] | Single | Descent of the font used by the text object at index |
FontFamilyName[Index] | WString | Font family name for the text object at index |
FontHandle[Index] | FPDF_FONT | Low-level PDFium font handle for the text object at index |
FontIsEmbedded[Index] | Boolean | True if the text object's font is embedded in the PDF |
FontItalicAngle[Index] | Integer | Italic angle of the text object's font |
FontWeight[Index] | Integer | Font weight of the text object's font |
PageHeightZoom[PageNumber] | Double | Zoom value to fit the page height in the viewer |
PageWidthZoom[PageNumber] | Double | Zoom value to fit the page width in the viewer |
PageZoom[PageNumber] | Double | Zoom value to fit the entire page in the viewer |
StructureElements | TPdfStructureElements | Flattened logical structure elements for the current viewer page |
WindowHandle | HWND | Window handle of the viewer control |
| Method | Description |
|---|---|
function AddSearchTextHighlight(const Text: WString; MatchCase: Boolean = False; MatchWholeWord: Boolean = False): Integer | Highlights every match of the text on the current page and returns the number of hits |
CharacterIndexAtPos(X, Y: Integer; ToleranceX, ToleranceY: Double): Integer | Resolve the character near a viewer device-coordinate point; returns -1 when no character is nearby |
DeviceToPage(X, Y: Integer; out PageX, PageY: Double): Boolean | Convert viewer device coordinates to page coordinates |
DeviceToPage(X, Y: Integer; var PageNumber: Integer; var PageX, PageY: Double): Boolean | Convert viewer device coordinates to page coordinates with page detection |
DeviceToPage(Rectangle: TRect): TPdfRectangle | Convert a viewer device rectangle to a page rectangle |
PageToDevice(PageX, PageY: Double; out X, Y: Integer): Boolean | Convert page coordinates to viewer device coordinates |
PageToDevice(Rectangle: TPdfRectangle): TRect | Convert a page rectangle to a viewer device rectangle |
LinkAnnotationAtPos(X, Y: Integer): Integer | Get link annotation index at screen position |
LinkAnnotationAtPos(X, Y: Integer; out PageNumber: Integer): Integer | Get link annotation index with page number |
WebLinkAtPos(X, Y: Integer): Integer | Get web link index at screen position |
WebLinkAtPos(X, Y: Integer; out PageNumber: Integer): Integer | Get web link index with page number |
PaintSelection(SelectionStart, SelectionEnd: Integer; Mask: TColor) | Paint text selection highlight |
function PasteFormTextFromClipboard: Boolean | Pastes clipboard text into the focused form field |
FocusedFormFieldValue: WString | Returns the current logical form field value by FocusedFormFieldIndex without depending on the interactive caret |
function FocusedFormOptionSelected(Index: Integer): Boolean | Reports whether one option of the focused list or combo box is selected |
FocusedFormFieldName: WString | Returns the current logical form field display name, preferring AlternateName and falling back to Name |
FocusedFormFieldDetails: TPdfFormFieldInfo | Returns TPdfFormFieldInfo for the current logical form field |
ReadingUnits: TPdfReadingUnits | Return sentence-level reading units for assistive listen-reading and semantic navigation |
PageWordBoxes: TPdfWordBoxes | Return word boxes with FTextPage ranges and page-space rectangles for word-by-word highlighting |
SetReadingWord(const Word: TPdfWordBox) | Highlights one TPdfWordBox as the current spoken word on TPdfView |
ClearReadingWord | Clears the current word-level reading cursor overlay on TPdfView |
function CopySelectedFormTextToClipboard: Boolean | Copies the selected text of the focused form field to the clipboard |
function CutSelectedFormTextToClipboard: Boolean | Cuts the selected text of the focused form field to the clipboard |
TrackReadingWordAt(PageNumber, CharIndex: Integer): Integer | Maps a page character offset to the containing TPdfWordBox, highlights it, and returns the word index |
RemoveObject(Index: Integer; DestroyObject: Boolean = True) | Remove a page object from the current page, regenerate page content, and repaint the viewer |
function SelectLineAt(Page, CharIndex: Integer): Boolean | Selects the whole text line containing the given character index |
function SetFocusedFormOptionSelected(Index: Integer; Selected: Boolean): Boolean | Selects or clears one option of the focused list or combo box |
GenerateFormAppearances | Regenerates /AP appearance streams via the associated TPdf component (see TPdf.GenerateFormAppearances) |
FlattenPage(nFlag: Integer = FLAT_NORMALDISPLAY): Integer | Flattens annotations and form widgets on the current page into static content |
SetFormFieldFlags(Index: Integer; const Flags: TPdfFormFieldFlags) | Set AcroForm field flags by current-page annotation index |
SetFormFieldFlagsAt(X, Y: Integer; const Flags: TPdfFormFieldFlags) | Set AcroForm field flags at viewer control coordinates |
function ReplaceFormTextAndKeepSelection(const Text: WString): Boolean | Replaces focused form field text through FORM_ReplaceAndKeepSelection whilst keeping selection state |
function FormFieldZOrderAt(X, Y: Integer): Integer | Returns the frontmost form field z-order at client coordinates, or -1 when none is hit |
function LinkZOrderAt(X, Y: Integer): Integer | Returns the frontmost link annotation z-order at client coordinates, or -1 when none is hit |
| API | Description |
|---|---|
property About: string | Documents the About member published by TPdfView |
Active | Activates or deactivates the viewer, opening the bound PDF document and rendering the selected page |
property ActualSizeZoom[PageNumber: Integer]: Double | Read-only nominal 1:1 zoom scale factor (1.0, corresponding to 100% zoom) |
procedure AddImage(const FileName: string; X, Y, Width, Height: Integer); overload | Adds an image to the page currently displayed by TPdfView, converting a viewer client-coordinate rectangle into PDF page coordinates |
function AddJpegImage(JpegImage: TStream; X, Y, Width, Height: Integer): Boolean | TPdfView wrapper that forwards to TPdf.AddJpegImage |
function AddJpegImageDeferred(JpegImage: TStream; X, Y, Width, Height: Integer; OwnsJpegImage: Boolean = False): Boolean | TPdfView wrapper that forwards to TPdf.AddJpegImageDeferred, converting the viewer client-coordinate rectangle into PDF page coordinates |
function AddJpegImageFile(const FileName: string; X, Y, Width, Height: Integer): Boolean | TPdfView wrapper that forwards to TPdf.AddJpegImageFile, converting the viewer client-coordinate rectangle into PDF page coordinates |
procedure AddPicture(Picture: TPicture; X, Y: Integer); overload | TPdfView wrapper that forwards to TPdf.AddPicture |
Align | Controls how the PDF viewer is laid out inside its parent container |
property AllowUserPageChange: Boolean | Allows user input (mouse wheel, scroll bar drag, key bindings) to change the current page |
property AllowUserTextSelection: Boolean | Gates user-input-driven text selection in the viewer |
Anchors | Specifies which edges of the viewer remain a fixed distance from the corresponding edges of its parent when the parent is resized |
property Annotation[Index: Integer]: TPdfAnnotation | TPdfView wrapper that forwards to TPdf.Annotation |
property AnnotationCount: Integer | TPdfView wrapper that forwards to TPdf.AnnotationCount |
property AsyncRendering: Boolean | Opt-in flag that tells the view to draw a small "Loading..." overlay during long renders so applications using their own worker for off-thread rendering share a consistent visual affordance |
property Bitmap[Index: Integer]: TBitmap | TPdfView wrapper that forwards to TPdf.Bitmap |
property BitmapCount: Integer | TPdfView wrapper that forwards to TPdf.BitmapCount |
property Canvas: TCanvas | Drawing canvas exposed by the control after a page is rendered |
property ChangePageOnMouseScrolling: Boolean | In SinglePage mode, controls whether mouse-wheel scrolling at the page edge advances to the next page |
property Character[Index: Integer]: WideChar | TPdfView wrapper that forwards to TPdf.Character |
property CharacterAngle[Index: Integer]: Single | TPdfView wrapper that forwards to TPdf.CharacterAngle |
property CharacterCount: Integer | TPdfView wrapper that forwards to TPdf.CharacterCount |
property CharacterFontSize[Index: Integer]: Double | TPdfView wrapper that forwards to TPdf.CharacterFontSize |
property CharacterFontWeight[Index: Integer]: Integer | TPdfView wrapper that forwards to TPdf.CharacterFontWeight |
property CharacterGenerated[Index: Integer]: Boolean | TPdfView wrapper that forwards to TPdf.CharacterGenerated |
function CharacterIndexAtPos(X, Y: Integer; ToleranceX, ToleranceY: Double): Integer | Returns the character index in the current page nearest to the screen pixel (X, Y), or -1 if no character is close enough |
property CharacterIsHyphen[Index: Integer]: Boolean | TPdfView wrapper that forwards to TPdf.CharacterIsHyphen |
property CharacterMapError[Index: Integer]: Boolean | TPdfView wrapper that forwards to TPdf.CharacterMapError |
property CharacterOrigin[Index: Integer]: TPoint | TPdfView wrapper that forwards to TPdf.CharacterOrigin |
property CharacterRectangle[Index: Integer]: TRect | TPdfView wrapper that forwards to TPdf.CharacterRectangle |
property Charcode[Index: Integer]: WideChar | TPdfView wrapper that forwards to TPdf.Charcode |
procedure ClearFormFieldFocus | Works with the current-page AcroForm logical focus cursor for keyboard, speech, and accessibility workflows |
procedure ClearHighlight | Clears all active search highlights in the viewer |
procedure ClearReadingHighlight | Controls the TPdfView reading-highlight overlay used by synchronised text-to-speech playback |
procedure ClearReadingWord | Clears the current word-level reading cursor overlay on TPdfView |
procedure ClearSelection | Clears the current text selection and invalidates the view |
Color | Sets the background colour drawn between the page rectangles and around the document edges |
Constraints | Defines the minimum and maximum width and height the PDF viewer is allowed to reach when its parent is resized |
function CopySelectionToClipboard: Boolean | Copies selected Unicode text using the Windows or native LCL system clipboard |
constructor Create(AOwner: TComponent); override | Creates the TPdfView control and initialises rendering, scrolling, selection, and form interaction state |
procedure CreateAnnotation(const Annotation: TPdfAnnotation) | TPdfView wrapper that forwards to TPdf.CreateAnnotation |
property CurrentCharIndex: Integer | Application-selected character index retained for compatibility (default 0) |
procedure DeleteAnnotation(Index: Integer) | TPdfView wrapper that forwards to TPdf.DeleteAnnotation |
destructor Destroy; override | Releases viewer resources, rendering buffers, and document subscriptions before TPdfView is destroyed |
function DeviceToPage(X, Y: Integer; out PageX, PageY: Double): Boolean; overload | Converts a screen pixel (X, Y) inside the view to a PDF user-space point on the current page |
property DisplayMode: TPdfDisplayMode | Layout mode: single page, continuous, two-page, two-page continuous, with or without cover |
property DragCursor | Documents the DragCursor member published by TPdfView |
property DragKind | Documents the DragKind member published by TPdfView |
property DragMode | Documents the DragMode member published by TPdfView |
Enabled | Controls whether the PDF viewer accepts user input from the mouse and keyboard |
property Find: FPDF_SCHHANDLE | TPdfView wrapper that forwards to TPdf.Find |
function FindFirst(const Text: WString; Options: TSearchOptions= []; StartIndex: Integer= 0; DirectionUp: Boolean= True): Integer | Start a search of the specified text. StartIndex is 0-based, -1 is for end of the page. DirectionUp parameter determines the direction of this search operation |
function FindNext: Integer | TPdfView wrapper that forwards to TPdf.FindNext |
function FindPrevious: Integer | TPdfView wrapper that forwards to TPdf.FindPrevious |
property FitMode: TPdfFitMode | Controls how the current page sits inside the viewer's client area; re-applied automatically on Resize and when PageNumber changes so long documents with mixed page sizes stay framed |
function FlattenPage(nFlag: Integer = FLAT_NORMALDISPLAY): Integer | TPdfView wrapper that forwards to TPdf.FlattenPage |
function FocusFormField(Index: Integer): Boolean | Works with the current-page AcroForm logical focus cursor for keyboard, speech, and accessibility workflows |
function FocusNextFormField: Integer; overload | Cycles within the current page by default, with an explicit AcrossPages overload for bounded forward/backward AcroForm navigation, optional document wrapping and empty-page skipping |
function FocusPreviousFormField: Integer; overload | Cycles within the current page by default, with an explicit AcrossPages overload for bounded forward/backward AcroForm navigation, optional document wrapping and empty-page skipping |
function FocusedFormFieldDetails: TPdfFormFieldInfo | Returns TPdfFormFieldInfo for the current logical form field |
function FocusedFormFieldIndex: Integer | Works with the current-page AcroForm logical focus cursor for keyboard, speech, and accessibility workflows |
function FocusedFormFieldName: WString | Returns the current logical form field display name, preferring AlternateName and falling back to Name |
function FocusedFormFieldText: WString | Works with the current-page AcroForm logical focus cursor for keyboard, speech, and accessibility workflows |
function FocusedFormFieldTextDirection: TPdfFormTextDirection | Reads the in-memory text direction of the widget focused in the viewer |
function FocusedFormFieldValue: WString | Returns the current logical form field value by FocusedFormFieldIndex without depending on the interactive caret |
property FontAscent[Index: Integer; FontSize: Single]: Single | TPdfView wrapper that forwards to TPdf.FontAscent |
property FontBaseName[Index: Integer]: WString | TPdfView wrapper that forwards to TPdf.FontBaseName |
property FontData[Index: Integer]: TBytes | TPdfView wrapper that forwards to TPdf.FontData |
property FontDescent[Index: Integer; FontSize: Single]: Single | TPdfView wrapper that forwards to TPdf.FontDescent |
property FontFamilyName[Index: Integer]: WString | TPdfView wrapper that forwards to TPdf.FontFamilyName |
property FontFlags[Index: Integer]: Integer | TPdfView wrapper that forwards to TPdf.FontFlags |
property FontHandle[Index: Integer]: FPDF_FONT | TPdfView wrapper that forwards to TPdf.FontHandle |
property FontIsEmbedded[Index: Integer]: Boolean | TPdfView wrapper that forwards to TPdf.FontIsEmbedded |
property FontItalicAngle[Index: Integer]: Integer | TPdfView wrapper that forwards to TPdf.FontItalicAngle |
property FontSize[Index: Integer]: Double | TPdfView wrapper that forwards to TPdf.FontSize |
property FontWeight[Index: Integer]: Integer | TPdfView wrapper that forwards to TPdf.FontWeight |
function FormCanRedo: Boolean | Reports whether the focused AcroForm widget has at least one undone edit to redo |
function FormCanUndo: Boolean | Reports whether the focused AcroForm widget has at least one edit to undo |
property FormField[Index: Integer]: WString | TPdfView wrapper that forwards to TPdf.FormField |
property FormFieldAt[X, Y: Integer]: WString | TPdfView wrapper that forwards to TPdf.FormFieldAt |
property FormFieldCount: Integer | TPdfView wrapper that forwards to TPdf.FormFieldCount |
property FormFieldInfo[Index: Integer]: TPdfFormFieldInfo | TPdfView wrapper that forwards to TPdf.FormFieldInfo |
property FormFieldInfoAt[X, Y: Integer]: TPdfFormFieldInfo | TPdfView wrapper that forwards to TPdf.FormFieldInfoAt |
function FormFieldTypeAt(X, Y: Integer; out FieldType: TPdfFormFieldType): Boolean | Converts view pixels to page coordinates and performs native field-type hit testing |
FormFieldTabOrder: TPdfIntegerArray; overloadFormFieldTabOrder(out Status: TPdfFormTabOrderStatus): TPdfIntegerArray; overload | Current-page widget ordinals in declared R/C/S/A/W order, with rotated geometry, reading direction, structure references and explicit fallback diagnostics |
function FormRedo: Boolean | Redoes the most recently undone edit on the focused AcroForm widget, driving PDFium's per-widget redo history |
function FormUndo: Boolean | Undoes the most recent edit on the focused AcroForm widget, driving PDFium's per-widget undo history |
procedure GenerateFormAppearances | TPdfView wrapper that forwards to TPdf.GenerateFormAppearances |
function GetSelectedFormText: WString | Returns the text currently selected inside the focused AcroForm widget on the view's active page |
property HasFormFieldAt[X, Y: Integer]: Boolean | TPdfView wrapper that forwards to TPdf.HasFormFieldAt |
function HasSelection: Boolean | Returns whether any text is currently selected in the viewer |
property HighlightColor: TColor | Colour of the rectangle painted over each match returned by HighlightSearchText. Defaults to clYellow; published so applications can theme the highlight |
function HighlightSearchText(const Text: WString; MatchCase: Boolean= False; MatchWholeWord: Boolean= False): Integer | Highlights all occurrences of the search text on the current page and returns the match count |
property Image[Index: Integer]: TPdfImage | TPdfView wrapper that forwards to TPdf.Image |
property ImageCount: Integer | TPdfView wrapper that forwards to TPdf.ImageCount |
property LinkAnnotation[PageNumber, Index: Integer]: TLinkAnnotation | TPdfView wrapper that forwards to TPdf.LinkAnnotation |
function LinkAnnotationAtPos(X, Y: Integer; out PageNumber: Integer): Integer; overload | Returns the link-annotation index at the screen pixel (X, Y), or -1 |
property LinkAnnotationCount[PageNumber: Integer]: Integer | TPdfView wrapper that forwards to TPdf.LinkAnnotationCount |
property LinkOptions: TPdfViewLinkOptions | Published set that controls which of PDFium's four link action types the view follows automatically when the user clicks the link |
LoadingColor | Fill colour of the “loading” placeholder drawn whilst a page is still being rendered |
LoadingText | Text shown in the centre of the page whilst asynchronous rendering is still in progress |
property NightDuotoneInk: TColor | Controls the ink colour used by the reNightDuotone low-vision render option |
property NightDuotonePaper: TColor | Controls the paper colour used by the reNightDuotone low-vision render option |
property ObjectBitmap[Index: Integer]: TBitmap | TPdfView wrapper that forwards to TPdf.ObjectBitmap |
property ObjectBounds[Index: Integer]: TPdfRectangle | TPdfView wrapper that forwards to TPdf.ObjectBounds |
property ObjectCount: Integer | TPdfView wrapper that forwards to TPdf.ObjectCount |
property ObjectHandle[Index: Integer]: Pointer | TPdfView wrapper that forwards to TPdf.ObjectHandle |
property ObjectTransparent[Index: Integer]: Boolean | TPdfView wrapper that forwards to TPdf.ObjectTransparent |
property ObjectType[Index: Integer]: TObjectType | TPdfView wrapper that forwards to TPdf.ObjectType |
property Options: TRenderOptions | Set of rendering hints and TPdfView post-render low-vision options |
property Page: FPDF_PAGE | TPdfView wrapper that forwards to TPdf.Page |
property PageBorderColor: TColor | Colour of the 1-pixel border drawn around each page rectangle |
property PageBounds: TPdfRectangle | TPdfView wrapper that forwards to TPdf.PageBounds |
property PageColor: TColor | Background colour painted under the rendered PDF page, decoupled from the surrounding control's Color. Default is clWhite so PDF pages stay paper-white even when the host control's Color is themed dark |
property PageCount: Integer | TPdfView wrapper that forwards to TPdf.PageCount |
property PageHeight: Double | TPdfView wrapper that forwards to TPdf.PageHeight |
property PageHeightZoom[PageNumber: Integer]: Double | Read-only zoom factor that fits the page height into the view |
property PageLabel: WString | TPdfView wrapper that forwards to TPdf.PageLabel |
property PageNumber: Integer | TPdfView wrapper that forwards to TPdf.PageNumber |
property PageRotation: TRotation | TPdfView wrapper that forwards to TPdf.PageRotation |
PageShadowColor | Fill colour of the drop shadow painted beneath each page rectangle |
property PageShadowSize: Integer | Width (in pixels) of the soft shadow drawn around each page in continuous modes |
function PageToDevice(PageX, PageY: Double; out X, Y: Integer): Boolean; overload | Inverse of DeviceToPage: converts a PDF user-space point to a screen pixel inside the view |
property PageWidth: Double | TPdfView wrapper that forwards to TPdf.PageWidth |
property PageWidthZoom[PageNumber: Integer]: Double | Read-only zoom factor that fits the page width into the view |
function PageWordBoxes: TPdfWordBoxes | Returns TPdfWordBox records for words on the current TPdfView page with character ranges and page-space rectangles |
property PageZoom[PageNumber: Integer]: Double | Read-only zoom required to fit the current page into the view at the current DisplayMode |
procedure PaintSelection(SelectionStart, SelectionEnd: Integer; Mask: TColor) | Paints the current text selection overlay onto the viewer canvas |
property ParentShowHint | Documents the ParentShowHint member published by TPdfView |
property Pdf: TPdf | References the TPdf component whose document is rendered by the viewer |
PopupMenu | Associates a TPopupMenu with the PDF viewer so that right-clicking on a page presents a context menu |
ReadableContent | Returns semantic readable content fragments for screen-reader, text-to-speech, and accessibility workflows |
property ReadingHighlightColor: TColor | Controls the TPdfView reading-highlight overlay used by synchronised text-to-speech playback |
function ReadingUnits: TPdfReadingUnits | Builds sentence-level TPdfReadingUnit records from the current TPdfView page |
property ReadingWordColor: TColor | Controls the overlay colour used for the current word-level reading cursor |
property ReadingWordFollow: Boolean | Follows the current page's off-screen spoken word on both axes in dmSingleContinuous, including rotated pages and smooth scrolling, whilst preserving visible axes and page bounds |
property ReadingWordPrefetch: Boolean | Optional synchronous next/previous page geometry warming with preserved viewer/form state, default False |
property ReadingWordCacheCapacity: Integer | Configured 1..16-page LRU pool with aggregate word/text budgets, default three pages when prefetch is enabled |
property ReadingWordCacheStatistics: TPdfReadingWordCacheStatistics | Effective pool sizes and cumulative demand, prefetch, skip, eviction and invalidation counters |
procedure ClearReadingWordCache | Clears retained geometry and the active word working set without resetting lifetime counters |
property Rectangle[Index: Integer]: TRect | TPdfView wrapper that forwards to TPdf.Rectangle |
function RectangleCount(StartIndex: Integer = 0; Count: Integer = MaxInt): Integer | TPdfView wrapper that forwards to TPdf.RectangleCount |
procedure ReloadPage | TPdfView wrapper that forwards to TPdf.ReloadPage |
procedure RemoveObject(Index: Integer; DestroyObject: Boolean = True) | TPdfView wrapper that forwards to TPdf.RemoveObject |
procedure RenderPage(DeviceContext: HDC; Left, Top, Width, Height: Integer; Rotation: TRotation = ro0; Options: TRenderOptions = []) | Render contents of a page to a device (screen, bitmap, or printer) |
function RenderTile(Left, Top, Width, Height, PageWidth, PageHeight: Integer; Rotation: TRotation = ro0; Options: TRenderOptions = []): TBitmap | Render a rectangular area of a page to a new bitmap. The returned bitmap has to be released manually |
property Rotation: TRotation | Visual rotation applied to the rendered page (ro0 / ro90 / ro180 / ro270) |
procedure SelectAll | Selects every character on the page(s) currently displayed by the viewer |
function SelectAllFormText: Boolean | Selects every character inside the focused AcroForm widget on the view's active page (the equivalent of Ctrl+A inside the widget) |
function SelectTextRange(Page, StartIndex, Count: Integer): Boolean | Reads or writes the TPdfView programmatic text-selection model without requiring user mouse input |
function SelectWordBox(const Word: TPdfWordBox): Boolean | Selects the text range represented by one TPdfWordBox on the current TPdfView page |
function SelectFragment(const Fragment: TPdfContentFragment): Boolean | Validates a readable fragment and selects its exact native character ranges while excluding unrelated content |
function SelectReadingUnit(const ReadingUnit: TPdfReadingUnit): Boolean | Maps a canonical sentence snapshot and UTF-16 source offset to validated native text selection |
function SelectWordSpan(const Words: TPdfWordBoxes; StartIndex, EndIndex: Integer): Boolean | Selects a same-page span of TPdfWordBox records as one TPdfView text selection |
function SelectedText: WString | Returns selected text as a wide string, the text of intervening pages in a continuous spread selection included |
function SelectionCharCount: Integer | Returns the total number of characters currently selected |
property SelectionColor: TColor | Fill colour for the user-drag text selection overlay |
function SelectionRanges: TPdfUserSelectionRanges | Reads or writes the TPdfView programmatic text-selection model without requiring user mouse input |
function SelectionRectangles: TPdfRectangles | Reads or writes the TPdfView programmatic text-selection model without requiring user mouse input |
procedure SetFormFieldFlags(Index: Integer; const Flags: TPdfFormFieldFlags) | TPdfView wrapper that forwards to TPdf.SetFormFieldFlags |
procedure SetFormFieldFlagsAt(X, Y: Integer; const Flags: TPdfFormFieldFlags) | TPdfView wrapper that forwards to TPdf.SetFormFieldFlagsAt |
function SetFocusedFormFieldTextDirection(Direction: TPdfFormTextDirection): Boolean | Changes the focused widget's in-memory text direction and repaints the page scene |
procedure SetReadingHighlight(const Rects: TPdfRectangles; PageNumber: Integer) | Controls the TPdfView reading-highlight overlay used by synchronised text-to-speech playback |
procedure SetReadingWord(const Word: TPdfWordBox) | Highlights one TPdfWordBox as the current spoken word on TPdfView |
function SetSelection(const Ranges: TPdfUserSelectionRanges): Boolean | Reads or writes the TPdfView programmatic text-selection model without requiring user mouse input |
ShowHint | Enables or disables the hint balloon shown when the mouse hovers over the PDF viewer |
property SmoothScroll: Boolean | Enables timer-driven segmented animation for line/page scrollbar commands. Thumb tracking remains immediate |
property StructureElements: TPdfStructureElements | TPdfView wrapper that forwards to TPdf.StructureElements |
TabOrder | Defines the position of the PDF viewer in the parent's tab cycle |
TabStop | Indicates whether the user can give focus to the PDF viewer by pressing the Tab key |
function Text(StartIndex: Integer = 0; Count: Integer = MaxInt): WString | TPdfView wrapper that forwards to TPdf.Text |
function TextInRectangle(Left, Top, Right, Bottom: Integer): WString; overload | TPdfView wrapper that forwards to TPdf.TextInRectangle |
property TextPage: FPDF_TEXTPAGE | TPdfView wrapper that forwards to TPdf.TextPage |
property Thumbnail: TBitmap | TPdfView wrapper that forwards to TPdf.Thumbnail |
property Touch | Documents the Touch member published by TPdfView |
function TrackReadingWordAt(PageNumber, CharIndex: Integer): Integer | Maps a page character offset to the containing TPdfWordBox, highlights it, and returns the word index |
property Transparent: Boolean | TPdfView wrapper that forwards to TPdf.Transparent |
procedure UpdatePage | TPdfView wrapper that forwards to TPdf.UpdatePage |
Visible | Shows or hides the PDF viewer |
property WebLink[PageNumber, Index: Integer]: TWebLink | TPdfView wrapper that forwards to TPdf.WebLink |
function WebLinkAtPos(X, Y: Integer; out PageNumber: Integer): Integer; overload | Returns the web-link index at the screen pixel (X, Y) |
property WebLinkCount[PageNumber: Integer]: Integer | TPdfView wrapper that forwards to TPdf.WebLinkCount |
property WindowHandle: HWND | The control's native window or widget handle, interpreted for the chosen platform and widget set |
property Zoom: Double | Zoom factor where 1.0 = 100% (one PDF point = 1 screen pixel at 72 DPI) |
| Event | Description |
|---|---|
property OnAnnotationLinkClick: TPdfViewAnnotationLinkClickEvent | Fired when the user clicks a /Annot Subtype Link before LinkOptions auto-handling runs (set Handled := True to suppress default handling) |
property OnCanResize | Documents the OnCanResize event published by TPdfView |
OnClick | Occurs when the user clicks (left mouse button) inside the viewer |
property OnConstrainedResize | Documents the OnConstrainedResize event published by TPdfView |
property OnContextPopup | Documents the OnContextPopup event published by TPdfView |
OnDblClick | Occurs when the user double-clicks (left mouse button) inside the viewer |
property OnDragDrop | Documents the OnDragDrop event published by TPdfView |
property OnDragOver | Documents the OnDragOver event published by TPdfView |
property OnEndDock | Documents the OnEndDock event published by TPdfView |
property OnEndDrag | Documents the OnEndDrag event published by TPdfView |
property OnEnter | Documents the OnEnter event published by TPdfView |
property OnExit | Documents the OnExit event published by TPdfView |
property OnFormFieldFocusChange: TPdfFormFieldFocusEvent | Fires when TPdfView moves or clears the logical AcroForm field focus cursor |
property OnGesture | Documents the OnGesture event published by TPdfView |
property OnKeyDown: TKeyEvent | Fired when a key is pressed whilst the control has focus |
property OnKeyPress: TKeyPressEvent | Fired for each character generated by the keyboard |
property OnKeyUp: TKeyEvent | Occurs when a key is released whilst the viewer control has focus |
property OnMouseActivate | Documents the OnMouseActivate event published by TPdfView |
property OnMouseDown: TMouseEvent | Fired when the user presses a mouse button over the view |
property OnMouseEnter | Documents the OnMouseEnter event published by TPdfView |
property OnMouseLeave | Documents the OnMouseLeave event published by TPdfView |
property OnMouseMove: TMouseMoveEvent | Fired whenever the mouse moves over the view |
property OnMouseUp: TMouseEvent | Fired when the user releases a mouse button |
property OnMouseWheel: TMouseWheelEvent | Fired when the wheel is rotated over the view |
property OnMouseWheelDown | Documents the OnMouseWheelDown event published by TPdfView |
property OnMouseWheelUp | Documents the OnMouseWheelUp event published by TPdfView |
property OnPageChange: TNotifyEvent | Fired when the current page changes for any reason |
property OnPageNumberChanged: TNotifyEvent | Fired when the visible page number changes due to scrolling |
property OnPaint: TNotifyEvent | Fired after the view has finished painting the current page |
property OnResize: TNotifyEvent | Fired whenever the control's client area changes size |
property OnSelectionChange: TNotifyEvent | Fires when the materialised text selection ranges actually change |
property OnStartDock | Documents the OnStartDock event published by TPdfView |
property OnStartDrag | Documents the OnStartDrag event published by TPdfView |
property OnWebLinkClick: TPdfViewWebLinkClickEvent | Fired when the user clicks a text-detected web URL before LinkOptions auto-handling runs (set Handled := True to suppress default handling) |
Lazy forward or backward document-wide text search that retains native PDFium handles for its current page only
| Method | Description |
|---|---|
Next | Returns one TPdfDocumentSearchResult with page, character range, text, and page-space rectangles |
| Member | Type | Description |
|---|---|---|
CurrentPage | Integer | One-based page currently being searched |
Direction | TPdfDocumentSearchDirection | Forward or backward traversal |
Finished | Boolean | Whether no further result can be returned |
Cancelled | Boolean | Whether a cancellation token ended the search |
MatchCount | UInt64 | Number of results already returned |
TPdfProgressiveDocument derives from TPdf and keeps PDFium's native availability session alive whilst a remote or growing random-access stream receives requested byte ranges
| Method | Description |
|---|---|
BeginProgressiveLoad | Start a logical-size random-access session with an optional initial contiguous prefix |
CheckDocumentAvailability | Ask PDFium whether document metadata is ready and return merged download hints |
OpenProgressiveDocument | Open the native linearised document or the completed non-linearised custom stream |
CheckFormAvailability | Gate form-fill initialisation and return any additional byte ranges |
LoadAvailablePage | Gate and activate one one-based page once the required bytes have arrived |
CancelProgressiveLoad | Release all progressive state in dependency order |
| Member | Type | Description |
|---|---|---|
ProgressiveLoading | Boolean | Whether the native availability session is alive |
LogicalFileSize | UInt64 | Final PDF content length |
AvailableByteCount | UInt64 | Monotonic readable prefix length |
Linearization | TPdfLinearization | Native linearisation verdict |
FirstAvailablePageNumber | Integer | One-based first available page |
OnDataAvailable | TPdfDataAvailableEvent | Sparse range-cache availability callback |
RangeRequests | TPdfRangeRequestScheduler | Owned prioritised scheduler populated from native availability hints |
Thread-safe transport-neutral scheduler for coalescing, prioritising, splitting, retrying, cancelling, and accounting for sparse PDF byte-range requests
| Method | Description |
|---|---|
EnqueueHints | Add missing native byte ranges and pre-empt overlapping lower-priority transfers |
TryDequeue | Move the highest-priority request into the in-flight set |
CompleteRequest | Commit a full or partial transport response once its bytes are stored |
FailRequest | Retry or abandon a failed transport attempt under MaxRetryCount |
MarkAvailable | Record external bytes and cancel duplicate pending or active work |
Cancel | Invalidate the generation and notify the host about active transport requests |
Read-only bounded inventory and extraction of arbitrary physical PDF stream objects from the FPdfStreamInspect unit
| Member | Description |
|---|---|
Create | Inspect a byte array or seekable stream whilst preserving the caller's stream position |
CopyRawData | Copy a complete encoded payload or a validated raw byte window to a destination stream |
DecodeData | Apply leading Identity Crypt and supported general filters in declaration order with finite expansion budgets and bounded general-decoder output buffers, reject Crypt in cross-reference streams, and report any remaining native-codec boundary |
Infos | Return object offsets, lengths, filter metadata, DecodeParms, and native access classification |
ParsePdfStreamFilterChain, DecodePdfStreamFilter | Parse direct filter metadata and decode one bounded general-filter stage with marker-based consumed-byte reporting and optional strict EOD validation |
TPdfReadingSession is a TTS-neutral read-aloud state machine that coordinates TPdfSpokenText chunks, host speech-engine callbacks, and TPdfView word-cursor highlighting
| Method | Description |
|---|---|
Create(AOwner: TComponent) | Initialise an idle session with default estimated speech pacing |
Destroy | Release the cached spoken chunks, reading-selection state and event subscriptions before the session is destroyed |
LoadSpoken(const Chunks: TPdfSpokenTexts) | Stop current playback and copy the chunks to speak in order |
Play | Start playback from the first loaded chunk |
PlayFrom(ChunkIndex: Integer) | Start playback from a zero-based chunk index |
Pause | Move from pssSpeaking to pssPaused and raise OnPauseRequest |
Resume | Resume paused playback or re-speak the current chunk when ResumeRestartsChunk is enabled |
Stop | Cancel playback, reset chunk and word cursors, and clear attached TPdfView word highlighting |
FeedSpokenPosition(SpokenOffset: Integer) | Map a speech-engine offset back to a PDF page character and move the TPdfView word cursor |
Tick(SpeechStillBusy: Boolean; ElapsedMs: Cardinal = 0) | Advance to the next chunk, finish playback, or estimate the current word whilst speech is still busy |
| Property | Type | Description |
|---|---|---|
State | TPdfReadingSessionState | Current state: pssIdle, pssSpeaking, or pssPaused |
ChunkCount | Integer | Number of loaded spoken chunks |
CurrentChunk | Integer | Zero-based active chunk index, or -1 when no chunk is active |
CurrentWord | Integer | Zero-based active word index inside the current chunk, or -1 when unknown |
View | TPdfView | Viewer that receives word cursor updates |
SelectionMode | TPdfReadingSelectionMode | Optional native word or chunk selection with ownership-aware restoration, default rsmNone |
EstimatePacing | Boolean | Use elapsed time to estimate word position for speech engines with no word-position signal |
EstimatedWordsPerMinute | Integer | Speech rate used by estimated pacing, default 175 |
ResumeRestartsChunk | Boolean | Make Resume re-speak the current chunk for engines where pause cancels queued speech |
| Event | Type | Description |
|---|---|---|
OnSpeak | TPdfReadingSpeakEvent | Raised when the host should speak a chunk |
OnCancelRequest | TNotifyEvent | Raised when the host should cancel speech |
OnPauseRequest | TNotifyEvent | Raised when the host should pause speech |
OnResumeRequest | TNotifyEvent | Raised when the host should resume speech without restarting the chunk |
OnChunkChange | TPdfReadingChunkEvent | Raised when the active chunk changes |
OnWordChange | TPdfReadingWordEvent | Raised when the active word changes |
OnFinished | TNotifyEvent | Raised after the last chunk finishes |
TPdfThumbnailView is a scrollable side-panel control from the FPdfThumbnail unit. It links to a TPdf component and renders one page thumbnail per row for page navigation
| Property | Type | Default | Description |
|---|---|---|---|
Pdf | TPdf | nil | Document component used for thumbnail rendering |
CurrentPageIndex | Integer | 0 | One-based selected page index; 0 means no page is selected |
ThumbnailWidth | Integer | 120 | Target thumbnail width, clamped to 48..800 |
ThumbnailHeight | Integer | 160 | Target thumbnail height, clamped to 48..800 |
TextColor | TColor | clBlack | Page-number caption colour |
HoverColor | TColor | clMoneyGreen | Row highlight colour under the hovered thumbnail |
SelectionColor | TColor | clHighlight | Row highlight colour for CurrentPageIndex |
BorderColor | TColor | clGray | Thumbnail border colour |
| Event | Type | Description |
|---|---|---|
OnPageClick | TPdfThumbnailClickEvent | Fired when the user left-clicks a thumbnail row; APageIndex is one-based |
| Type | Definition |
|---|---|
WString | Wide string type for Unicode text |
TPdfIntegerArray | Dynamic array of Integer values |
TPdfSingleArray | Dynamic array of Single values used for text object character positions |
TPdfPrintPageRange | Record: StartPage, EndPage: Integer |
TPdfPrintPageRanges | Dynamic array of one-based print page ranges |
TPdfPoint | Record: X, Y: Double |
TPdfRectangle | Record: Left, Top, Right, Bottom: Double |
TPdfDocumentSearchDirection | dsdForward, dsdBackward |
TPdfDocumentSearchResult | Stores a one-based page, native character range, matched text, and page-space rectangles |
TPdfReadingUnit | Stores one spoken reading unit with text, semantic kind, page, highlight rectangles, source indexes, alternate-text state, and language |
TPdfReadingUnits | Dynamic array of TPdfReadingUnit records |
TPdfWordBox | Stores one word, its FTextPage character range, its page-space rectangle, and its one-based page number |
TPdfWordBoxes | Dynamic array of TPdfWordBox records |
TPdfSpokenSpan | Maps one run of speech-engine text back to a source page character range |
TPdfSpokenSpans | Dynamic array of TPdfSpokenSpan records |
TPdfSpokenText | Speech text plus span mappings back to PDF page text |
TPdfSpokenTexts | Dynamic array of TPdfSpokenText chunks |
TPdfReadingSessionState | pssIdle, pssSpeaking, pssPaused |
TPdfReadingSelectionMode | rsmNone, rsmWord, rsmChunk |
TPdfReadingWordCacheStatistics | Reading-word pool sizes and lifetime demand/prefetch counters |
TPdfReadingSpeakEvent | Callback signature for TPdfReadingSession.OnSpeak |
TPdfReadingChunkEvent | Callback signature for TPdfReadingSession.OnChunkChange |
TPdfReadingWordEvent | Callback signature for TPdfReadingSession.OnWordChange |
TPdfStreamAdapter | Class that exposes a seekable TStream as PDFium FPDF_FILEACCESS callbacks |
TPdfRandomAccessStore | Thread-safe seekable stream with bounded memory, secure temporary-file spill, positioned I/O, transfer, flush, and storage diagnostics |
TPdfStorageBackend | psbMemory, psbTemporaryFile |
TPdfXObject | Lifetime wrapper for reusable Form XObject handles created by CreateXObjectFromPage |
TPdfFileIdentifierType | fidPermanent, fidChanging |
TPdfPageBox | pbMedia, pbCrop, pbBleed, pbTrim, pbArt |
TPdfJavaScriptAction | Record: Name, Script: WString |
TPdfJavaScriptActions | Dynamic array of TPdfJavaScriptAction records |
TPdfVersion | pvUnknown, pv10, pv11, pv12, pv13, pv14, pv15, pv16, pv17; explicit SaveAs targets from pv13 through pv17 are normalised and validated against the selected PDF version |
TPdfVersionInfo | Record containing separate header, catalogue, effective core and Adobe developer-extension version facts from unit FPdfCompress |
TRotation | ro0, ro90, ro180, ro270 |
TSaveOption | saNone, saIncremental, saNoIncremental, saRemoveSecurity |
TObjectType | otUnknown, otText, otPath, otImage, otShading, otForm |
TPageMode | pmNone, pmOutline, pmThumbs, pmFullScreen, pmOptionalContentGroup, pmAttachments, pmUnknown |
TPdfAction | acUnsupported, acGoto, acGotoRemote, acUri, acLaunch |
TPdfPrintMode | prEmf, prTextOnly, prPostScript2, prPostScript3, prPostScript2PassThrough, prPostScript3PassThrough, prEmfImageMasks, prPostScript3Type42, prPostScript3Type42PassThrough |
TPdfDisplayMode | dmSingleContinuous, dmTwoPageContinuous, dmTwoPageContinuousWithCover |
TPdfViewLinkOption | loAutoGoto, loAutoOpenURI, loAutoLaunch, loAutoEmbeddedGoto |
TPdfViewLinkOptions | Set of TPdfViewLinkOption values |
TPdfLibraryFeature | Per-feature identifiers from pffDocumentRead through pffDocumentRepairProviders, queried through TPdf.QueryFeatureStatus |
TPdfProductEdition | ppeSingle, ppeSmallBusiness, ppeEnterprise; the minimum edition each feature requires is reported by TPdfFeatureStatus.MinimumEdition |
TPdfFeatureCheckState | pfcsNotChecked, pfcsNotRequired, pfcsReady, pfcsUnavailable |
TPdfFeatureState | pfsImplementationMissing, pfsDependencyMissing, pfsDocumentRejected, pfsNeedsChecks, pfsReady, pfsUnsupportedProfile |
TPdfNativeWorkerIsolation | nwiNone, nwiWindowsLpac, nwiLinuxNamespaces |
TPdfNativeWorkerStatus | nwsSuccess, nwsInvalidOptions, nwsUnavailable, nwsLaunchFailed, nwsDeadline, nwsCancelled, nwsResourceLimit, nwsWorkerFailed, nwsProtocolError, nwsCleanupFailed, nwsPublishFailed |
TPdfParagraphNativeCharacterKind | pnckGlyph, pnckActualText |
| Type | Values |
|---|---|
TSearchOption | seCaseSensitive, seWholeWord, seConsecutive |
TSearchOptions | Set of TSearchOption |
TRenderOption | reAnnotations, reLcd, reNoNativeText, reGrayscale, reDebugInfo, reNoCatchException, reLimitCache, reHalftone, rePrinting, reReverseByteOrder, reNoSmoothText, reNoSmoothImage, reNoSmoothPath, reInvert, reNightDuotone |
TRenderOptions | Set of TRenderOption |
| Type | Values |
|---|---|
TPdfFillMode | fmNone, fmAlternate, fmWinding |
TPdfLineCap | lcDefault, lcButt, lcRound, lcProjectingSquare |
TPdfLineJoin | ljDefault, ljMiter, ljRound, ljBevel |
TPdfPathSegmentType | pstUnknown, pstLineTo, pstBezierTo, pstMoveTo |
TPdfOverlayPlacement | opTopLeft, opTopCenter, opTopRight, opMiddleLeft, opCenter, opMiddleRight, opBottomLeft, opBottomCenter, opBottomRight, opStretch, opCustom |
TPdfBlendMode | bmDefault, bmMultiply, bmScreen, bmOverlay, bmDarken, bmLighten, bmColorDodge, bmColorBurn, bmHardLight, bmSoftLight, bmDifference, bmExclusion, bmHue, bmSaturation, bmColor, bmLuminosity |
| Type | Description |
|---|---|
TPdfAnnotationSubtype | Annotation subtypes: Text, Link, FreeText, Line, Square, Circle, Polygon, PolyLine, Highlight, Underline, Squiggly, StrikeOut, Stamp, Caret, Ink, Popup, FileAttachment, Sound, Movie, Widget, Screen, PrinterMark, TrapNet, Watermark, 3D, RichMedia, XFAWidget, Redact |
TPdfAnnotationFlag | Flags: afInvisible, afHidden, afPrint, afNoZoom, afNoRotate, afNoView, afReadOnly, afLocked, afToggleNoView |
TPdfAnnotation | Record containing subtype, flags, colours, text, rectangle, and all markup quadrilateral sets through AttachmentPointSets |
| Type | Description |
|---|---|
TPdfFormTabOrderMode | Declared R/C/S/A/W, unspecified and unsupported modes |
TPdfFormTabOrderStatus | Requested/effective policy, snapshot availability, fallback reason and unstructured widget count |
TPdfFormType | ftUnknown, ftNone, ftAcroForm, ftXfaFull, ftXfaForeground |
TPdfFormFieldType | fiUnknown, fiPushButton, fiCheckBox, fiRadioButton, fiComboBox, fiListBox, fiTextField, fiSignature |
TPdfFormFieldFlag | ffReadOnly, ffRequired, ffNoExport, ffMultiline, ffChoiceCombo, ffChoiceEdit, ffPassword, ffChoiceMultiSelect |
TPdfFormFieldInfo | Record containing FieldType, Flags, Name, Value, AlternateName, and other properties |
| Type | Description |
|---|---|
TPadesArchiveTimestampOptions | TSA URL, nonce, token capacity, optional DSS refresh flag, complete replacement DSS material, and Default |
TPadesArchiveTimestampReport | Source and result PAdES levels, prior and result Document Time-stamp counts, source and result byte lengths, DSS update state, generation time, policy OID, and returned nonce |
| Type | Description |
|---|---|
TPadesSignatureAlgorithmFamily | psafUnknown, psafRsa, psafEcdsa, psafEd25519, or psafEd448 |
TPadesSignatureAlgorithmInfo | CMS digest and signature OIDs, X.509 public-key and named-curve OIDs, parameter presence and SHAKE output length, family, and independent policy status |
| Type | Description |
|---|---|
TPadesRevisionAnalysisStatus | prasNotChecked, prasNoLaterChanges, prasAllowed, prasDisallowed, prasSuspicious, or prasIndeterminate |
TPadesRevisionChangeKind | Classifies xref, signature, validation material, form field, annotation, page content, document structure, metadata, active content, deleted, compressed, or unknown changes |
TPadesRevisionObjectChange | Reports the revision, object and generation numbers, source offset or object-stream number and index, classification, decision, authority, and redefinition state |
TPadesSignatureRevisionAnalysis | Reports one signature's covered revision, DocMDP and FieldMDP policy, later revisions, risks, status, and object changes |
TPadesRevisionAnalysisReport | Aggregates source status, revision and signature counts, risks, status, per-signature analyses, and parser errors |
| Type | Description |
|---|---|
TPadesEvidenceReportOptions | Trust settings plus source-byte, signature, revision-change, validation-material, stored-byte, and VRI budgets |
TPadesValidationMaterialEvidence | Identifies one stored DSS certificate, OCSP response, or CRL by object number, stored length, kind, and SHA-256 |
TPadesVriEvidence | Maps one VRI key and dictionary object to its certificate, OCSP, and CRL object references |
TPadesSignatureEvidence | Correlates PDFium facts, ByteRange, content and VRI hashes, CMS policy, validation status, trust-path hashes, DSS/VRI coverage, and revision decisions for one signature |
TPadesEvidenceReport | Aggregates validation, revision, DSS, PDFium, truncation, and per-signature evidence with ToJson and ToCsv exports |
| Type or function | Description |
|---|---|
TPdfImageCodec | picKeepOriginal, picJpeg, picJpx, picCcittGroup4, or picFlate |
TPdfImageCodecs | Set of permitted TPdfImageCodec values |
TPdfImageCodecCandidate | Image facts and measured encoded byte lengths used for codec selection |
TPdfImageCodecDecision | Selected codec, original and selected byte counts, saving, and replacement decision |
SelectPdfImageCodec | Selects the smallest eligible measured encoding without replacing the original below the requested saving |
TPdfDocumentDiffOptions | Rendered dimensions, colour tolerance, text and geometry gates, page budget, and Default |
TPdfPageDifference | One page's text, geometry, rotation, pixel-count, and changed-bounds evidence |
TPdfPageDifferences | Dynamic array of TPdfPageDifference records |
TPdfDocumentDiffReport | Aggregate equivalence result, page counts, changed pages, pixels, truncation, and detailed differences |
TPdfImpositionMode | pimNUp or pimBooklet |
TPdfImpositionOptions | Output size, grid, binding, gutter, bleed, creep, reverse-sheet option, and Default |
TPdfImpositionSlot | Sheet, side, slot, source page, creep, and usable bounds for one imposed placement |
TPdfImpositionSlots | Dynamic array of TPdfImpositionSlot records |
TPdfImpositionPlan | Source and padded counts, sheet and side counts, output grid and geometry, and ordered slots |
TPdfImpositionExecutionReport | Native import, imported page, unique source, blank slot, XObject template, form object, content generation, output page, and native N-up execution facts |
TPdfContentMarkSnapshots | Dynamic array of caller-owned immutable content-mark snapshots |
TPdfPageObjectSnapshots | Dynamic array of caller-owned immutable page-object snapshots |
BuildPdfImpositionPlan | Builds and validates an N-up or booklet slot plan without opening or changing a document |
| Type | Fields |
|---|---|
TBookmark | Handle, Title, PageNumber, Destination, DescendantCount, IsOpen, Action, ActionPageNumber, ActionDestination, ActionPath, HasColor, Color, Style |
TDestination | Handle, Name, PageNumber, ViewMode, ViewParameterCount, ViewParameters, HasX, X, HasY, Y, HasZoom, Zoom |
TPdfDocumentMetadata | Title, Author, Subject, Keywords, Creator, Producer, CreationDate, ModifiedDate |
TPdfBatchMergeSource | FileName, PageRange, Password, and the FromFile constructor |
TPdfBatchMergeOptions | ErrorPolicy, FormPolicy, OutlinePolicy, ResourcePolicy, PageChunkSize, InsertAt, CreateDestination, CopyViewerPreferences, RollbackOnCancelOrFailure, CancellationToken, OnProgress, and Default |
TPdfBatchMergeReport | Terminal status, source and page counters, native import metrics, peak open sources, policy detections, destination and viewer-preference state, error text, and issues |
TLinkAnnotation | Handle, Rectangle, PageNumber, Action, ActionPageNumber, ActionPath, Points |
TWebLink | Url: WString, Rectangles: TPdfRectangles, StartCharIndex: Integer, CharCount: Integer |
TPdfImage | Width: Integer, Height: Integer, Data: TBytes, RawData: TBytes, Filters: TPdfStringArray, HorizontalDpi: Single, VerticalDpi: Single, BitsPerPixel: LongWord, ColorSpace: Integer, MarkedContentId: Integer, IccProfile: TBytes |
TPdfSignature | Content: TBytes, ByteRange: TPdfIntegerArray, Encoding: WString, Reason: WString, Time: WString, Permission: Integer |
TPdfFormSelectionRect | PageNumber: Integer, Bounds: TPdfRectangle |
TPdfStructureElement | Hierarchy, RoleMap-resolved and raw structure type names (TypeName, RawTypeName), text alternatives, MCIDs, table/list attributes, namespace and namespace role mapping, references, associated files, annotation descriptions, widget ownership, labels, and appearance facts |
TPdfStructureReadOptions | Maximum depth, elements, attribute values, deadline, and attribute inclusion controls for iterative structure traversal |
TPdfStructureReadStatus | Visited counters plus completed, depth, element, attribute, deadline, and visitor-stop outcomes |
TPdfUaNamespaceKind | punkMissing, punkPdf17, punkPdf20, punkMathMl, punkAria, punkDpub, punkCustom |
| Type | Values |
|---|---|
TPdfDestinationViewMode | dvmUnknown, dvmXYZ, dvmFit, dvmFitHorizontal, dvmFitVertical, dvmFitRectangle, dvmFitBoundingBox, dvmFitBoundingBoxHorizontal, dvmFitBoundingBoxVertical |
TPdfPermission | permPrint, permModify, permCopy, permAnnotate, permFillForms, permAccessibility, permAssemble, permPrintHighQuality |
TPdfPermissions | Set of TPdfPermission values |
| Type | Values |
|---|---|
TPdfLoadMode | plmCompatible, plmStrict, plmRecovery — selects how much repair a load may perform |
TPdfLoadStatus | plsNotAttempted, plsLoaded, plsLoadedWithRecovery, plsRejected, plsFailed |
TPdfLoadRecoveryRoute | plrrNone, plrrNativeCrossReference, plrrNativeCrossReferenceRebuild |
TPdfContentNormalizeStatus | pcnsNotStarted, pcnsCompleted, and the bounded-failure reasons pcnsInputLimitExceeded, pcnsOutputLimitExceeded, pcnsTokenLimitExceeded, pcnsMalformedToken, pcnsUnresolvedInlineImage, pcnsUnbalancedState, pcnsUnsupportedFilter, pcnsEncryptedDocument, pcnsSignedDocument, pcnsDocumentRewriteFailed |
TPdfObjectPatchOperationKind | popSet, popRemove — operation kind used by SaveAsObjectGraphPatched |
TPdfObjectPatchValue | Record: Kind, BooleanValue, IntegerValue, RealValue, TextValue, ReferenceObjectNumber, ReferenceGeneration |
TPdfOptionalContentState | ocsUnspecified, ocsOn, ocsOff |
TPdfStreamDecodeLevel | psdlRaw, psdlGeneral, psdlFull |
TPdfStreamNativeAccess | psnaNone, psnaImageObject, psnaEmbeddedFile |
TPdfStreamReadStatus | psrsCompleted, psrsPartiallyDecoded, plus bounded-read refusals such as psrsInvalidIndex, psrsSourceLimitExceeded, psrsExpansionRatioExceeded, psrsUnsupportedFilter, psrsEncrypted, psrsMalformed |
TPdfAFRelationship | afSource, afData, afAlternative, afSupplement, afUnspecified, afEncryptedPayload, afFormData, afTemplate — associated-file relationship of ISO 32000-2 7.11.4 |
TDpmTarget | dptRoot, dptLeaf — where PDF/VT document part metadata is attached |
TPdfXmpNamespace | Record: Prefix, Uri — one namespace of a TPdfXmpPacket |
TPdfAMetadataValues | Record containing PDFium-decoded mapped Info values and an explicit key-presence set |
TPdfAMetadataComparison | Record containing one mapped field, its equivalence state, and both compared values |
TPdfAMetadataReport | Record containing XMP availability, parse status, per-field comparisons, mismatch fields, and IsEquivalent |
TPdfLoadIssue | Record: Code, Severity, Offset, ObjectNumber, RevisionIndex, MessageText — one finding of the bounded cross-reference audit |
TPdfLoadIssueCode | Audit finding codes, from plicHeaderMissing and plicStartXrefInvalid through plicXrefEntryConflict, plicNativeCrossReferenceRebuild, plicStrictModeRejected, and plicRepairVerificationFailure |
TPdfLoadIssueSeverity | plisInformation, plisWarning, plisError |
TPdfObjectPatchValueKind | povNull, povBoolean, povInteger, povReal, povName, povTextString, povReference |
TPdfStreamFilterInfo | Record: filter Name and Kind plus the decode parameters Predictor, Colors, BitsPerComponent, Columns, EarlyChange |
TPdfOptionalContentGroup | Record describing one OCG: object number and generation, Name, Intents, view / print / export states, page-element subtype, language, user type and names, optional zoom range, EffectiveVisible, Locked, and radio-group index |
TPdfOptionalContentConfiguration | Record describing one OCG configuration: name, creator, BaseState, intents, on / off / locked / order group lists, radio groups, and whether automatic state is present |
TPdfOptionalContentMembership | Record describing one OCMD: referenced groups, Policy, visibility expression, and EffectiveVisible |
TPdfOptionalContentMembershipPolicy | ocmpAnyOn, ocmpAllOn, ocmpAnyOff, ocmpAllOff, ocmpUnknown |
TPdfOptionalContentBaseState | ocbsOn, ocbsOff, ocbsUnchanged |
TPdfOptionalContentRadioGroup | Record: the group object numbers that behave as one radio button set |
TPdfOptionalContentStateChange | Record: GroupObjectNumber and the Visible state to write |
TPdfXmpValue | Record: Kind (pxvkText, pxvkUri, pxvkResource), Text, Language, Qualifiers, RawXml, ParseType (the preserved source rdf:parseType) |
EPdfXmpError | Exception raised for malformed XMP input |
TXfdfNameValuePair | Record: Name, Value — one generic entry of an XFDF document |
TPdfDpmEntry | Record: Name, Value, IsNestedDict — one PDF/VT document part metadata entry |
TPdfVT2sValidationIssue | Findings of PDF/VT-2s MIME stream validation, such as vtmviNotMultipart, vtmviMissingStreamVersion, vtmviMissingBoundary, vtmviNoInlinePdf, and vtmviInlinePdfNotPdfVT |
| Type | Values |
|---|---|
TPdfCidFontEmbeddingMode | pcfemFull, pcfemSubsetPreferred, pcfemSubsetRequired |
TPdfSystemFontRequest | Record: FaceName, Weight, Italic, Charset, PitchFamily — font request handed to a system font provider |
TPdfSystemFontData | Record: FaceName, FontData, Charset, TTCIndex — font bytes returned by a system font provider |
TPdfShapedGlyph | Record: GlyphID, Advance, OffsetX, OffsetY, ClusterStart, ClusterLength |
TPdfTextShaper | Abstract class whose Shape method plugs an external shaping engine into AddShapedText; ShapeSpan keeps the context of a span inside a longer string and SupportsSpanShaping reports whether the backend provides it |
TPdfTableDetectionMode | ptdmRuled, ptdmWhitespace |
TPdfTableContinuation | ptcNone, ptcStart, ptcMiddle, ptcEnd — position of a page grid within a table continuation chain |
TPdfOcrImage | Record: PageNumber, Width, Height, Stride, Dpi, PixelFormat, Pixels — page raster handed to an OCR provider |
TPdfOcrQuad | Record: TopLeft, TopRight, BottomRight, BottomLeft, with FromRectangle |
TPdfOcrPoint | Record: X, Y in page units |
TPdfOcrPixelFormat | popfBgra32 — pixel layout handed to an OCR provider |
TPdfOcrPageStatus | popsPending, popsCompleted, popsSkippedExistingText, popsCancelled, popsFailed |
TPdfOcrPageReport | Record: page number, Status, image size, and detected / inserted / rejected word counts with an error message |
TPdfShapedRun | Record: source text range, visual position and width, BidiLevel, IsRightToLeft, and the shaped Glyphs |
TPdfReflowNode | Record: node Kind, parent index, depth, page, text, bounds, language, reading-order source, heading level, table row / column geometry, header flag, and confidence |
TPdfReflowNodeKind | prnkPage, prnkParagraph, prnkHeading, prnkList, prnkListItem, prnkFigure, prnkCaption, prnkTable, prnkTableRow, prnkTableCell, prnkOther |
TPdfSearchHighlightRange | Record: StartIndex, Count — one highlighted character range |
TPdfUserSelectionRange | Record: one-based Page, StartIndex into that page text, and Count |
TPdfSelectionPoint | Record: one-based Page and CharIndex; a non-positive page or -1 index means no selection |
EPdfTextShapingError | Exception raised when text shaping fails |
| Type | Values |
|---|---|
TPdfLayoutItem | One item of a layout flow; Kind selects text, spacer, rule, image, page XObject, page break, cached node, link, or semantic node |
TPdfLayoutItemKind | pliText, pliSpacer, pliRule, pliImage, pliPageXObject, pliPageBreak, pliCachedNode, pliLink, pliSemanticNode |
TPdfLayoutTextStyle | Record: font name and size, colour and alpha, line height, alignment, legacy keep-together, long-word breaking, and space before / after, with a Default constructor |
TPdfLayoutConstraints | Record: keep-together, keep-with-next, page-break-before / after, widow and orphan line limits, with a preserving Default constructor |
TPdfLayoutPageSettings | Record: page size and four margins plus header and footer heights, with A4 and Letter constructors |
TPdfLayoutSemanticRole | plsrArtifact, plsrParagraph, plsrHeading1 through plsrHeading6, plsrList, plsrListItem, plsrListLabel, plsrListBody, plsrTable, plsrTableRow, plsrTableHeader, plsrTableData, plsrFigure, plsrCaption, plsrLink, plsrSection, plsrDivision |
TPdfLayoutTableScope | pltsNone, pltsRow, pltsColumn, pltsBoth |
TPdfLayoutListNumbering | plnNone, plnDisc, plnCircle, plnSquare, plnDecimal, plnUpperRoman, plnLowerRoman, plnUpperAlpha, plnLowerAlpha |
TPdfLayoutAlignment | plaLeft, plaCenter, plaRight |
TPdfLayoutCommandKind | plcText, plcRule, plcImage, plcPageXObject, plcCachedNode, plcLink |
TPdfLayoutCommand | Record: one resolved drawing command with kind, page number, bounds, text and font, colour and alpha, alignment, thickness, file name or URI, source, semantic element index, marked-content id, and annotation index |
TPdfLayoutRect | Record: Left, Top, Width, Height in layout units |
TPdfLayoutSemanticElement | Record: the Semantics of one structure element and its ParentElementIndex |
EPdfLayoutError | Exception raised for invalid layout input |
| Type | Values |
|---|---|
TPadesSeedValueConstraint | psvcFilter, psvcSubFilter, psvcVersion, psvcReasons, psvcLegalAttestation, psvcAddRevocationInfo, psvcDigestMethod |
TPadesSeedValueConstraints | Set of required signature seed-value entries represented by TPadesSeedValueConstraint |
TPadesSignatureFieldOptions | Record: field name, required seed values, allowed reasons and legal attestations, acceptable certificates, certificate requirement, FieldMDP lock action and field names, and DocMDP certification permission |
TPadesLevel | plUnknown, plNone, plB_B, plB_T, plB_LT, plB_LTA — EN 319 142-1 conformance levels |
TPadesCryptoStatus | pcsNotChecked, pcsValid, pcsInvalid, pcsUnsupported, pcsIndeterminate |
TPadesValidationSourceStatus | pvssUnavailable, pvssOriginalBytes, pvssIncomplete |
TPadesTrustNetworkPolicy | ptnpOffline, ptnpOnline |
TPadesTrustValidationAsyncStatus | ptvasSuccess, ptvasCancelled, ptvasFailure — outcome reported by ValidatePadesTrustAsync (Enterprise edition) |
TPadesRevisionDecision | prdAllowed, prdDisallowed, prdSuspicious, prdIndeterminate |
TPadesFieldMdpAction | pfmaNone, pfmaAll, pfmaInclude, pfmaExclude, pfmaUnknown |
TWinCmsVerifyStatus | wcvsUnavailable, wcvsValid, wcvsInvalid, wcvsUnsupported, wcvsIndeterminate — result of Windows CMS verification |
TPdfMacValidationStatus | pmvsValid, pmvsNotPresent, pmvsInvalid, pmvsUnsupported |
TPadesSignatureValidation | Record: per-signature status for byte range, CMS signature, algorithm policy, signing certificate, chain trust, revocation, and the timestamp equivalents, plus native error codes and algorithm information |
TPadesValidationIssue | Findings raised against EN 319 142-1 and ISO 32000-1 12.8, including duplicate required keys, invalid Filter or Type values, exact Contents exclusion, certificate, revocation, and timestamp requirements |
TPadesTrustValidationStage | ptvsStarting, ptvsReadingSource, ptvsParsingSignatures, ptvsCryptographicIntegrity, ptvsCertificateChain, ptvsAiaRetrieval, ptvsOcspRetrieval, ptvsCrlRetrieval, ptvsTimestampToken, ptvsCompleted |
TPadesTrustValidationProgress | Record: current Stage, signature index and count, and completion percentage |
TPadesRevisionRisk | Risks reported per revision, such as prrMalformedRevisionChain, prrSignatureObjectRedefined, prrPageContentChanged, prrActiveContentAdded, and prrResourceLimitExceeded |
TPadesDssMaterial | Record: DerBytes of one certificate, CRL, or OCSP response added to the document security store |
TWinCmsVerifyOptions | Record: OnlineRetrieval, CheckRevocation, UrlRetrievalTimeoutMs, and an OnCheckpoint callback, with a Default constructor |
TWinCmsVerifyStage | wcvstCryptographicSignature, wcvstChainBuild, wcvstOnlineRetrieval, wcvstRevocationCheck |
| Type | Values |
|---|---|
TPdfBatchMergeErrorPolicy | bmepStop, bmepSkip |
TPdfBatchMergeFormPolicy | bmfpPreserveNative, bmfpFlatten, bmfpReject |
TPdfBatchMergeOutlinePolicy | bmopDiscard, bmopReject |
TPdfBatchMergeResourcePolicy | bmrpSourceScoped, bmrpChunked |
TPdfBatchMergeStatus | bmrsCompleted, bmrsCompletedWithErrors, bmrsCancelled, bmrsFailed |
TPdfPagePlanOperation | ppoDelete, ppoMove, ppoInsert |
TPdfPagePlanDecision | ppdAllow, ppdReview, ppdReject |
TPdfValidationPredicateKind | pvpkIssueAbsent, pvpkStandardPass, pvpkCustom |
TPdfValidationRun | Record: rule results with passed / failed / skipped / error counts, objects visited, evidence bytes, peak reserved memory, elapsed milliseconds, and IsComplete / IsCompliant |
TPdfBatchValidationStatus | pbvsComplete, pbvsPartial, pbvsCancelled, pbvsFailed |
TPdfInkGesture | Record: Points array describing one ink stroke |
TPdfFormFillInfo | Packed record pairing the PDFium FPDF_FORMFILLINFO callback block with its owning TPdf; used internally by the form-fill bridge |
TPdfBatchMergeIssue | Record: SourceIndex, FileName, MessageText for one source that failed or was skipped |
TPdfBatchMergeProgress | Record: Stage, source index and count, file name, and imported source / page / native call counts |
TPdfBatchMergeProgressStage | bmpsStarted, bmpsOpeningSource, bmpsImportingPages, bmpsSourceCompleted, bmpsSourceFailed, bmpsRollingBack, bmpsCompleted, bmpsCancelled, bmpsFailed |
TPdfBatchValidationItem | Record: file name, Status, preflight report, validation run, error message, and elapsed milliseconds |
TPdfBatchValidationItemStatus | pbvisPending, pbvisPass, pbvisFail, pbvisCancelled, pbvisError |
TPdfValidationRuleResult | Record: rule id, profile, clause, category, severity, Status, evidence, fix hint, and elapsed milliseconds |
TPdfValidationRuleStatus | pvrrsPass, pvrrsFail, pvrrsSkipped, pvrrsError |
TPdfValidationRunStatus | pvrsComplete, pvrsFastFailed, pvrsBudgetExceeded, pvrsCancelled, pvrsError |
TPdfARepairStep | Record: ordered repair action with category, issue code, evidence, dependency, Safety, and flags for full rewrite, signature invalidation, and blocked state |
TPdfARepairCategory | parcSecurity, parcFonts, parcColour, parcAttachments, parcStructure, parcMetadata, parcOther |
TPdfARepairSafety | parsAutomatic, parsReviewRequired, parsManual |
TPdfXProductionIssue | Record: issue Kind, severity, page number, object index, and evidence from PDF/X production checks |
TPdfXProductionIssueKind | pxpikOutputIntent, pxpikPageBox, pxpikFont, pxpikColourant, pxpikTransparency, pxpikOverprint, pxpikSeparation, pxpikImageResolution |
TPdfXProductionPage | Record: per-page box presence, object counts, transparency flag, and minimum effective DPI |
TPdfRPageFacts | Record: PDF/R page facts — media and image geometry, object counts, pixel size, resolution, bit depth, colour space, and filters |
TPdfPagePlanImpact | ppiBookmarks, ppiNamedDestinations, ppiPageLabels, ppiFormFields, ppiStructureTree, ppiSignatures, ppiImportedFeaturesUnknown |
| Type | Values |
|---|---|
TPdfParallelRenderOptions | Record: DPI, worker, per-page pixel and total output budgets, rotation, native render options, and background colour |
TPdfBandedImageFormat | pbifCustom, pbifPng, pbifTiff |
TPdfBandedImageStreamOptions | Record: format, band height, PNG compression level, and maximum encoded output bytes; initialise with Default |
TPdfBandedImageReport | Record: format, dimensions, rendered and encoded band counts, encoded rows, peak band bytes, output bytes, and completion state |
TPdfBandedImageEncoder | Abstract caller codec contract with BeginImage, sequential WriteBand, EndImage, and optional byte telemetry |
TPdfParallelModuleIdentity | Record containing the private module FileName, native InitializationAddress and Unloaded handle-release result; the platform may retain the image mapping |
TPdfParallelModuleIdentities | Array of TPdfParallelModuleIdentity records kept for the render operation's isolated workers |
TPdfParallelRenderReport | Record containing ordered results, worker and status counts, retained output bytes, elapsed time, source size, peak source memory, storage backend, shared backing kind and Modules identity diagnostics |
TPdfParallelPageResult | Record: page number, pixel size and Stride, PixelFormat, top-down Pixels, Status, error message, and elapsed milliseconds |
TPdfParallelPixelFormat | pppfBgra, pppfRgba |
TPdfParallelRenderStatus | pprsPending, pprsSucceeded, pprsCancelled, pprsFailed |
TPdfParallelSourceBackingKind | ppsbNone, ppsbSharedMemory, ppsbMemoryMappedFile, ppsbRandomAccessStore |
TPdfSpotPlateInfo | Record: zero-based Index and separation Name reported by SpotPlates |
| Type | Description |
|---|---|
IPdfCancellationToken | Read-only cancellation token with IsCancelled, ThrowIfCancelled, and RegisterCallback |
IPdfCancellationTokenSource | Owner-side cancellation source exposing Token and Cancel |
TPdfCancellationTokenSource | Default implementation; use TPdfCancellationTokenSource.New |
EPdfOperationCancelled | Exception raised by ThrowIfCancelled after cancellation |
TPdfFutureStatus | pfsSuccess, pfsCancelled, pfsFailure |
TPdfFutureResult<T> | Result envelope with Value, Status, ErrorMessage, and IsSuccess / IsCancelled / IsFailure helpers |
TPdfFuture<T>.Run | Fire-and-forget background worker helper that queues a reply back to the main thread |
PdfNoCancellationToken | Shared token that never cancels |
| Member | Description |
|---|---|
TPdf.MeasureText | Returns text width and height in PDF user units for the selected font and size |
TPdf.MeasureTextWidth | Returns only the text width in PDF user units |
TPdf.WrapText | Preserves explicit line breaks and optionally splits oversized tokens at Unicode scalar boundaries |
| Member | Description |
|---|---|
TPdfMatrix.Create | Creates an identity matrix, an explicit six-value matrix, or a copy from FS_MATRIX |
NewTranslation / NewScale / NewRotation / NewSkew | Create common transforms without a separate mutation step |
NewRectMapping / TryCreateRectMapping | Create stretch, contain, or cover mappings between normalised rectangles |
Reset | Reset to the identity |
SetElements / Assign / Clone | Replace, copy, or independently duplicate matrix state |
Determinant / IsFinite / IsIdentity / IsInvertible | Inspect numerical validity and invertibility without changing the matrix |
IsTranslationOnly / IsAxisAligned / NearlyEquals | Classify transform shape and compare values using a tolerance |
GetTranslation / SetTranslation / ClearTranslation | Read or update translation independently of the linear component |
TryDecompose | Extract translation, signed scale, clockwise rotation, shear, determinant, and reflection state |
Multiply | Post-multiply by another TPdfMatrix or six FS_MATRIX values |
PreMultiply / PreTranslate / PreScale / PreRotate / PreSkew | Prepend local-input-space operations before the current transform |
Translate / Scale / Rotate / Skew | Compose common PDF-space transforms |
HorizontalFlip / VerticalFlip / CentralFlip | Compose axis flips |
RotateAt / ScaleAt / SkewAt / *FlipAt | Append operations around a pivot that remains fixed |
MapRectToRect | Append a stretch, contain, or cover rectangle mapping |
Invert / TryInvert / TryGetInverse / InverseCopy | Invert in place or take an independent inverse, with explicit singular-matrix and finite Single representability checks; failed Try calls leave both the input and output matrix untouched |
TransformPoint / TransformVector / InverseTransformPoint | Map positions, direction vectors, or inverse positions without temporary matrix objects |
TransformQuad / TransformRect | Map PDF quadrilaterals or normalised rectangle bounds through the transform |
TransformPoints / TransformRects | Map dynamic arrays with one result allocation or use in-place variants without an output allocation |
TryTransformBounds / TransformBounds | Accumulate transformed point bounds in one pass without an intermediate array |
a, b, c, d, e, f | Read-only matrix element properties |
Handle | Raw FS_MATRIX value for PDFium APIs |
| Class | Description |
|---|---|
TPdfCacheGovernor / TPdfCacheParticipant | Coordinates retained memory through one thread-safe global LRU byte budget |
TPdfStreamAdapter | Wraps a seekable Pascal TStream as FPDF_FILEACCESS for custom document loading |
TPdfXObject | Owns a reusable FPDF_XOBJECT created from another PDF page |
TTileKey / TPdfTileCache | Keys rendered tiles by revision and keeps a bounded LRU bitmap cache |
Supporting declarations | Public aliases, callback records, safety limits, highlight constants, and optional print-output ABI declarations |
| Function | Description |
|---|---|
BuildToUnicodeCMap(const Glyphs: array of Word; const Text: WString): AnsiString | Builds a reusable ToUnicode CMap for CID Type 2 text |
NormalizePageViewRect(...): Boolean | Orders and clips two page-space corners to visible page bounds |
AttachmentDescriptionFeaturesAvailable: Boolean | Reports whether attachment description exports are available |
AttachmentRelationshipFeaturesAvailable: Boolean | Reports whether the loaded DLL provides the /AFRelationship reader |
BezierControlPointFeaturesAvailable: Boolean | Reports whether the loaded DLL exposes exact native cubic Bézier control-point readback |
BookmarkStyleFeaturesAvailable: Boolean | Reports whether the loaded DLL provides the bookmark text-style reader |
FillPatternRenderingFeaturesAvailable: Boolean | Reports whether the loaded DLL can rasterise a path object's fill tiling pattern |
StrokePatternRenderingFeaturesAvailable: Boolean | Reports whether the loaded DLL can rasterise a path object's stroke tiling pattern |
StructureElementRawTypeFeaturesAvailable: Boolean | Reports whether the loaded DLL exports the raw structure-element type reader |
ReadPdfVersionInfo(Source: TStream; out Info: TPdfVersionInfo; out ErrorText: string): Boolean | Reads header, catalogue override, effective core version and Adobe developer-extension level without collapsing them into one value |
AppendPdfSparseUpdate(Source, Dest: TStream; const Revision: TPdfSparseRevisionInfo; const Objects: TPdfSparseUpdateObjects; const TrailerExtra: AnsiString; const BeforeStartXref: AnsiString = ''; OmitPrev: Boolean = False): Boolean | Streams one sparse revision onto a saved PDF: source bytes verbatim, caller-supplied object bodies, and a single incremental xref/trailer block chained through /Prev |
BindPdfDocumentCoreRuntime(Resolver: TPdfCoreSymbolResolver; const Lifetime: IInterface): IPdfDocumentCoreRuntime | Binds a caller-resolved native export table into a runtime that holds its lifetime owner until every core document has closed |
Loaded: Boolean | Returns True if the selected PDFium library is loaded |
LoadLibrary | Manually loads the PDFium library |
UnloadLibrary | Unloads the PDFium library |
ConfigureSystemFontCacheGovernor(Governor: TPdfCacheGovernor) | Places process-wide retained system-font results under a caller-owned shared byte budget |
ConfigureSystemFontProvider(const Provider: IPdfSystemFontProvider; const Policy: TPdfSystemFontPolicy) | Installs an application-controlled native system-font mapper before PDFium loads |
ClearSystemFontProvider | Removes the configured mapper after PDFium unloads |
GetSystemFontProviderStatistics: TPdfSystemFontStatistics | Returns mapping, cache, fallback, callback, and live-handle counters |
DecodeDate(const Value: string; out DateTime: TDateTime; out DateTimeOffset: Integer): Boolean | Parses a PDF date string to TDateTime and UTC offset |
SetPdfPrintMode(PrintMode: TPdfPrintMode): Boolean | Selects the PDFium Windows printing output mode for subsequent print rendering |
SetPdfPrintPaperHandlingDevMode(var DevMode: TDeviceMode; PrintPaperHandling: TPrintPaperHandling): Boolean | Maps a PDF viewer-preference duplex hint into Windows DEVMODE.dmDuplex |
V8FeaturesAvailable: Boolean | Returns True when the loaded DLL exposes the PDFium V8 helper exports |
XfaBStrHelpersAvailable: Boolean | Returns True when the loaded DLL exposes the XFA FPDF_BSTR helper exports |
XfaFeaturesAvailable: Boolean | Returns True when the loaded PDFium build exposes the XFA feature exports |
GetRecommendedV8Flags: string | Returns PDFium recommended V8 command-line flags, or an empty string when the loaded DLL does not expose them |
PdfBufferLooksXfa(Data: PByte; Size: Integer): Boolean | Scans a raw PDF byte buffer for XFA markers without loading pdfium.dll |
PdfFileLooksXfa(const FileName: string): Boolean | Scans a PDF file on disk for XFA markers without loading pdfium.dll |
ValidatePdfUaStructureElements(const Elements: TPdfStructureElements; Conformance: TPdfUaConformance = puc1): TPdfUaValidationIssues | Validates flattened structure data with PDF/UA-1 or PDF/UA-2 heading semantics without loading pdfium.dll |
IsPdfUaLanguageTagValid, ResolvePdfUaEffectiveLanguage | Validate a language tag and resolve marked-content, nearest structure-ancestor, then catalogue language precedence |
ClassifyPdfUaNamespace(const NamespaceUri: WString): TPdfUaNamespaceKind | Classifies missing, PDF 1.7, PDF 2.0, MathML, and custom structure namespaces |
ValidatePdfUa2StructureElements(const Elements: TPdfStructureElements): TPdfUaValidationIssues | Runs every namespace-aware PDF/UA-2 semantic structure rule |
PdfUa2StructureHasIssue(const Elements: TPdfStructureElements; Issue: TPdfUaValidationIssue): Boolean | C++Builder-safe single-issue query that avoids returning a Pascal set by value |
ValidatePdfUa2NamespaceSemantics, ValidatePdfUa2Containment, ValidatePdfUa2TableGrid | Run focused namespace, parent-child, and bounded table-grid validation |
ValidatePdfUa2AnnotationSemantics, ValidatePdfUa2FormulaSemantics, ValidatePdfUa2AssociatedFileSemantics, ValidatePdfUa2DocumentSemantics | Run focused annotation/form, Formula/MathML, associated-file ownership and reading order, and document/list/TOC/caption validation |
ValidatePdfUaPageContentTagging(const Objects: TPdfPageContentMarkInfos; const Elements: TPdfStructureElements): TPdfUaValidationIssues | Validates real-content tagging and prevents Artifact objects from being claimed by the structure tree |
ValidatePdfUaRoleMapUsage(const Elements: TPdfStructureElements; const RoleMapKeys, RoleMapVals: TPdfUaNameArray): TPdfUaValidationIssues | Validates RoleMap key/value pairs resolution to standard ISO 32000-1 types |
ClassifyStructType(const TypeName: WString; out HeadingLevel: Integer): TPdfContentFragmentKind | Classifies a structure element type name into a TPdfContentFragmentKind and optional heading level |
FormFieldTabOrderForPage(FormHandle: FPDF_FORMHANDLE; Page: FPDF_PAGE): TPdfIntegerArray | Returns page widget-field ordinals in declared PDF tab order; an overload also returns TPdfFormTabOrderStatus and unregistered native pages use array fallback |
FocusedFormFieldTextForPage(FormHandle: FPDF_FORMHANDLE; Page: FPDF_PAGE): WString | Returns focused widget text for one form handle and page |
NextFormFieldIndexForPage(FormHandle: FPDF_FORMHANDLE; Page: FPDF_PAGE; CurrentIndex: Integer; GoForward: Boolean): Integer | Finds the next or previous widget annotation index in page tab order |
ClearFocusedFormField(FormHandle: FPDF_FORMHANDLE): Boolean | Clears the current focused form widget for a PDFium form handle |
ComputeSpreadPages(DisplayMode: TPdfDisplayMode; PageNumber, PageCount: Integer; out LeftPageNo, RightPageNo: Integer) | Computes left and right page numbers for two-page display modes |
BuildReadingUnits(const Fragments: TPdfContentFragments): TPdfReadingUnits | Converts readable content fragments into sentence-level reading units |
NextReadingUnitOfKind(const Units: TPdfReadingUnits; CurrentIndex: Integer; Kind: TPdfContentFragmentKind; GoForward: Boolean): Integer | Finds the next or previous reading unit of the requested semantic kind |
BuildWordBoxes(const PageText: WString): TPdfWordBoxes | Splits page text into TPdfWordBox records |
WordBoxIndexAtCharIndex(const Words: TPdfWordBoxes; CharIndex: Integer): Integer | Maps a page character index to a word-box index |
SpokenTextAppend(var Spoken: TPdfSpokenText; const SpokenPart: WString; Page, StartIndex: Integer; SourceCount: Integer = -1) | Appends one mapped spoken-text run to a speech chunk |
BuildSpokenTextFromWords(const Words: TPdfWordBoxes; FirstWord, LastWord: Integer): TPdfSpokenText | Builds a spoken-text chunk from a word-box range |
SpokenToPageChar(const Spoken: TPdfSpokenText; SpokenOffset: Integer; out Page, CharIndex: Integer): Boolean | Translates a spoken-text offset back to a page character index |
EstimateSpokenWordIndex(const Words: TPdfWordBoxes; ElapsedMs: Cardinal; WordsPerMinute: Integer): Integer | Estimates current word index for engines that report no word-position signal |
FPDF_RenderPageSkia | Low-level PDFium binding for rendering page content to an external SkCanvas |
FPDF_FFLDrawSkia | Low-level PDFium binding for drawing form fields and popup annotations to an external SkCanvas |
PointsToInches(Points: Double): Double | Converts PDF points to inches |
PointsToPixels(Points, PixelsPerInch: Double): Double | Converts PDF points to pixels |
PixelsToInches(Pixels, PixelsPerInch: Double): Double | Converts pixels to inches |
PixelsToPoints(Pixels, PixelsPerInch: Double): Double | Converts pixels to PDF points |
GetApplicationPath: string | Returns the executable directory used as the first PDFium DLL search root |
IsWin64: Boolean | Returns True when the current process targets Win64 |
BuildDllName(UseV8: Boolean): string | Returns pdfium.dll or pdfium.v8.dll for the requested V8 mode |
FindDllInPath(const DllName, SearchPath: string): string | Finds a named PDFium DLL in one directory |
FindDllInDllsTree(const DllName, StartPath, SubDir: string): string | Searches DLLs\Win32 or DLLs\Win64 folders below a start path |
LoadPDFiumDll: string | Honours an explicit LibraryName path in either engine mode, otherwise resolves the runtime using the component search policy |
ConfigurePdfLibrary(const Configuration: TPdfLibraryConfiguration) | Applies DLL selection, V8, and sandbox configuration before the first library load |
GetPdfLibraryConfiguration: TPdfLibraryConfiguration | Returns a copy of the current effective library configuration |
PdfLibraryConfigurationSealed: Boolean | Returns True once the library has loaded and the configuration can no longer change |
PdfNativeRendererType(Preference: TPdfRendererPreference; SkiaBuild: Boolean): FPDF_RENDERER_TYPE | Returns the native renderer a preference selects for an AGG-only or Skia-enabled PDFium build, keeping the build default for prpDefault |
PdfLibraryConfigurationSupportError(const Configuration: TPdfLibraryConfiguration; SkiaBuild, FontationsBuild: Boolean): string | Returns why a renderer or font backend cannot be used with a PDFium build; LoadLibrary applies the same check and raises EPdfError rather than letting native initialisation stop the process |
PdfDefaultTtfMapCount: NativeUInt | Returns the number of entries in the native default TrueType font substitution map |
TryGetPdfDefaultTtfMapEntry(Index: NativeUInt; out Entry: TPdfDefaultTtfMapEntry): Boolean | Copies one default font substitution map entry by index |
IsXfaFormField(FieldType: Integer): Boolean (FPdfXfa) | Tests whether a form field type code belongs to the XFA field range |
| Variable | Type | Default | Description |
|---|---|---|---|
LibraryName | string | 'pdfium.dll' | An explicit path selects the runtime in either engine mode; a bare name selects the standard runtime when EnableV8Engine is False |
EnableV8Engine | Boolean | False | Set to True before loading to select pdfium.v8.dll from the matching Win32 or Win64 DLLs folder |
| Constant | Type | Value | Description |
|---|---|---|---|
PointsPerInch | Integer | 72 | PDF points per inch; the point and pixel conversion helpers assume this density |
procedure TMainForm.OpenPDF(const FileName: string);
begin
Pdf.FileName := FileName;
Pdf.Active := True;
PdfView.Pdf := Pdf;
PdfView.Active := True;
StatusBar1.SimpleText := Format('Loaded: %s (%d pages)',
[ExtractFileName(FileName), Pdf.PageCount]);
end;
Pdf.CreateDocument;
Pdf.Compressed := True;
Pdf.Active := True;
Pdf.AddPage(0, 595, 842);
Pdf.AddText('Hello World!', 'Arial', 24, 100, 700, clBlack, $FF, 0.0);
Pdf.SaveAs('output.pdf');
Pdf.Active := False;
Pdf.FileName := 'document.pdf';
Pdf.Active := True;
for I := 1 to Pdf.PageCount do
begin
Pdf.PageNumber := I;
Memo1.Lines.Add(Format('--- Page %d ---', [I]));
Memo1.Lines.Add(Pdf.Text);
end;
Pdf.Active := False;
Pdf.FileName := 'form.pdf';
Pdf.Active := True;
Pdf.PageNumber := 1;
for I := 0 to Pdf.FormFieldCount - 1 do
begin
FieldInfo := Pdf.FormFieldInfo[I];
case FieldInfo.FieldType of
fiTextField:
Pdf.FormField[I] := 'New Value';
fiCheckBox:
Pdf.FormField[I] := 'Yes';
end;
end;
Pdf.SaveAs('filled_form.pdf');
Pdf.Active := False;
// Bake form values into permanent (non-editable) page content
Pdf.FileName := 'form.pdf';
Pdf.Active := True;
Pdf.FormField[0] := 'John Smith';
Pdf.FormField[1] := 'Yes';
Pdf.GenerateFormAppearances; // step 1: refresh /AP from /V
Pdf.FlattenAllPages(FLAT_NORMALDISPLAY); // step 2: flatten all pages
Pdf.SaveAs('flattened.pdf'); // step 3: save
Pdf.Active := False;
The RTL-only document core supplies owned native snapshots, Unicode text, raw BGRA pixels and staged page operations with no VCL/LCL or Graphics involvement; TPdf.CreateCoreSnapshot bridges in the classic component and keeps its native module pinned
Original image component decoding takes DCT/JPX source channels through ICC profiles without a rendered RGB round trip, covering normalised signed or unsigned 1-24-bit JPX, optional source precision metadata, independent component-grid sampling, mixed channel precision/signedness, explicit PDF colour-space interpretation, ignored ordinary JPX Decode entries and four-component CMYK
Styled paragraph reflow measures mixed-style text in horizontal or native vertical writing modes, supports complete marked groups, opt-in exclusive ancestor ActualText ownership with preserved ParentTree bindings, opt-in single-style Arabic shaping, and horizontal Unicode scalar bidirectional shaping with explicit static fonts and complete-word style changes, saved logical line semantics and detailed visual-run reports, and provides ExtractShapedPdfParagraphText for saved logical ActualText whilst separately reporting native character-order differences
Styled editing covers independent nested Form instance origins, reviewed unique-MCID text with maintained ActualText, and preserved character/word spacing backed by native pixel checks
Destroying a bound TPdf deactivates its surviving views and clears their Pdf references; previously obtained native document and page handles must no longer be used
Typed annotation-only form writes include bounded direct field promotion and permission-checked AESV3 and legacy RC4/AESV2 encrypted transactions with preserved security parameters, and signed encrypted sources publish through the certification/FieldMDP policy profile; see SetFormFieldValue and SetFormFieldValues
Since v3.253.0, core native Windows LDAPS retrieval supports verified peer identities, private per-connection roots and independent CMS trust; v3.261.0 additionally supports native Windows StartTLS with a socket deadline and budgeted native TLS session queue
Since v3.254.0, core existing-font optimisation can explicitly subset standalone OpenType TrueType programs, with a separate opt-in for variable default instances and retained mapping/embedding policies
Since v3.255.0, explicit core edition-exception constructors keep generated C++Builder headers usable, while Windows optional crypto transport headers supply the LDAP import-library directive for static clients; see edition package linking
Version 3.256.0 corrects PDF/A-4 revision identification, strict conformance values, engineering-profile handling, embedded-file checks and Info/XMP publication; see ValidatePdfA and SaveAsPdfA for selected checks, recursive budgets and preservation boundaries
Internal v3.416.1 reports missing or invalid embedded file MIME names in PDF/A-3. ValidatePdfA follows active EF stream references and resolves indirect Subtype names by object number and generation
Internal v3.417.0 adds pvaiEmbeddedFileParamsInvalid for a present PDF/A-3 embedded file Params value that is not a dictionary containing a valid PDF ModDate string. Verifying the recorded time against the original file requires external evidence
Internal v3.417.1 verifies dictionary /AF associations in the active PDF/A-3 document graph, including indirect arrays and exact file specification generations. Internal v3.417.2 also verifies named Properties arrays selected by balanced /AF marked content and reports association use by DP
Internal v3.417.3 checks RF related file arrays on active PDF/A-3 file specifications. Their filename keys must match entries in the file specification and EF. Each pair contains a string and an embedded stream that receives the existing MIME and Params checks
Internal v3.417.4 finds PDF/A-3 file specifications through active embedded-file name trees, associated-file arrays and file attachment references. It validates the Type and AFRelationship names and the F and UF strings, including indirect objects
Internal v3.417.5 accepts FileAttachment and Redact under the PDF/A-2 and PDF/A-3 annotation type rules. Attachment content, appearance and association remain subject to the applicable profile
Internal v3.417.6 judges annotation subtypes from the active page tree’s /Annots references, including indirect and escaped subtype names, an omitted /Type and superseded revisions. Private dictionaries and detached pages are no longer misread as annotations; pvaiAnnotationSubtypeUnchecked reports a page tree the validator cannot inspect completely. A file whose active revision cannot be read keeps conservative byte-level checks instead of losing the clause
Internal v3.417.7 audits the annotation subtype tables of all six part profiles against the rules the veraPDF validation profiles actually ship. PDF/A-1 permits the sixteen PDF 1.4 types, parts 2 and 3 permit the twenty-two ISO 32000-1 types, and part 4 base, 4e and 4f permit twenty-two, twenty-four and twenty-three respectively. The part 1 generic check also applies when the active revision cannot be read, so an undefined subtype in such a file is no longer missed
Internal v3.417.8 resolves inherited page resources when a Form XObject or Type 3 font omits /Resources. PDF/A-3 associated-file marked content in those streams is classified against the active page resource dictionary, and pvaiEmbeddedPdfAUnchecked is kept only when no page context can be resolved. An invoking Form’s own resources are not used as the fallback
Internal v3.417.9 resolves the page resource dictionary before walking /Annots, so an annotation appearance stream that omits /Resources is classified against the same page context as a Form painted by the page. A Type 1 tiling pattern without its required /Resources keeps the fail-closed policy
Internal v3.417.10 judges annotation dictionary, flag and appearance clauses through the active page /Annots graph. A private object that merely looks like an annotation no longer produces pvaiAnnotationFlagsViolation or pvaiAnnotationApDictViolation, whilst a real annotation with a bad /F, /CA or /AP is still reported. A file whose active revision cannot be read keeps the conservative byte-level checks
Internal v3.417.11 moves the button normal-appearance rule into the same active-annotation decision, so a /FT /Btn widget whose /AP holds a plain /N stream is reported whilst an object carrying the same keys outside /Annots is not
Internal v3.417.12 applies the same ownership to the widget action rule, so pvaiWidgetActionForbidden follows the active annotation: a Widget with /A, or with /AA before part 4, is reported, and an object carrying the same keys outside /Annots is not
Internal v3.417.13 resolves the field type of a widget annotation through its /Parent chain, so the button normal-appearance rule also covers a widget that is a separate object from its field. The walk is bounded and stops at sixteen levels
Internal v3.417.19 fixes a false pvaiForbiddenRenderingIntent report. Content streams that set a permitted rendering intent and then name another resource, such as /RelativeColorimetric ri /T1_0 1 Tf, were flagged because the name after the operator was read as the intent. The decision now rests on the ri operator and the operand it consumes
Version 3.257.0 adds native Tesseract layout through IPdfStructuredOcrProvider, with explicit heuristic fallback and validated physical-region ownership in FPdfOcrLayout
Version 3.258.0 extends ValidatePdfDocumentStructureBindings with reverse ParentTree coverage, physical MCR checks and exact continued-stream provenance, whilst retaining unclaimed-MCID staging for subsequent binding
Version 3.259.0 adds explicit nested text Form supplementation through IncludeUnmarkedFormText and bounded core Form invocation inspection with independent stream-local MCID ownership
Version 3.260.0 extends isolated transparency redaction to CMYK Forms and separately selected whole-page groups, with physical RGB/alpha erasure and obsolete blending-group removal
Version 3.262.0 adds opt-in static flowed XFA flattening with fixed page content areas, row wrapping, nested boxes, forward named page breaks, validated margins and visible/invisible/hidden presence semantics, whilst preserving non-zero source stream positions
Version 3.292.0 adds explicit mapped-source paragraph semantics for mixed mark stacks and partial scopes, with caller-preserved or reviewed content/structure values, unchanged ownership and repeated native save/reflow validation; active-object reads also separate object counts from sparse index limits
Version 3.320.0 adds selected per-Do Form object edits with independent invocation resources, local/page/structure semantic revisions, preserved ParentTree ownership and actual edit/full-save/reopen validation
Version 3.321.0 extends the same object batches with an immutable FormPath through ordinary nested invocations, retaining ancestor declarations, placement and all unselected calls whilst operations and maps address the deepest local children
Version 3.322.0 adds reviewed internal Form ownership normalisation, with independent invocation streams and reciprocal MCID/MCR/ParentTree mappings, exact page-stream provenance in the reader, and byte-preserving structure metadata edits
Version 3.323.0 adds identity-preserving internal Form object batches, retaining original stream and namespace identities, explicit local/page/structure semantic targets and nonselected owned resources across native saves
Version 3.324.0 adds explicit owned Form paragraph targets, retaining local source mappings, mixed MCIDs, original stream and resource identities and separate reviewed semantic values through multiline reflow and full native save/reopen cycles
Version 3.325.0 adds explicit saved shaped Form paragraph sources, with bounded glyph-style inspection, independently copied source paths, saved logical anchors and repeated Arabic or mixed bidirectional reshaping
Version 3.326.0 makes owned paragraph inspection honour the same selected container and local indexes as editing, records bounded preparation work, qualifies repeated shaped-source combinations and resolves reused xref-stream numbers at their original revision offsets
Version 3.326.1 resolves unfiltered xref-stream indirect Length values through the same section's exact integer-object offset and generation, preserving stream-ending bytes and reused revision identities whilst retaining finite parser budgets
Version 3.326.2 adds exact Flate xref-stream bootstrap spans, resolves ordinary length integers through older revisions and keeps hybrid classic/supplemental precedence consistent across sparse inspection and full-data rewriting
Version 3.327.0 reads compressed xref length integers through the requesting revision's object-stream entry, validates complete member values and cumulative bootstrap budgets, and makes PdfStructureBytes prefer verified declared spans when payloads contain object or stream terminator text
Version 3.328.0 adds ASCIIHex, ASCII85, RunLength and LZW to revision-scoped xref and object-stream decoding, including supported chains with Flate, direct parameter dictionaries, exact EOD spans and cumulative intermediate-output limits. The filter helpers expose bounded single-stage decoding and consumed-byte results; decoded inspector reads reject malformed metadata whilst raw copies and established ASCIIHex EOF behaviour remain available
Version 3.329.0 resolves indirect object-stream N and First values through the requesting revision, including ordinary and independently compressed integers, with dependency-cycle, depth, work and retained-header limits. Sparse reads and active-graph rewriting preserve exact generations and complete scalar values. Stream extent checks distinguish the optional excluded CR/LF/CRLF before endstream from extra bytes counted after EOD
Version 3.330.0 resolves indirect integer Predictor, Columns, Colors, BitsPerComponent and EarlyChange values in direct object-stream DecodeParms dictionaries/arrays through the requesting revision. Sparse reading and full rewriting charge compressed parameter work before calculating the primary container allowance and reject generation mismatches, cycles and incomplete scalar values. Standalone physical stream inspection retains its direct-metadata contract
Version 3.330.1 restores PDF null semantics for optional filter metadata: a direct null Filter is omitted, direct null integer parameters use their defaults, and source-indexed object-stream decoding also defaults revision-scoped null or undefined optional parameter references. Required N/First/Length values remain strict integers. The physical inspection helpers retain direct-reference boundaries and reject malformed null tokens
Version 3.331.0 adds complete revision-scoped object-stream Filter/DecodeParms/Type references, including name/array/dictionary/null values, element references, independently compressed metadata and ordinary aliases. Reference-aware graph reads share one source index, enforce nested per-stream and allocation limits, and exclude indirect-Type object-stream infrastructure from ordinary results. Actual external files remain unsupported, xref Filter/DecodeParms stay direct-only and physical inspection retains its separate direct-metadata contract
Version 3.333.0 extends leading Identity Crypt object-stream decoding with revision-scoped optional Name/Type references, including ordinary aliases, independent compressed metadata and null/undefined/free/wrong-generation defaults. Contextual parameter resolution preserves same-named private Flate/LZW fields, rejects dependency cycles and malformed complete values, and retains shared parser budgets and the prohibition on xref Crypt. Physical stream inspection keeps its direct-metadata contract
Version 3.334.0 restricts predictor parameters to LZW/Flate and EarlyChange to LZW, resolves active parameter Type references as optional names and rejects non-name Type values. Parameter syntax checks reject malformed opaque values under finite nesting/token/deadline limits. Opaque extensions remain compatibility data; successful decoding does not prove private-name registration or complete ISO conformance
Version 3.334.1 rejects missing token boundaries between an opaque parameter reference's generation number and R, whilst retaining whitespace/comment-separated references
Version 3.364.0 extends the embedded-opacity profile to two-component JPEG 2000 images: one grey colour channel plus a Channel Definition opacity channel converts with an exact DeviceGray soft mask, including premultiplied grey
Version 3.365.0 adds PdfShapedTextSelection, which maps a visual glyph range to the minimal logical UTF-16 span of a shaped text, expanding partial selections to complete clusters and reporting unmapped glyphs as zero-length spans
Version 3.365.1 makes Uniscribe glyphs that the character map does not reference inherit the nearest mapped cluster, so their selection span no longer returns to the run start
Version 3.365.2 rebiases signed JPEG 2000 palette indices before the PCLR column lookup, so palette images whose column carries both a colour and an opacity description convert instead of failing
Version 3.365.3-v3.365.8 grow static XFA flowed containers and multi-line fields from their content, covering template line breaks, path-resolved dataset values and repeated fields sized by their tallest bound value
Version 3.365.9-v3.365.10 admit digits, Arabic punctuation and the Arabic Supplement and Extended-A blocks into the opt-in Arabic paragraph lane
Version 3.365.11-v3.366.2 finish static XFA field growth: repeated fields size each instance from its own bound value, multi-line fields wrap long template and dataset text at the field width with Helvetica advance widths, and a word wider than the field breaks at character boundaries
Version 3.366.3-v3.366.4 render WinAnsi specials in static XFA field appearances and decode template values as UTF-8, and let the opt-in Arabic paragraph lane justify lines by stretching inter-word spaces
Version 3.366.5-v3.366.8 repeat static XFA atomic items and fixed subforms once per dataset instance when occur declares a range, sum each repeated instance's own wrapped height in automatic containers, keep the first instance's sub-tree on its own page when the repetition continues onto a later declared page, and let bidirectional styled paragraphs change style inside a non-joining word on a grapheme-cluster boundary
Version 3.366.9-v3.366.10 reject a repeated static XFA subform whose descendant fields grow differently per instance instead of overlapping the following content, and let bidirectional styled paragraphs justify both paragraph directions by stretching the gaps between words on every line except the last
Version 3.366.11 keeps the last line of an Arabic justified paragraph at its natural spacing when it ends at an explicit break or another paragraph follows
Version 3.367.0 shapes each span of a word that carries an internal style boundary with the complete word as context, so cursive-joining scripts keep their contextual forms, and adds TPdfTextShaper.ShapeSpan, SupportsSpanShaping and a prepared TPdf.AddShapedText overload
Version 3.368.0 lets a batch object edit remove the structure-tree content the deleted objects owned, including their ParentTree entries and the labelled marks in the page stream, through TPdfObjectEditOptions.RemoveOwnedStructurePeers
Internal version 3.398.0 adds a ReadPdfVerticalClusterMap Form-path overload that validates a nested column against the sibling objects of its containing Form, preserving independent repeated invocations, page-level empty-path behaviour and legacy PCM1 compatibility
Internal version 3.400.0 adds ReadPdfParagraphNativeMap, ReadPdfVerticalNativeMap and PdfParagraphSelectionFromNative for exact native character association via the optional provenance extension; results tell physical glyph ordinals apart from ActualText declaration offsets, keep independent invocations distinct and reject selection gaps. Internal v3.401.0 includes both local source exports in every bundled Win32/Win64 ordinary and V8/XFA DLL; native builds lacking them report unavailable. Internal v3.402.0 also maps legacy PCM1 vertical columns that have distinct per-glyph ActualText owners, translates local declaration offsets into column logical clusters and exposes TPdfParagraphNativeMap.FormatVersion; edits to supported members or ActualText invalidate the whole declared legacy column. Internal v3.404.0 extends that protection to direct TPdf edits, keeps property-only mappings intact across represented shared scopes in adjacent streams and isolates named-property parameter changes; FPDFPageObjMark_DetachParams is the optional native isolation extension shipped in the updated Windows DLLs
Internal v3.405.0 expands PreserveSourceEvents transactions to paths, named images and Form invocation geometry, with instance-private dirty untagged Form subtrees, nested removal anchors, preserved Matrix/BBox semantics and bounded recursive preflight; changed inherited Form graphics and dirty tagged Forms are rejected before anything is written
Internal v3.406.0 adds SetContentEventTag, SetContentEventParam and RemoveContentEventParam for empty source declarations and marked points within preserving transactions, including nested private Form edits; the optional FPDFPageObjMark_GetParamTextValue decodes PDF text without altering the legacy raw UTF-8 getter
Internal v3.407.0 adds revisioned logical content-event edit state, event views and transaction-bound cursors for scope/point insertion and declaration removal on pages and private nested Forms; paragraph maps with a direct container are invalidated when ActualText is removed, whilst arbitrary native-object movement, recursive Form paragraph policy and reciprocal tagged bindings remain open
Internal v3.408.0 extends RemoveContentEvent so paragraph coordinate maps are invalidated throughout the affected nested Form branches, preserving unrelated invocation metadata and rolling back partial descendant changes; multi-glyph horizontal PCM1 tables are told apart from neighbouring first-glyph columns when native raw glyph counts are available
Internal v3.409.0 extends SetContentEventTag, SetContentEventParam and RemoveContentEventParam to represented page/private-Form scopes through two optional native member-value procedures; ActualText changes invalidate coordinate tables on surviving owners and affected descendants within the same rollback-safe transaction, whilst role/MCID rebinding and broader tagged Form cloning remain open
Internal v3.409.1 fixes explicit page-stream MCR/Stm preservation during dirty saves, keeping ParentTree/MCID identity and isolating shared declarations for unedited pages; the structure reader also accepts valid zero-length content streams in Contents arrays
Internal v3.410.0 adds RebindContentEvent for an explicitly reviewed page MCID owner with optional renumbering, atomically keeping physical BDC/K/ParentTree ownership and shared-page isolation; revisioned cursors, preserved paragraph maps, shared structure/readable cache invalidation and whole-batch recovery cover accepted edits, whilst tagged Form cloning and broader source profiles remain open
Internal v3.411.0 adds ReadPdfStructureFormUsage with separate counts for all page calls and every annotation N/R/D appearance state, exact source stream identities and conservative exclusions for ancillary soft-mask, Pattern and Type3 resource graphs; checked native Form transaction dispatch follows in internal v3.412.0 and local Windows delivery in v3.413.0
Internal v3.412.0 adds checked optional Form ownership dispatch to preserving commits, intersecting exclusive identities from the original transaction snapshot and the current serialized document, including direct annotation dictionaries and appearances introduced during the batch; complete snapshot recovery covers review refusal and failures before or after native generation, whilst bundled native delivery remains pending
Internal v3.413.0 delivers both reviewed Form exports in all four bundled Windows modules; the exact Win64 ordinary module retains its original native and checked-adapter qualification, whilst the other module variants have build and static architecture/export/import evidence only; valid shared OBJR instance splitting and broader source profiles remain open
Internal v3.413.1 narrows ancillary Form ownership exclusions by resource consumer and owning page: embedded image, font-programme and function data no longer trigger drawing-resource fallback; soft-mask, Type3 and pattern contexts keep sharing safeguards, whilst complete reference closures and unused resource aliases remain conservative exclusions
Internal v3.413.2 follows actual Do calls within explicit auxiliary XObject resource dictionaries, allowing unused local aliases whilst retaining actual nested calls, private resource-dictionary references and conservative inherited-resource exclusions
Internal v3.413.3 extends auxiliary Do evidence to inherited page, parent-Form and Type3 contexts, distinguishes category fallback from a missing name in an existing category, and keeps separate page contexts for shared masks; oversized auxiliary decoding refuses review without publishing usage evidence
Internal v3.413.4 accepts repeated scalar OBJR references that agree on one ParentTree owner, including cross-page Form and image use, and keeps the inverse binding until its last logical reference is removed; explicit shared-Form semantic instance splitting remains open
Internal v3.414.0 adds SplitPdfStructureObjectFormInstances for source-bound whole-object Form reviews, explicit logical insertion anchors, private ancestor cloning, new scalar/OBJR identities and per-page original-reference retirement; N/R/D appearances retain original bindings, and separately normalised internal ancestors support subsequent splitting and checked preserving edits
Internal v3.414.1 refines Form usage review: unselected indirect Type3 definitions can remain independent, whilst Tf, ExtGState Font, nested glyph selection and private font/CharProc references keep conservative ownership checks
Internal v3.414.2 corrects native font rendering for ExtGState Font arrays containing an indirect font dictionary, including Type3 resource inheritance and reference-only fonts absent from the page Font map; native save/reopen preserves the source font references
Internal v3.414.3 extends Form usage review with deferred indirect tiling/shading Pattern traversal driven by scn/SCN selection, nested/auxiliary calls and opaque references; unused definitions can remain independent whilst private resource aliases and alternate consumer roles keep conservative checks
Internal v3.415.0 delivers Pattern source replay in all four bundled Windows modules, keeping the exact qualified Win64 ordinary candidate; coloured fill/stroke, shading Patterns, uncoloured RGB/CMYK/Lab base components, source events and anchored Form resources survive supported saves, whilst the other three module variants have build/static evidence only; see preserving transactions for the qualified scope and remaining refusals
Internal v3.414.6 defers ordinary Pattern usage until its fill or stroke state is consumed, preserving bounded q/Q restoration, independent path lifetime, colour resets and conservative text/Form/image consumers; older runtimes keep an independent direct-page Pattern source-replay rejection gate
Internal v3.415.1 refines Form usage review for invisible text and named image XObjects: native mode 3 skips pending Pattern colours, ordinary colour images do not consume them, and stencil images consume fill only; q/Q, native float rounding and private-resource exclusions remain checked. The unchanged Win64 ordinary runtime also has focused saved-text and stencil Pattern replay evidence
Internal v3.415.2 adds empty-path source generation in all four bundled Windows modules: empty closing/fill/stroke operators, cleared paths and split streams keep source metadata without paint-object synthesis. Focused runtime qualification covers Win64 ordinary; other variants have build/static evidence only, and historical reports keep their original module identities
Internal v3.415.3 extends checked source ownership generation to reviewed ordinary Form streams and ordinary ancestors of tagged content; repeated checked saves keep proven source identities without adding invocation aliases, and shared fallback consumers remain isolated
Internal v3.416.0 connects optional ordinary Form ownership review to preserving transactions without changing Pascal signatures. The new native FPDFPage_ContentEventsHaveFormEdits export selects actual Form work; original/current ownership proofs keep source identities, whilst old runtimes and proof-unavailable ordinary sources keep legacy preserving generation
Internal v3.414.5 scopes indirect Type3 font selections to effective resources and renderer-page contexts, keeping cached glyph parser/renderer combinations among selected contexts and conservative private font/glyph/map upgrades; null or stream-valued resource categories follow native dictionary fallback
Internal v3.414.4 binds ordinary Pattern selections to effective/parser-page/renderer-page resource contexts, isolating unselected pages whilst preserving private definition/map closures and late nested-resource propagation
Internal version 3.397.0 adds a ReadPdfParagraphClusterMap overload with a native Form path, so a saved line inside a nested or owned container can be read without changing the current page or source document; empty paths keep the top-level call behaviour and invalid or ambiguous paths report unavailable
Internal version 3.396.3 gives each vertical column one shared ActualText/PCM2 scope across its consecutive glyph objects, persists that scope before saving, and validates the first object and exact membership on read; batch edits invalidate the whole changed column and leave unaffected columns alone, whilst legacy PCM1 tables keep bounds-only compatibility
Internal version 3.396.2 binds new horizontal saved cluster maps to their logical ActualText, validates complete scalar-aligned coverage and accepts duplicate glyph spans for a shared cluster; batch edits invalidate affected declaration maps and leave unaffected maps alone. Vertical PCM2 persistence and cross-object ownership follow in internal v3.396.3; see saved cluster maps
Version 3.369.0 saves a per-glyph cluster map on every bidirectional paragraph line and adds ReadPdfParagraphClusterMap and PdfParagraphSelectionFromVisual, so a reopened line maps a visual glyph selection to its exact logical range
Version 3.369.1 extends that map to the Arabic paragraph lane and lets the reader find a map stored on a text object inside the line Form
Version 3.369.2 validates the map against the saved ActualText length before returning it, so offsets that no longer fit the line report unavailable
Version 3.370.0 lets a batch object edit remove the structure element that the peer removal left empty, deepest first, through TPdfObjectEditOptions.RemoveEmptiedStructureNodes
Version 3.371.0 adds vertical shaping through SupportsVerticalShaping, and v3.372.0 requests it with the appended ptdTopToBottom direction (the earlier option field was removed, so the options record keeps its 16-byte layout), whilst Uniscribe reports no vertical metrics
Version 3.373.0 adds AllowShapingJoiners, which admits ZWNJ and ZWJ through the bidirectional paragraph lane so the shaper applies their joining or breaking effect; the default keeps the released rejection
Version 3.372.1 regenerates the C++ header snapshots so every installation's C++Builder compiler parses them, including Delphi 12, 14 and 15 where a default dynamic-array argument had been emitted as an integer cast
Version 3.371.1 makes the PDF/A validator emit pvaiPageStructParentsMissing for a tagged page whose marked content has no /StructParents anchor, a diagnostic that was previously only declared
Version 3.364.1 decodes a shared fourth colour/opacity channel on four-colour JPEG 2000 images: the fourth colour component remains in place and the same channel supplies the 8-bit DeviceGray soft mask
Version 3.363.0 lets one JPEG 2000 channel carry both a colour and an opacity description: a three-component image whose third channel is also a type 1 or type 2 opacity channel keeps three colour channels and gains a soft mask, whilst a second opacity description now rejects. The opacity profile keeps its other boundaries
Version 3.359.0 adds embedded JPX opacity soft masks (raw and premultiplied, subsampled, explicit-ColorSpace, CMAP-mapped and palette-column channels) and original channel precisions up to 24 bits, and earlier patches in this series published identical CID maps for shaped text that shares one font program and typed form writes on signed encrypted sources
Version 3.350.0 adds YPbPr(1125/60) and YPbPr(1250/50) JPX conversion together with T.801 colour-temperature CIELab illuminants and an explicit component registration (CRG) policy; enumerated CIEJab 19 stays unavailable because T.801 fixes no viewing conditions for it
Version 3.340.0 adds bidi-control paragraphs and control-only source styles, preserving twelve formatting controls in logical line/run ranges whilst mapping separate glyph input with PdfBidiIsFormattingControl and PdfBidiRenderText. Invisible spans retain zero glyphs/advance and validated saved typography for later edits; the nonisolated CID resource collision was resolved in v3.342.0 and shared-font shaped runs now publish one identity CID-to-GID map since v3.352.0, whilst shaping joiners were admitted in v3.344.0, grapheme-cluster boundary guards added in v3.347.0 and cluster-safe word-internal styling released for non-joining scripts in v3.366.6 and for cursive-joining scripts in v3.367.0 through word-context span shaping; vertical shaping and the remaining source-Form/selection mappings stay separate requirements
Version 3.339.0 adds ptdResolvedLeftToRight and ptdResolvedRightToLeft for visible runs whose bidi direction is already resolved, preserving uniform flow in Uniscribe/HarfBuzz without changing existing base-direction semantics. Bidi paragraphs use these modes during measurement/emission and reject inconsistent backend direction metadata
Version 3.338.0 adds PdfResolveBidiParagraphLevels and PdfBidiLineLevels, preserving paragraph context before wrapping and applying L1 only to the selected lines. Horizontal bidirectional paragraph editing uses this pipeline to retain cross-line bracket, neutral and number context under its existing text, font, style and resource contracts
Version 3.337.0 extends horizontal bidirectional paragraph editing to valid Unicode scalars supplied by explicit static fonts, including supplementary characters and additional scripts. It validates scalar-aligned complete run/cluster mappings and reconstructs selected Windows TTC faces as standalone fonts with rebuilt offsets/checksums, preserving existing logical line ownership and complete-word style boundaries
Version 3.336.2 restores null/default parity in the common PdfReadAndDecodeStream pure-Flate helper: direct null Predictor, Colors, BitsPerComponent and Columns entries use 1, 1, 8 and 1 respectively, including single-item parameter arrays. Malformed null suffixes remain rejected and checked physical inspection retains its existing default behaviour
Version 3.336.1 restricts no-prediction handling to Predictor 1 and rejects zero or negative values during checked LZW/Flate decoding and source-indexed xref/object-stream processing
Version 3.336.0 adds TIFF Predictor 2 reconstruction for 1/2/4/8/16-bit components to general stream decoding and revision-aware xref/object-stream reading. Reconstruction handles component-wise modular differences, per-row reset, big-endian 16-bit samples and preserved row-padding bits; single-Flate sparse reading now rejects incomplete rows and invalid depths through the shared checked decoder
Version 3.335.0 adds ValidatePdfStreamDictionarySyntax and rejects byte-equivalent repeated keys before source metadata normalisation or referenced parameter interpretation. Nested dictionaries have separate key scopes, case and byte distinctions are preserved, and hash workspace/comparison work honours parser budgets. Syntax checks do not establish schema or private-name registration conformance
Version 3.291.0 adds transactional batch object edits for properties, source-font text, removal and text insertion, with original/operation/boundary maps, explicit preserved or reviewed semantic values, complete declaration restoration and verified unchanged structure ownership
Version 3.290.0 adds complete declaration preservation to paragraph replacement, with source-style, before/after and explicit inserted/removed-object boundary mapping, retained independent marked/Form peers and encoded inline image promotion; selected complete-group ActualText keeps its canonical innermost ownership
Version 3.263.0 extends bidirectional paragraph editing to Hebrew/Latin/digit mixtures with niqqud, complete-word styles and persistent logical line ownership
Version 3.264.0 adds explicit embedded-font collection faces and variable coordinates with retained mappings, embedding-policy checks and bounded native appearance verification
Version 3.268.0 adds external-stream TPdfReportWriter output, PdfReportStreamSha256, CopyPdfWorkflowSource and Windows TPdfArtifactBundle publication in the shared core; see report and artifact APIs
Small Business workflow APIs add ReviewPdfSourcesWithStorage, spill-capable scan/raster options, processed-page diagnostics and direct WriteJson/WriteHtml exporters; Enterprise evidence adds typed/read-only records, stream appends and byte verification
Version 3.269.0 adds pffStandardsExecution and pffDocumentRepairProviders to TPdfLibraryFeature, so Enterprise batch standards-rule execution and the concrete PDF/A repair providers report their own linkage; see feature availability queries