DynaPDF Manual - Page 678

Previous Page 677   Index   Next Page 679

Function Reference
Page 678 of 839
Remarks:
When changing the border style of a Free Text annotation DynaPDF must rebuild the appearance
stream of the annotation. The text position can slightly change especially if the border width was
changed too. See also FreeTextAnnot().
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
SetAnnotBorderWidth
Syntax:
LBOOL pdfSetAnnotBorderWidth(
const PPDF* IPDF, // Instance pointer
UI32 Handle,
// Annotation handle
double LineWidth) // Line width of the border or zero
The function sets or changes the border width of an annotation. Although the line width can be set
to any positive floating point number, it should be set to full integer values between 0 through 12.
If no border should be drawn set the line width to zero.
Remarks:
When changing the border width of a Free Text annotation DynaPDF must rebuild the appearance
stream of the annotation. The text position depends on the line width of the border. Changing the
border width changes also the position of the text. See also FreeTextAnnot().
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
 

Previous topic: SetAnnotBorderEffect, SetAnnotBorderStyle

Next topic: SetAnnotColor, SetAnnotFlags