THotPDF.AddImageFromFile Method

Adds image from file data to the image embedding workflow. The call creates or attaches the PDF-side object needed by later output, validation, signing, or page rendering steps

Declaration

function AddImageFromFile(FileName: TFileName; Compression: THPDFImageCompressionType; IsMask: boolean= false; MaskIndex: Integer= - 1): Integer;

Unit

HPDFDoc

Parameters

NamePurpose
FileNameFile path used as the source or destination for this operation
CompressionInput used by AddImageFromFile
IsMaskInput used by AddImageFromFile
MaskIndexZero-based index or object index used to select an existing item

Return value

Returns an Integer value

Usage notes

Related APIs