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

ConvertBookmarks Property

Determines bookmark conversion behavior when converting Word documents to PDF.

prnBookmarks ConvertBookmarks { get; set; }

Property ConvertBookmarks As prnBookmarks

def getConvertBookmarks(self)
def setConvertBookmarks(self, value)

prnBookmarks getConvertBookmarks() throws PrinterException
void setConvertBookmarks(prnBookmarks value) throws PrinterException

function getConvertBookmarks() 
function setConvertBookmarks($value) 

BclPrnResult GetConvertBookmarks(BclPrinter* pPrinter,
                                 BclPrnBookmarks* poutVal);
BclPrnResult SetConvertBookmarks(BclPrinter* pPrinter,
                                 BclPrnBookmarks newVal);
Property ConvertBookmarks As prnBookmarks




The default selection is PRN_BOOKMARKS_NONE, meaning there will be no bookmarks in the PDF.

Use PRN_BOOKMARKS_FROM_HEADINGS to have PDF bookmarks based on Word headings, and use PRN_BOOKMARKS_FROM_BOOKMARKS to choose PDF bookmarks based on Word bookmarks.

Example Usage in VBScript

Set oPrinter = CreateObject("easyPDF.Printer.8")
Set oPrintJob = oPrinter.WordPrintJobEx
oPrintJob.ConvertBookmarks = PRN_BOOKMARKS_FROM_HEADINGS
oPrintJob.PrintOut "C:\test\input.doc", "C:\test\output.pdf"

Example Usage in VB.NET

Dim oPrinter As Printer = CreateObject("easyPDF.Printer.8")
Dim oPrintJob As WordPrintJobEx = oPrinter.WordPrintJobEx
oPrintJob.ConvertBookmarks = prnBookmarks.PRN_BOOKMARKS_FROM_HEADINGS
oPrintJob.PrintOut "C:\test\input.doc", "C:\test\output.pdf"

Example Usage in C#

Printer oPrinter = new Printer();
WordPrintJobEx oPrintJob = oPrinter.WordPrintJobEx;
oPrintJob.ConvertBookmarks = prnBookmarks.PRN_BOOKMARKS_FROM_HEADINGS;
oPrintJob.PrintOut(@"C:\test\input.doc", @"C:\test\output.pdf");