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

DynaPDF Manual - Page 615

Previous Page 614   Index   Next Page 616

Function Reference
Page 615 of 750
If a destination should be used with multiple objects such as page links, create a go-to action instead
and add it to the bookmark with the function AddActionToObj(). The same action can then be added
to other objects.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
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.
 

Previous topic: SetBookmarkDest

Next topic: SetCharacterSpacing