See Also

MergeDocument Members  | ceTe.DynamicPDF.Merger Namespace

Requirements

Namespace: ceTe.DynamicPDF.Merger

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: ceTe.DynamicPDF (in ceTe.DynamicPDF.dll)

Language

Visual Basic

C#

Show All

Represents a document that can merge and append other documents.

For a list of all members of this type, see MergeDocument members.

Object Model












Inheritance Hierarchy

System.Object
   ceTe.DynamicPDF.Document
      ceTe.DynamicPDF.Merger.MergeDocument

Syntax

[Visual Basic]
Public Class MergeDocument    Inherits Document
[C#]
public class MergeDocument : Document

Remarks

This is the primary class used to merge or append entire PDF documents or certain pages from existing documents. The merge document can be output to any object derived from the Stream class that supports writing and can easily be integrated with ASP.NET to stream the document to Internet Information Server's HTTP output stream.

Example

The following example will first merge two entire PDF documents together, then will Append a selected page of a third PDF to the end.

[Visual Basic] 

Imports System
Imports ceTe.DynamicPDF
Imports ceTe.DynamicPDF.Merger

Module MyModule

    Sub Main()

        ' Create two PDF document objects
        Dim MyPdfA As PdfDocument = New PdfDocument("C:\ImportPDFA.pdf")
        Dim MyPdfB As PdfDocument = New PdfDocument("C:\ImportPDFB.pdf")

        ' Merge the two documents
        Dim MyDocument As MergeDocument = MergeDocument.Merge(MyPdfA, MyPdfB)

        ' Append an additional document
        Dim MyPdfC As PdfDocument = New PdfDocument("C:\MyDocumentC.pdf")
        MyDocument.Append(MyPdfC, 2, 1)

        ' Save the PDF
        MyDocument.Draw("C:\MyDocument.pdf")

    End Sub
End Module

[C#] 

using System; 
using ceTe.DynamicPDF; 
using ceTe.DynamicPDF.Merger; 
 
class MyClass 

    static void Main() 
    { 
        // Create two PDF document objects 
        PdfDocument pdfA = new PdfDocument( @"C:\ImportPDFA.pdf" ); 
        PdfDocument pdfB = new PdfDocument( @"C:\ImportPDFB.pdf" ); 
 
        // Merge the two documents 
        MergeDocument document = MergeDocument.Merge( pdfA, pdfB ); 
 
        // Append an additional document 
        PdfDocument pdfC = new PdfDocument( @"C:\MyDocumentC.pdf" ); 
        document.Append( pdfC, 2, 1); 
 
        // Save the PDF 
        document.Draw( @"C:\MyDocument.pdf" ); 
    } 
}

Licensing

This class is a DynamicPDF Merger Standard Edition feature (NOTE: Some properties require additional licensing and are noted accordingly). One of the following licenses is required for non-evaluation usage:

Requirements

Namespace: ceTe.DynamicPDF.Merger

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: ceTe.DynamicPDF (in ceTe.DynamicPDF.dll)

See Also

MergeDocument Members  | ceTe.DynamicPDF.Merger Namespace

 

 


© Copyright 2007, ceTe Software