Represents a PDF document.

This is the primary class used to generate the dynamic PDF document. It represents a single PDF document and is made up of pages and outlines. The document can have a HighSecurity object associated or a StandardSecurity object associated with it to control document security and encryption. The document can be output to a byte array object or file and can easily be integrated with ASP to stream the document to Internet Information Server's HTTP output.
| Implemented Interface | Description |
|---|---|
| Object |
| ASP - VBScript | Copy Code |
|---|---|
<!-- METADATA TYPE="typelib" UUID="{DF9225FE-94A4-490D-8CAD-E8366CE621D3}"-->
<%
' Create a PDF Document
Dim MyDocument
Set MyDocument = Server.CreateObject( "DynamicPDF.Document" )
' Create a Page and add it to the document
Dim MyPage
Set MyPage = MyDocument.AddPage()
' Add a label to the page
Dim MyLabel
Set MyLabel = MyPage.AddLabel( "My PDF Document", 0, 0, 512, 40 )
MyLabel.Font = DPDF_Font_Helvetica
MyLabel.FontSize = 30
MyLabel.Align = DPDF_Align_Center
' Draw the PDF document
MyDocument.DrawToWeb
Set MyPage = Nothing
Set MyDocument = Nothing
%> | |