See Also

ImportedPageData 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 Page Element containing the data of an imported page from a PDF document.

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

Object Model


Inheritance Hierarchy

System.Object
   ceTe.DynamicPDF.PageElement
      ceTe.DynamicPDF.Merger.ImportedPageData

Syntax

[Visual Basic]
Public Class ImportedPageData    Inherits PageElement
[C#]
public class ImportedPageData : PageElement

Remarks

This class can be used to pull a single selected page from an existing PDF document. You can scale it or rotate it and you can place it on an another page.

Example

This example shows you how to import one page of an existing PDF, scale that page and then place it on another blank page.

[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 ImportedPage and add it to the document
        Dim MyData As ImportedPageData = New ImportedPageData( _
            "C:\ImportPDF.pdf", 2, -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 ImportedPageData and add it to the page 
        ImportedPageData data = new ImportedPageData(  
            @"C:\ImportPDF.pdf", 2, -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

ImportedPageData Members  | ceTe.DynamicPDF.Merger Namespace

 

 


© Copyright 2007, ceTe Software