DynaPDF Manual - Page 809

Previous Page 808   Index   Next Page 810

Function Reference
Page 809 of 839
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
 

Previous topic: SkewCoords

Next topic: StampAnnot