See Also

ImportedPageContents 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 the contents used by an the ImportedPageData class.

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

Inheritance Hierarchy

System.Object
   ceTe.DynamicPDF.Resource
      ceTe.DynamicPDF.Merger.ImportedPageContents

Syntax

[Visual Basic]
Public Class ImportedPageContents    Inherits Resource
[C#]
public class ImportedPageContents : Resource

Remarks

This class can be used to reuse a pages contents in multiple ImportedPageData objects. Doing so will reduce the size of the output PDF because the contents will only appears in the output document once.

Example

This example shows you how to import one page of an existing PDF using this class.

[Visual Basic] 

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

Module MyModule

    Sub Main()

        ' Create a PDF Document
        Dim MyDocument As Document = New Document

        ' Create a Page and add it to the document
        Dim MyPage As Page = New Page
        MyDocument.Pages.Add(MyPage)

        ' Create an ImportedPageContents object
        Dim MyContents As ImportedPageContents = _
            New ImportedPageContents( "C:\ImportPDF.pdf", 2 )

        ' Create an ImportedPage and add it to the document
        Dim MyData As ImportedPageData = New ImportedPageData( _
            MyContents, -200, -100, 0.24F )
        MyPage.Elements.Add(MyData)

        ' 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 a PDF Document 
        Document document = new Document(); 
             
        // Create a Page and add it to the document 
        Page page = new Page(); 
        document.Pages.Add( page ); 
 
        // Create an ImportedPageContents object 
        ImportedPageContents contents = 
            new ImportedPageContents( @"C:\ImportPDF.pdf", 2 ); 
 
        // Create an ImportedPageData and add it to the page 
        ImportedPageData data = new ImportedPageData(  
            contents, -200, -100, 0.24f ); 
        page.Elements.Add( data ); 
 
        // Save the PDF 
        document.Draw( @"C:\MyDocument.pdf" ); 
    } 
}

Licensing

This class is a DynamicPDF Merger Professional 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

ImportedPageContents Members  | ceTe.DynamicPDF.Merger Namespace

 

 


© Copyright 2006, ceTe Software