| Declaration | Values or purpose |
|---|---|
EPdfProduction | Exception raised for invalid production input, exhausted safety budgets, unsupported operations, and rejected backend output |
TPdfColourSpace | pcsDeviceGray, pcsDeviceRGB, pcsDeviceCMYK, pcsICCBased, pcsSeparation, pcsDeviceN, pcsLab |
TPdfSvgPathCommandKind | spcMoveTo, spcLineTo, spcCubicTo, spcQuadraticTo, spcClosePath |
TPdfReplacementMode | prmNativeTextObject, prmRedactAndRelayout |
TPdfBarcodeKind | pbkCode128, pbkQr, pbkDataMatrix, pbkPdf417 |
TPdfPortfolioFieldType | ppftText, ppftNumber, ppftDate, ppftFileName, ppftDescription, ppftSize, ppftModDate, ppftCreationDate |
The optional LittleCMS provider implements the buffer transform interface, and FPdfDocumentColour applies it to original document operators and image components with explicit completeness reports
| Declaration | Public fields or members |
|---|---|
pcsLab | ICC v4 D50 PCS Lab source with three native-endian 16-bit components and no source profile bytes; L uses L*655.35 and a/b use (value+128)*257 |
TPdfColourBuffer | Space: TPdfColourSpace, Components: Integer, BitsPerComponent: Integer, Samples: TBytes, IccProfile: TBytes |
TPdfOutputIntent | Identifier: string, RegistryName: string, Info: string, Components: Integer, IccProfile: TBytes |
TPdfColourConversionOptions | MaxInputBytes: Integer, MaxOutputBytes: Integer, PreserveOnFailure: Boolean, class function Default: TPdfColourConversionOptions |
TPdfColourConversionReport | Converted: Boolean, PreservedOriginal: Boolean, InputBytes: Integer, OutputBytes: Integer, ErrorMessage: string |
TPdfTrueTypeSubsetBackend provides retained-ID outline subsetting with composite closure; SubsetPdfDocumentFonts applies it to proven embedded document resources
| Declaration | Public fields or members |
|---|---|
TPdfGlyphInfo | GlyphID: Cardinal, UnicodeValue: Cardinal, Width: Integer |
TPdfGlyphInfos | Dynamic array of TPdfGlyphInfo |
TPdfFontSubsetOptions | MaxFontBytes: Integer, MaxGlyphs: Integer, MinimumSavingPercent: Integer, RestrictToContentStreamUsage: Boolean, class function Default: TPdfFontSubsetOptions |
TPdfFontSubsetReport | Applied: Boolean, PreservedOriginal: Boolean, GlyphCount: Integer, OriginalBytes: Integer, SubsetBytes: Integer, ErrorMessage: string |
TPdfSvgPathCommand | Kind: TPdfSvgPathCommandKind, Values: array[0..5] of Double |
TPdfSvgPathCommands | Dynamic array of TPdfSvgPathCommand |
IPdfFontSubsetClosureBackend optionally extends a backend with function SubsetWithClosure(const FontProgram: TBytes; const Glyphs: TPdfGlyphInfos; out SubsetProgram: TBytes; out GlyphClosure: TPdfGlyphInfos; out ErrorMessage: string): Boolean, returning actual sorted unique dependencies
SubsetExistingPdfFont keeps the first metadata for duplicate glyph IDs using stable sorting, validates extended closure budgets and requested-glyph coverage, and reports the actual closure count before accepting a smaller program
| Declaration | Public fields or members |
|---|---|
TPdfStyledSpan | PageIndex: Integer, ObjectIndex: Integer, CharacterStart: Integer, Text: WideString, StyleID: Integer |
TPdfStyledSpans | Dynamic array of TPdfStyledSpan |
TPdfRegexMatch | StartIndex: Integer, Length: Integer, Replacement: WideString |
TPdfRegexMatches | Dynamic array of TPdfRegexMatch |
TPdfStyledReplacement | Mode: TPdfReplacementMode, PageIndex: Integer, FirstObjectIndex: Integer, LastObjectIndex: Integer, FirstCharacter: Integer, CharacterCount: Integer, Replacement: WideString, StyleID: Integer, LastPageIndex: Integer |
TPdfStyledReplacements | Dynamic array of TPdfStyledReplacement |
TPdfXfaBinding | SomPath: string, Value: string |
TPdfXfaBindings | Dynamic array of TPdfXfaBinding |
FPdfDocumentAssets provides document-level Collection read/write and RichMedia discovery for these models
| Declaration | Public fields or members |
|---|---|
TPdfBarcodeRect | Left: Double, Top: Double, Right: Double, Bottom: Double |
TPdfBarcodeRects | Dynamic array of TPdfBarcodeRect |
TPdfBarcodeResult | Kind: TPdfBarcodeKind, Text: string, Bounds: TPdfBarcodeRect, Confidence: Double |
TPdfBarcodeResults | Dynamic array of TPdfBarcodeResult |
TPdfPortfolioField | Name: string, DisplayName: string, FieldType: TPdfPortfolioFieldType, Order: Integer, Visible: Boolean, Editable: Boolean |
TPdfPortfolioFields | Dynamic array of TPdfPortfolioField |
TPdfPortfolioValue | FieldName: string, Value: string, Prefix: string |
TPdfPortfolioValues | Dynamic array of TPdfPortfolioValue |
TPdfPortfolioItem | Key: string, FileName: string, Description: string, AFRelationship: string, FolderID: Integer, Values: TPdfPortfolioValues, EmbeddedData: TBytes, MimeType: string, CreationDate: string, ModificationDate: string, IsExternal: Boolean |
TPdfPortfolioItems | Dynamic array of TPdfPortfolioItem |
TPdfPortfolioSplitDirection | (ppsdNone, ppsdHorizontal, ppsdVertical) |
TPdfPortfolioFolder | ID: Integer, ParentID: Integer, Name: string, Description: string, CreationDate: string, ModificationDate: string, Values: TPdfPortfolioValues |
TPdfPortfolioFolders | Dynamic array of TPdfPortfolioFolder |
TPdfPortfolioSortField | Name: string, Ascending: Boolean |
TPdfPortfolioSortFields | Dynamic array of TPdfPortfolioSortField |
TPdfPortfolio | Fields: TPdfPortfolioFields, Items: TPdfPortfolioItems, Folders: TPdfPortfolioFolders, SortField: string, SortAscending: Boolean, SortFields: TPdfPortfolioSortFields, InitialDocument: string, View: TPdfPortfolioView, HasSplit: Boolean, SplitDirection: TPdfPortfolioSplitDirection, SplitPosition: Double, HasColors: Boolean, BackgroundColor: Cardinal, CardBackgroundColor: Cardinal, CardBorderColor: Cardinal, PrimaryTextColor: Cardinal, SecondaryTextColor: Cardinal |
TPdfPortfolioView selects ppvDetails, ppvTiles or ppvHidden; Key identifies the name-tree entry independently of FileName, Prefix holds a collection subitem display prefix, and InitialDocument selects an item Key
| Declaration | Public fields |
|---|---|
TPdfRichMediaAsset | Name: string, MimeType: string, Data: TBytes, IsExternal: Boolean, ActivationCondition: string, DefaultView: string |
TPdfRichMediaAssets | Dynamic array of TPdfRichMediaAsset |
TPdfRichMediaExtracted | Name: string, MimeType: string, Size: Int64, Sha256: string |
TPdfRichMediaExtractedArray | Dynamic array of TPdfRichMediaExtracted |
| Interface | Method | Purpose |
|---|---|---|
IPdfColourTransform | function Transform(const Source: TPdfColourBuffer; TargetSpace: TPdfColourSpace; const TargetProfile: TBytes; out Target: TPdfColourBuffer): Boolean | Converts a validated source buffer to the requested color space and profile |
IPdfColourFloatTransform | function TransformFloat(const Source: TPdfColourBuffer; TargetSpace: TPdfColourSpace; const TargetProfile: TBytes; TargetBitsPerComponent: Integer; out Target: TPdfColourBuffer): Boolean | Optional interface since v3.312.0 for three native-endian IEEE 754 Single PCS Lab values per pixel in physical Lab units, with no source profile and explicit 8/16-bit target precision; the base interface and ConvertPdfColourBuffer retain integer input |
IPdfFontSubsetBackend | function Subset(const FontProgram: TBytes; const Glyphs: TPdfGlyphInfos; out SubsetProgram: TBytes): Boolean | Builds a font program containing the requested glyph closure |
IPdfRegexEngine | function FindMatches(const Text, Pattern, Replacement: WideString; MaxMatches: Integer): TPdfRegexMatches | Returns bounded regular-expression matches and replacement text |
IPdfBarcodeProvider | function Generate(Kind: TPdfBarcodeKind; const Text: string; ModuleSize: Double; out Rects: TPdfBarcodeRects): Boolean | Generates barcode module rectangles for a supported symbology |
function Recognise(const Pixels: TBytes; Width, Height, Stride: Integer; MaxResults: Integer): TPdfBarcodeResults | Recognises bounded barcode results from a caller-owned pixel buffer |
| Member | Purpose |
|---|---|
class function TPdfColourConversionOptions.Default: TPdfColourConversionOptions | Returns bounded color conversion defaults with source preservation enabled |
class function TPdfFontSubsetOptions.Default: TPdfFontSubsetOptions | Returns bounded font and glyph limits with a minimum saving threshold; since v3.207.0 the actual saving percentage is rounded down before comparison, so a nonempty subset cannot satisfy a 100% threshold |
| Signature | Description |
|---|---|
function ConvertPdfColourBuffer(const Source: TPdfColourBuffer; TargetSpace: TPdfColourSpace; const TargetProfile: TBytes; Transform: IPdfColourTransform; const Options: TPdfColourConversionOptions; out Target: TPdfColourBuffer; out OutputIntent: TPdfOutputIntent; out Report: TPdfColourConversionReport): Boolean | Runs a color buffer through a caller transform and builds matching OutputIntent data while preserving the source on failure |
function SubsetExistingPdfFont(const FontProgram: TBytes; const UsedGlyphs: TPdfGlyphInfos; Backend: IPdfFontSubsetBackend; const Options: TPdfFontSubsetOptions; out ResultProgram: TBytes; out GlyphClosure: TPdfGlyphInfos; out Report: TPdfFontSubsetReport): Boolean | Normalizes requested glyphs, obtains dependencies from an optional IPdfFontSubsetClosureBackend, and accepts a smaller program only within the declared budgets |
function ParsePdfSvgPath(const Data: string; MaxCommands: Integer = 100000): TPdfSvgPathCommands | Parses bounded move, line, cubic, quadratic, and close commands with relative-coordinate support |
function ExportPdfSvgPath(const Commands: TPdfSvgPathCommands): string | Serializes path commands to absolute SVG path syntax |
procedure TransformPdfSvgPath(var Commands: TPdfSvgPathCommands; A, B, C, D, E, F: Double) | Applies an affine matrix to every coordinate in a parsed SVG path |
function BuildStyledRegexReplacementPlan(const Spans: TPdfStyledSpans; const Pattern, Replacement: WideString; Engine: IPdfRegexEngine; MaxCharacters: Integer = 16 * 1024 * 1024; MaxMatches: Integer = 100000): TPdfStyledReplacements | Maps regular-expression matches back to styled page-object spans and selects native or redaction-based replacement |
function MergePdfXfaDatasets(const Packets: TXfaPacketList; const Bindings: TPdfXfaBindings; MaxPacketBytes: Integer = 32 * 1024 * 1024): TXfaPacketList | Merges escaped SOM leaf bindings into UTF-8 datasets, supports Unicode XML element names in SOM paths, and preserves every untouched XFA packet |
function RewritePdfXfaPacketStreams(Source, Destination: TStream; const Packets: TXfaPacketList; MaxTotalPacketBytes: Int64 = 256 * 1024 * 1024): Boolean | Appends transactionally replaced XFA packet streams to an unencrypted PDF |
function GeneratePdfBarcode(Kind: TPdfBarcodeKind; const Text: string; ModuleSize: Double; Provider: IPdfBarcodeProvider = nil): TPdfBarcodeRects | Generates built-in Code 128-B vectors and delegates two-dimensional symbologies to a provider |
function RecognisePdfBarcodes(const Pixels: TBytes; Width, Height, Stride: Integer; Provider: IPdfBarcodeProvider; MaxResults: Integer = 256): TPdfBarcodeResults | Delegates barcode recognition while enforcing image geometry and result bounds |
procedure ValidatePdfPortfolio(const Portfolio: TPdfPortfolio; MaxItems: Integer = 100000; MaxEmbeddedBytes: Int64 = 1024 * 1024 * 1024) | Validates field definitions, values, item counts, and embedded payload budgets |
procedure SortPdfPortfolio(var Portfolio: TPdfPortfolio) | Creates a deterministic Collection view by applying the configured sort keys in order with stable ties, using SortFields when present and the legacy single-field pair otherwise |
function ExtractPdfRichMediaAssets(const Assets: TPdfRichMediaAssets; const OutputDirectory: string; MaxAssetBytes: Int64 = 256 * 1024 * 1024; MaxTotalBytes: Int64 = 1024 * 1024 * 1024): TPdfRichMediaExtractedArray | Writes embedded assets without executing content, resolving external references, or permitting directory escape |
FPdfBarcodeZXing supplies an optional barcode generation and recognition provider
Color and font input budgets are checked before allocating preservation copies; the source ICC profile is also subject to the color input byte limit
SVG parsing rejects non-finite coordinates after relative-coordinate arithmetic, and TransformPdfSvgPath validates a private candidate before replacing the caller array, preserving both the input and its aliases on failure
RichMedia extraction rejects path separators, control characters, Windows reserved device names, and trailing periods or spaces, and creates each output exclusively so an existing file cannot be truncated between validation and creation
If extraction fails, cleanup includes the currently written file and earlier files created by that call; the caller must keep the output directory under its control throughout extraction
Platform codecs, color engines, font subsetters, regular-expression engines, matrix barcode libraries, and recognizers are explicit interfaces so hosts can select their audited backend
FPdfStyledEdit executes these plans against a verified source snapshot with preview, font reuse or explicit fallback, bounded fitting and transactional save/reopen verification