PDFium Delphi Component Docs

FPdfEdit unit

Unit: FPdfEdit
PDFium page-object editing binding plus standalone ARGB color helper functions that pack and unpack 32-bit PDFium color values

Syntax

function FPDF_ARGB(a, r, g, b: Byte): LongWord;
function FPDF_GetBValue(argb: LongWord): Byte;
function FPDF_GetGValue(argb: LongWord): Byte;
function FPDF_GetRValue(argb: LongWord): Byte;
function FPDF_GetAValue(argb: LongWord): Byte;

Description

FPdfEdit is primarily a translation of the PDFium fpdf_edit.h C header: it declares the function-pointer types and constants for page-object creation, transformation, and property queries that PDFium.pas binds at runtime. Those bindings are not called directly by applications

The unit also exposes five standalone color helper functions that mirror the Win32 RGB and PDFium ARGB macros. They pack four byte channels into a single 32-bit value and unpack individual channels back out, and are genuinely user-callable when working with PDFium color parameters such as FPDFPageObj_SetFillColor

Functions

FunctionDescription
FPDF_ARGBPacks alpha, red, green, and blue bytes into a 32-bit ARGB color value
FPDF_GetBValueExtracts the blue byte from a 32-bit ARGB color value
FPDF_GetGValueExtracts the green byte from a 32-bit ARGB color value
FPDF_GetRValueExtracts the red byte from a 32-bit ARGB color value
FPDF_GetAValueExtracts the alpha byte from a 32-bit ARGB color value

Remarks

See Also

TPdf.ObjectType, TPdf.Text