DynaPDF Manual - Page 714
Previous Page 713 Index Next Page 715
Function Reference
Page 714 of 860
SetBookmarkStyle
Syntax:
LBOOL pdfSetBookmarkStyle(
const PPDF* IPDF, // Instance pointer
SI32 ABmk,
// Bookmark handle
TFStyle Style,
// Style beeing used to display the text
UI32 RGBColor)
// Color of the bookmark
typedef SI32 TFStyle;
#define SI32 fsNone
= 0; // Default
#define SI32 fsItalic
= 1; // Italic
#define SI32 fsBold
= 2; // Bold
#define SI32 fsUnderlined = 4; // Unsupported
#define SI32 fsStriked
= 8; // Unsupported
Since Acrobat 5 bookmarks support a user defined color and the text style can be changed to italic,
bold and so on. Older versions of Adobe's Acrobat ignore the style information. Bookmarks support
RGB colors only. The parameter Style is a bit mask, the flags can be combined, e.g. to create a
bolditalic bookmark.
Example:
pdfSetBookmarkStyle(pdf, bmk, fsBold | fsItalic, PDF_RGB(45, 144, 54));
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
SetBorderStyle
Syntax:
LBOOL pdfSetBorderStyle(
const PPDF* IPDF,
// Instance pointer
TBorderStyle Style) // Border style
typedef enum
{
bsSolid
= 0, // Solid border
bsBevelled
= 1, // Bevelled border
bsInset
= 2, // Inset border
bsUnderline
= 3, // Underline only
bsDashed
= 4, // Dashed border
bsUserDefined = 5
// Not allowed
}TBorderStyle;
The function set the global border style which is used for newly created form fields. It is also
possible to change the style of a specific form field, see SetFieldBorderStyle() for further information.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
Previous topic: SetBookmarkDest
Next topic: SetCharacterSpacing, SetCheckBoxChar