|
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: |
|
|
Copyright © ByteScout, 2003-2010. Privacy Statement
Microsoft®, Windows®, Windows 2000®, Windows Server®, Windows Vista®, Internet Explorer®, .NET Framework®, ActiveX®, Visual Basic®, Visual C#®, ASP®, ASP.NET®, Excel®, PowerPoint®, are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries. Adobe®, Flash® and Acrobat® are registered trademarks of Adobe Systems, Incorporated. Mozilla®, Firefox® and the Mozilla and Firefox Logos are registered trademarks of the Mozilla Foundation. Other product names or brandnames used herein are for identification purposes only and might be trademarks or registered trademarks of their respective companies. We disclaim any and all rights to those marks. |
|