Description

Represents a PDF Document.

For a list of all members defined in this module, see Document members.

Object Model















Remarks

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.

Example

[ASP - VBScript] 

<!-- 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 
%> 
 

See Also

Document Members