See Also

MergeOptions 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 options for merging PDF documents.

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

Object Model


Inheritance Hierarchy

System.Object
   ceTe.DynamicPDF.Merger.MergeOptions

Syntax

[Visual Basic]
Public Class MergeOptions
[C#]
public class MergeOptions

Remarks

Currently the only merge option is whether or not to preserve the form fields on the PDF being merged in. Specifying true will keep the form fields on the merged PDF where specifying false will remove the form fields from the PDF.

Example

The following example shows how to enter text in a text field specifying the MergeOptions.

[Visual Basic] 

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

Module MyModule

    Sub Main()

        ' Create a MergeOptions object to import the AcroForm
        Dim options As MergeOptions = New MergeOptions(True)

        ' Create a merge document with your PDF containing form fields
        Dim MyDocument As MergeDocument = New MergeDocument("C:\ImportPDF.pdf", options)

        ' Set the value of the text field equal to the string you want to appear
        Dim text As TextField = MyDocument.Form.Fields("Text3")
        text.Value = "This is my text field"

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

    End Sub
End Module

[C#] 

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

    static void Main() 
    { 
        // Create a MergeOptions object to import the AcroForm 
        MergeOptions options = new MergeOptions( true ); 
 
        // Create a merge document with your PDF containing form fields 
        MergeDocument document = new MergeDocument( @"C:\ImportPDF.pdf", options ); 
 
        // Set the value of the text field equal to the string you want to appear 
        TextField text = (TextField)document.Form.Fields["Text3"]; 
        text.Value = "This is my text field"; 
 
        // Save the PDF 
        document.Draw( @"C:\MyDocument.pdf" ); 
    } 
}

Licensing

This class is a DynamicPDF Merger Standard Edition feature. 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

MergeOptions Members  | ceTe.DynamicPDF.Merger Namespace

 

 


© Copyright 2007, ceTe Software