PDF Creation Overview

Creating PDFs using DynamicPDF Core Suite for .NET (previously the DynamicPDF Generator for .NET functionality) is straightforward, and the object model can be learned quickly. The three most commonly used classes when creating a new PDF are the Document, Page, and PageElement classes.

Generating a Document

Generating a basic PDF document generally has a flow as follows.

  1. Create a Document object.
  2. Create a Page object.
  3. Create and add PageElement objects to the page.
  4. Add the Page object to the document.
  5. Return to step 2 and repeat until all pages are created.
  6. Output the PDF document to a file, stream, or IIS's output stream.

PageElements

Many useful page element classes are included with DynamicPDF Core Suite and can be found in the PageElements and BarCoding namespaces. Custom Page Elements can be created by inheriting from the PageElement base class.

Refer to the Custom Page Elements topic for more information.

Also, note that page elements can be reused on different pages using templates. For more information on templates, refer to the Templates topic. There is also a Group object that can logically group Page Elements for reuse on multiple pages.

In this topic