PDFDoc Scout |
PDFDoc Scout library - Sample
How to add outlines (bookmarks) with
sub-topics bookmarks in PDF document using PDFDoc Scout
library
Download the source code of this example (VBScript)
here: pdfdocscout_outlines.zip This example demonstrates how to generate bookmarks tree in PDF document using PDFDoc Scout library Generated PDF document (screenshot):
or view generated PDF document online: pdfdocscout_Outlines.pdf Source code: Set PDFDoc = CreateObject("PDFDocScout.PDFDocument")
' create PDFDoc object PDFDoc.OutputFileName = "Outlines.pdf" ' set
output filename for PDF document PDFDoc.ViewerOptions_PageMode = 1 ' 1=pmUseOutlines so PDF document will be opened with visible outlines tree by default PDFDoc.BeginDocument ' starts PDF document generation ' add root outline node PDFDoc.Page.AddText "This is a main page for this demo", 100, 10, 0 For i = 1 to 10 ' add text to a page ' create outline for this page ' now we add 5 sub-topics on the same page and then
create sub-outlines for each sub-topic ' add text for sub-topic ' add sub-outline for sub-topic Next PDFDoc.EndDocument ' close pdf document generation ' disconnect from library Download the source code of this example (VBScript) here:
pdfdocscout_outlines.zip
"Hello, World!" quick start step-by-step tutorials: |
|
|
||