SetSignProcessFieldImageFromFile

Security and Signatures

Description

Sets the image to use for a visual signature field in the specified digital signature process.

The SetSignProcessFieldBounds function can be used to specify the location and size of the signature field.

Syntax

Delphi

Function TPDFlib.SetSignProcessFieldImageFromFile(SignProcessID: Integer; Const ImageFileName: WideString; Options: Integer): Integer;

ActiveX

Function PDFlib::SetSignProcessFieldImageFromFile(SignProcessID As Long, ImageFileName As String, Options As Long) As Long

DLL

int DLSetSignProcessFieldImageFromFile(int InstanceID, int SignProcessID, const wchar_t * ImageFileName, int Options);

Parameters

SignProcessIDA value returned by the NewSignProcessFromFile, NewSignProcessFromStream or NewSignProcessFromString functions.
ImageFileNameThe path and file name of the image to use for the visual signature.
OptionsFor multi-page TIFF images this parameter specifies the page number to load. For PNG images: 0 = Carregar a imagem como habitualmente 1 = Carregar o canal alfa como uma imagem em tons de cinzento 2 = Carregar a imagem e o canal alfa (limitar alfa a 8 bits) 3 = Carregar a imagem (limitar imagem a 8 bits/canal) 4 = Carregar o canal alfa (limitar a 8 bits/canal) 5 = Carregar a imagem com canal alfa (limitar ambos a 8 bits/canal) 6 = Carregar a imagem e o canal alfa 7 = Carregar a imagem e o perfil de cor ICC For other image types this parameter should be set to 0. Setting Options to -1 forces TIFF, EMF and WMF images to be loaded using the GDI+ graphics library. Multipage TIFF images can also be loaded using GDI+ by setting the Options parameter to -PageNumber (for example -3 for page 3).

Return values

0Image could not be added
1Success