Description
Adds a Bookmark to the EvenOddTemplate object and returns a New Bookmark object.
Syntax
Public Function AddBookmark( _
ByVal Text As String, _
ByVal X As Single, _
ByVal Y As Single _
) As Bookmark
Parameters
- Text
- The text of the bookmark.
- X
- The X Coordinate of the Bookmark.
- Y
- The Y Coordinate of the bookmark.
Return Type
A Bookmark object.
Example
[ASP - VBScript]
<% ' Create a PDF Document Dim MyDocument Set MyDocument = Server.CreateObject( "DynamicPDF.Document" ) Dim MyDocTemplate Set MyDocTemplate = MyDocument.SetEvenOddTemplate() MyDocTemplate.AddPageNumberingLabel "Page %%CP%%", 320, 40, 150, 20 ' Create three page objects Dim MyPage1 Set MyPage1 = MyDocument.AddPage() Dim MyPage2 Set MyPage2 = MyDocument.AddPage() Dim MyPage3 Set MyPage3 = MyDocument.AddPage() ' Add a top level Outline Dim MyParentOutline Set MyParentOutline = MyDocument.AddOutline( "Parent Outline" ) ' Add a bookmark for the pages Dim MyBookMark Set MyBookMark = MyDocTemplate.AddBookmark( "Top level bookmark", 10, 10 ) ' Parent Outline under which the Bookmark will appear MyBookMark.ParentOutline = MyParentOutline ' Draw the PDF document MyDocument.DrawToWeb Set MyDocument = Nothing %> |
See Also
EvenOddTemplate Object