Document Class | Page Class | Programming With Generator for COM/ActiveX

Using DynamicPDF™ Generator for COM/ActiveX is very straight forward. The object model is similar to the COM version of our component and can be learned quickly. There are three common objects that are used: Document; Page; and Page Element objects. The Document object represents a PDF document. The Page object represents a page in the PDF document. The Page Element objects represent elements, such as text or graphics, that can be placed on a page. The program flow for generating a basic PDF document is outlined below:

  1. Create a Document object.
  2. Add a Page object to the document.
  3. Add Page Element object to the page.
  4. Go back to step 2 and repeat until all pages are created.
  5. Output the PDF document to a file, Byte Array or directly to IIS's output stream.

Many useful page element classes are included with the product.

Page Elements can be reused on different pages using templates. For more information on templates see the Templates topic. There is also a Group object that can be used to logically group Page Elements together for reuse on multiple pages.

See Also 

Document Class | Page Class | Programming With Generator for COM/ActiveX