DynamicPDF Merger for .NET Overview

The DynamicPDF Merger for .NET class library is designed to efficiently import, merge, form-fill and stamp pre-existing PDF documents. It integrates with DynamicPDF Generator for .NET and can import PDF documents from the file system or any System.IO.Stream object that supports reading. The resulting PDF document can then have content added to it using the Generator for .NET object model and can be output to any System.IO.Stream object, Web Form, byte array, or directly to a file on the file system. The assembly is written in C# and is accessible from any .NET language including C# and VB.NET. The generated PDF documents are 100% compatible with PDF version 1.3 thru 1.7 (ISO 32000-1) and comply with the PDF specification as published by Adobe.

DynamicPDF Merger Namespaces

The DynamicPDF Merger for .NET utilizes the below namespaces. Merger is offered in three editions: Standard, Professional or Enterprise. Please note that certain namespaces or some classes within certain namespaces are not included with every edition of Merger. For a complete list of features included with each edition please refer to our Feature Chart.

Programming

Using DynamicPDF Merger for .NET is very straight forward. The object model is intuitive and can be learned quickly. Many tasks can be performed with only a few lines of code and complex operations can be performed easily.

DynamicPDF Merger for .NET uses DynamicPDF Generator for .NET for output of the PDF document. The Merger for .NET classes primarily handle the import of the PDF documents while relying on Generator for .NET for the output. Merger for .NET provides four main objects that are used for importing PDF documents.

MergeDocument

Inherits from the ceTe.DynamicPDF.Document class and is used for Merging PDF documents together. It also has functionality for appending a PDF document or selecting pages from a PDF document.

ImportedPage

Inherits from the ceTe.DynamicPDF.Page class and is used to retrieve and add a single page to a document. Page elements can then be added to the page and will appear on top of the original page. This is useful for using a pre existing page from a PDF document as a template.

ImportedPageArea

Inherits from the ceTe.DynamicPDF.PageElement class and is used for placing data from an imported PDF document onto a page. This data can be scaled, rotated, and clipped. It can also be used to place multiple imported pages onto a single page.

ImportedPageData

Inherits from the ceTe.DynamicPDF.PageElement class and is used for placing data from an imported PDF document onto a page. This data can be scaled, rotated, and clipped. It can also be used to place multiple imported pages onto a single page. This page element defaults to the center of the page and can be offset.

A PdfDocument and PdfPage class are also included. The PdfDocument class represents a PDF document for import. It can be instantiated using the file path to a file or from a System.IO.Stream object. Once instantiated, it contains a collection of PdfPage objects and can be used to determine the number of pages in an imported document. It is accepted in the constructor of the MergeDocument class. The PdfPage class represents a page from a PDF document for import. It can be retrieved from a PdfDocument object and can be used to determine the size of an imported page. It is accepted in the constructor of the ImportedPage, ImportedPageArea and ImportedPageData classes.

PDF Form Filling

Merger for .NET also contains classes for modifying, filling, flattening and reading Acro Form Field data. See the Working With Acro Forms topic for details.

In this topic