Description
Adds a Bookmark to the AreaGroup 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" ) ' 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" ) ' Create a Area Group on the first page Dim MyAreaGroup Set MyAreaGroup = MyPage3.AddAreaGroup( 400, 300 ) ' Add a bookmark for the third page Dim MyBookMark Set MyBookMark = MyAreaGroup.AddBookmark( "Top level bookmark to page 1", 100, 100 ) ' Parent Outline under which the Bookmark will appear MyBookMark.ParentOutline = MyParentOutline ' Draw the PDF document MyDocument.DrawToWeb Set MyPage1 = Nothing Set MyPage2 = Nothing Set MyPage3 = Nothing Set MyDocument = Nothing %>
|
See Also
AreaGroup Object