DynaPDF Manual - Page 411
Previous Page 410 Index Next Page 412
Function Reference
Page 411 of 839
Delphi:
nameLen := pdf.GetFieldName(myField, name);
if nameLen > 0 then begin
if Length(name) <> nameLen then begin
// Use the function ToUnicode to convert the string back to Unicode
nameW := pdf.ToUnicode(name);
end else begin
end;
end;
There is no need to check the string format in Visual Basic, VB .Net or C# because a maybe required
conversion is automatically applied.
Return values:
If the function succeeds the return value is the string length of the name in characters excluding the
null-terminator. If the function fails the return value is a negative error code.
GetFieldOrientation
Syntax:
SI32 pdfGetFieldOrientation(
const PPDF* IPDF, // Instance pointer
UI32 AField)
// Field handle
The function returns the orientation of a field. The orientation is measured in degrees; it is always a
multiple of 90 or 0.
Return values:
If the function succeeds the return value is the field orientation in degrees. If the function fails the
return value is a negative error code, a value smaller -270.
GetFieldTextAlign
Syntax:
SI32 pdfGetFieldTextAlign(
const PPDF* IPDF, // Instance pointer
UI32 AField)
// Text field or button field handle
typedef enum
{
taLeft,
taCenter,
taRight,
taJustify
}TTextAlign;
The function returns the text alignment of a text field or button field.
Previous topic: GetFieldMapName, GetFieldName
Next topic: GetFieldTextColor, GetFieldToolTip, GetFieldType