DynaPDF Manual - Page 317
Previous Page 316 Index Next Page 318

Function Reference
Page 317 of 860
field height to a value so that up to 5 lines of text can be drawn into the field. The resulting font size
depends on the height of the field divided by the number of text lines.
Interactive form fields can be structured into several groups by passing a handle of a group field to
the parameter Parent. See CreateGroupField() for further information.
Return values:
If the function succeeds the return value is the field handle, a value greater or equal zero. If the
function fails the return value is a negative error code.
CreateSigFieldAP
Syntax:
SI32 pdfCreateSigFieldAP(
const PPDF* IPDF) // Instance pointer
UI32 SigField)
// Handle of a signature field
The function creates a signature appearance template in the exact size of the base signature field.
The created template is already opened if the function succeeds and you can draw arbitrary contents
into it. After the appearance has been defined the template must be closed with EndTemplate().
Note that the template is reserved for the signature field. It must not be placed on pages or other
templates.
When creating a user defined appearance for a signature field you should also place the validation
icon properly so that it does not overprint the entire contents. See also PlaceSigFieldValidateIcon().
Remarks:
An example application that demonstrates the creation of a user defined signature appearance is
delivered with DynaPDF (see example signature_ap).
Return values:
If the function succeeds the return value is the action handle, a value greater or equal zero. If the
function fails the return value is a negative error code.
CreateSoftMask
Syntax:
void* pdfCreateSoftMask(
const PPDF* IPDF,
// Instance pointer
UI32 TranspGroup,
// Handle of the transparency group (required)
TSoftMaskType Type, // Soft mask type, see description
UI32 BackColor)
// Background color if the type is smtLuminosity
typedef enum
{
smtAlpha,
smtLuminosity
Previous topic: CreateSigField, How to lock an Interactive Form after signing?
Next topic: Soft mask types, Possible rendering issues, How to activate a soft mask?