DynaPDF Manual - Page 724

Previous Page 723   Index   Next Page 725

Function Reference
Page 724 of 839
ChangeJavaScript(). A JavaScript Action can be accessed with the function GetJavaScriptAction()
and changed with the function ChangeJavaScriptAction().
Remarks:
This function is available in an Ansi and Unicode compatible version. Unicode field names are
supported since PDF 1.5 (Acrobat 6).
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
SetFieldOrientation
Syntax:
LBOOL pdfSetFieldOrientation(
const PPDF* IPDF, // Instance pointer
UI32 AField,
// Field handle
SI32 Value)
// Orientation in degrees (must be a multiple of 90)
The function sets or changes the orientation of a field. The parameter AField be a valid field handle.
The parameter Value must a multiple of 90 or 0. Positive values rotate the field counter clockwise,
negative values clockwise.
The function can also be used to rotate a caret annotation. The annotation handle must be added to
the constant PDF_ANNOT_INDEX in this case because annotations are stored in a different array.
Only caret annotations can be rotated, all other annotation types do not support this feature.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
SetFieldTextAlign
Syntax:
LBOOL pdfSetFieldTextAlign(
const PPDF* IPDF, // Instance pointer
UI32 AField,
// Text field or button field handle
TTextAlign Align) // New alignment
typedef enum
{
taLeft,
taCenter,
taRight,
taJustify
}TTextAlign;
The function set or changes the text alignment of a text or button field. The parameter AField must
be a valid handle of a text field or button field.
 

Previous topic: SetFieldMapName, SetFieldName

Next topic: SetFieldTextColor, SetFieldToolTip, SetFillColor