Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

DynaPDF Manual - Page 368

Previous Page 367   Index   Next Page 369

Function Reference
Page 368 of 750
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.
 

Previous topic: GetFieldName

Next topic: GetFieldToolTip