Quick Navigation

DynamicPDF™ Generator Classic - Examples

DynamicPDF™ Generator Classic Program Flow Example

The basic program flow for a script using DynamicPDF™ Generator Classic is as follows:

  1. Create a document object.
  2. Add a page to the document.
  3. Add page elements (i.e. TextArea) to the page.
  4. Repeat steps 2 and 3 untill all pages are complete.
  5. Generate (Draw) the PDF document.

    ASP Example Script:
    <%
    Option Explicit
    
    Dim objDoc, objPage
    
    'Create Document object and set properties
    Set objDoc = Server.CreateObject("DPDF_Gen.Document")
    
    'Add a page to the document
    Set objPage = objDoc.AddPage()
    'Add a textarea to the page
    objPage.AddTextArea "Hello World, Page 1", 0, 0, 504, 54
    
    'Add a second page to the document
    Set objPage = objDoc.AddPage()
    'Add a textarea to the second page
    objPage.AddTextArea "Hello World, Page 2", 0, 0, 504, 54
    
    'Draw the Document to the Browser
    objDoc.DrawToASP
    
    'Object cleanup
    Set objPage = Nothing
    Set objDoc = Nothing
    %>
     

Latest News

TechEd Orlando 2008

Come by and visit ceTe Software at Booth #1324 at TechEd 2008, June 2-6.

DynamicPDF v5 for .NET Beta

ceTe Software is pleased to announce the Beta release of DynamicPDF v5.0 for .NET. Please click here to download.

Customer Quotes

Thanks for your patience and great responses. I have looked at about five other solutions and have been most satisfied with your product.

-- David Johnson, Human Arc

Site Map   |   Contact Us   |   Legal Stuff © 2008 ceTe Software