DynamicPDF Dependable Developer Components
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 Blog Posts

DynamicPDF PrintManager for .NET Version 2 BETA Release

.NET PDF Viewer - Beta Release

Java Release of DynamicPDF Merger and Generator Version 7

Java PDF Creation and Merging - Version 7 BETA Release

Customer Quotes

You guys are great! I want to steal some of your customer support reps to do customer support for my company!

-- Eric Andersen, Xavus Web Solutions

Site Map |  Contact Us |  Legal Stuff Logo © 1997-2013 ceTe Software