Set the option to convert bookmark for PDF files when converting to RTF files.
Sub ConvertBookmarks(newVal As Long)
newVal
One of optBkmk values:
OPT_BKMK_NONE = 0 - no bookmarks in RTF,
OPT_BKMK_PAGE_START = 1 - put a bookmark in the beginning of every page (Default),
OPT_BKMK_PDF_EXTRACT = 2 - extract bookmarks from PDF
Please refer to the list of return exceptions.
oConverter = CreateObject("EasyConverter.PDF2Word.3")
' Set the option to convert bookmark for PDF files when converting to RTF files
oConverter.OcrOption = OPT_BKMK_PDF_EXTRACT
Call oConverter.ConvertToWord(inFileName, outFileName)