Description
Adds a Bookmark object to the TransparencyGroup 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]
<!-- METADATA TYPE="typelib" UUID="{DF9225FE-94A4-490D-8CAD-E8366CE621D3}"--> <% ' Create a PDF Document Dim MyDocument Set MyDocument = Server.CreateObject( "DynamicPDF.Document" ) MyDocument.InitialZoom = DPDF_Zoom_FitWidth ' Create a Page and add it to the document Dim MyPage Set MyPage = MyDocument.AddPage() ' Create an area group to which elements will be added Dim MyGroup Set MyGroup = MyPage.AddTransparencyGroup( 1 ) ' Add page elements to the group Dim MyLabel Set MyLabel = MyGroup.AddLabel( "This is a Bookmark target", 400, 300, 200, 30 ) Dim MyBookmark Set MyBookmark = MyGroup.AddBookmark( "This is a Page Bookmark", 400, 300 ) MyDocument.DrawToWeb Set MyPage = Nothing Set MyDocument = Nothing %>
|
See Also
TransparencyGroup Object