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

DynaPDF Manual - Page 722

Previous Page 721   Index   Next Page 723

Function Reference
Page 722 of 750
SortFieldsByIndex
Syntax:
LBOOL pdfSortFieldsByIndex(
const PPDF* IPDF) // Instance pointer
The function sorts the interactive form fields of a page by comparing the internal indices which can
be set for each field separately (see SetFieldIndex() for further information). The field's index
represents the tab order of a field.
If the field indices were not changed beforehand, sorting makes no sense.
To sort the fields of a page, open the page for editing beforehand with EditPage().
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
SortFieldsByName
Syntax:
LBOOL pdfSortFieldsByName(
const PPDF* IPDF) // Instance pointer
The function sorts the interactive form fields of a page in ascending order by field name. To sort the
fields of a page, open the page for editing beforehand with EditPage(). The order in which fields
appear in the page's field array specify the tab order of the fields.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
SquareAnnot
Syntax:
SI32 pdfSquareAnnot(
const PPDF* IPDF,
// Instance pointer
double PosX,
// y-coordinate of the annotation
double PosY,
// x-coordinate of the annotation
double Width,
// Width of the annotation
double Height,
// Height of the annotation
double LineWidth,
// Line width of the circle or ellipse
UI32 FillColor,
// Fill color or NO_COLOR. See description
UI32 StrokeColor,
// Stroke color or NO_COLOR. See description
TPDFColorSpace CS,
// Color space of the fill and stroke colors
const char* Author,
// Optional author
const char* Subject, // Optional subject
const char* Comment) // Optional comment
The function draws a square annotation on the current open page. If the parameters Width and
Height are equal the function draws a square, a rectangle otherwise. If the annotation should be
 

Previous topic: SkewCoords

Next topic: StampAnnot