BCL easyPDF SDK
easyPDF SDK Usermanual
PDF Creator Programming API  |  Download Free Trial  |  Contact Us to Purchase

ConvertBookmarks Property

Gets/Sets the flag to indicate whether to create Word styles based bookmarks.

Type:

Boolean

Remarks

This defaults to False. When you set this property to True, you also need to set the BookmarkDepth property to define the Word style to bookmark depth mapping string.

Example Usage

Set oPrinter = CreateObject("easyPDF.Printer.8")
Set oPrintJob = oPrinter.WordPrintJob

oPrintJob.ConvertBookmarks = True
' Make words or phrases with "Heading 1" style to
' become top level bookmarks, and words or phrases
' with "Heading 2" style to become level two bookmarks.
oPrintJob.BookmarkDepth = "Heading 1|1|Heading 2|2"

' Set Add-in execution timeout value to 2 minutes
oPrintJob.AddInTimeout = 2 * 60000

oPrintJob.PrintOut "C:\test\input.doc", "C:\test\output.pdf"