DynaPDF Manual - Page 810
Previous Page 809 Index Next Page 811
Function Reference
Page 810 of 839
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
drawn without a border, set the parameter LineWidth zo zero or StrokeColor to the special constant
NO_COLOR.
If the interior should be transparent set FillColor to the special constant NO_COLOR.
Although the line width can be set to any positive floating point value, Adobe’s Acrobat or Reader
restrict the line width to 0 through 12 units. The line width should be restricted in the same way to
avoid issues in Adobe viewer products.
Remarks:
This function is implemented in an Ansi and Unicode compatible variant. Ansi strings are
interpreted in the Windows code page 1252.
Return values:
If the function succeeds the return value is the annotation handle, a value greater or equal zero. If
the function fails, the return value is a negative error code.
StampAnnot
Syntax:
LBOOL pdfStampAnnot(
const PPDF* IPDF,
// Instance pointer
TRubberStamp SubType, // Stamp type
double PosX,
// x-coordinate
double PosY,
// y-coordinate
double Width,
// Stamp width
double Height,
// Stamp height
const char* Author,
// Optional
const char* Subject,
// Optional
const char* Comment)
// Optional
typedef enum
{
rsApproved,
rsAsIs,
rsConfidential,
rsDepartmental,
rsDraft,
rsExperimental,
rsExpired,
rsFinal,
rsForComment,
rsForPublicRelease,
rsNotApproved,
rsNotForPublicRelease,
rsSold,
rsTopSecret,
rsUserDefined // See below
}TRubberStamp;
Previous topic: SortFieldsByIndex, SortFieldsByName, SquareAnnot
Next topic: StrokePath