BookmarkStyle

<< Click to Display Table of Contents >>

Navigation:  PDF Export >

BookmarkStyle

Previous pageReturn to chapter overviewNext page

[VPE Professional Edition and above]

Sets / returns the current bookmark style.

property BookmarkStyle [integer] VPE.BookmarkStyle

read / write; runtime only

Possible values:

any combination of the following flags, the values can be combined by adding there values:

ActiveX / VCL

Value

Enum

Comment

VBOOKMARK_STYLE_NONE

0

None

[default]

VBOOKMARK_STYLE_BOLD

1

Bold

PDF 1.4 or higher

VBOOKMARK_STYLE_ITALIC

2

Italic

PDF 1.4 or higher

VBOOKMARK_STYLE_OPEN

4

Open

 

Default:

VBOOKMARK_STYLE_NONE

Example:

ActiveX / VCL:

// Bold and Italic styles will only work with PDF 1.4, activate it:

VPE.PDFVersion = VPE_PDF_ACROBAT_5

 

// Change the bookmark style to bold and italic:

VPE.BookmarkStyle = VBOOKMARK_STYLE_BOLD + VBOOKMARK_STYLE_ITALIC

 

.NET:

// Bold and Italic styles will only work with PDF 1.4, activate it:

VPE.PDFVersion = PDFVersion.Acrobat5

 

// Change the bookmark style to bold and italic:

VPE.BookmarkStyle = BookmarkStyle.Bold + BookmarkStyle.Italic