cete.dynamicpdf.merger.importedpage
ImportedPage
- Namespace: ceTe.DynamicPDF.Merger
- Assemblies: DynamicPDF.CoreSuite.dll
Represents an imported page.
public class ImportedPage : Page
Public Class ImportedPage
Inherits Page
Inheritance: Object → Page → ImportedPage
Licensing Info
This class is a DynamicPDF Core Suite Essentials feature. One of the following is required for non-evaluation usage:
- Any active DynamicPDF Subscription (Essentials, Professional, Professional Plus or Ultimate).
- A DynamicPDF Core Suite for .NET v12.X Essentials license.
- It can also be used for free with a public link back to www.dynamicpdf.com and with the DynamicPDF Essentials message displaying on the bottom of each page.
Examples
This example shows you how to import one page of an existing PDF and save it as a separate PDF.
Imports System
Imports ceTe.DynamicPDF
Imports ceTe.DynamicPDF.Merger
Module MyModule Sub Main() ' Create a PDF Document Dim MyDocument As Document = New Document() ' Create an ImportedPage and add it to the document Dim MyPage As ImportedPage = New ImportedPage("C:\ImportPDF.pdf", 2, 50) MyDocument.Pages.Add( MyPage ) ' Save the PDF MyDocument.Draw("C:\MyDocument.pdf") End Sub
End Module
using System;
using ceTe.DynamicPDF;
using ceTe.DynamicPDF.Merger;
public class Example
{
public static void CreatePDF(string outputPath, string inputPath, int pageNumber, float Margins)
{
// Create a PDF Document
Document document = new Document();
// Create an ImportedPage and add it to the document
ImportedPage page = new ImportedPage(inputPath, pageNumber, Margins);
document.Pages.Add(page);
// Save the PDF
document.Draw(outputPath);
}
}
Remarks
This class can be used to pull a single selected page from an existing PDF document.
Constructors
ImportedPage(Byte[], Int32, Single?)
Initializes a new instance of the ImportedPage class.
public ImportedPage(Byte[] pdfData, int pageNumber, [float? margins = null])
Public Sub New (pdfData As Byte(), pageNumber As Integer, Optional margins As Single? = null)
Parameters
- pdfData: Byte[]
Byte array of the PDF document to import.
- pageNumber: Int32
Page number to import.
- margins: Single?
Margins of the new page. Overrides the default margins.
Licensing Info
This constructor is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
ImportedPage(PdfPage)
Initializes a new instance of the ImportedPage class.
public ImportedPage(PdfPage pdfPage)
Public Sub New (pdfPage As PdfPage)
Parameters
- pdfPage: PdfPage
PdfPage object to import.
Licensing Info
This constructor is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
ImportedPage(PdfPage, Single)
Initializes a new instance of the ImportedPage class.
public ImportedPage(PdfPage pdfPage, float margins)
Public Sub New (pdfPage As PdfPage, margins As Single)
Parameters
- pdfPage: PdfPage
PdfPage object to import.
- margins: Single
Margins of the new page. Overrides the default margins.
Licensing Info
This constructor is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
ImportedPage(String, Int32)
Initializes a new instance of the ImportedPage class.
public ImportedPage(string filePath, int pageNumber)
Public Sub New (filePath As String, pageNumber As Integer)
Parameters
- filePath: String
Physical file path of the PDF document to import.
- pageNumber: Int32
Page number to import.
Licensing Info
This constructor is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
ImportedPage(String, Int32, Single)
Initializes a new instance of the ImportedPage class.
public ImportedPage(string filePath, int pageNumber, float margins)
Public Sub New (filePath As String, pageNumber As Integer, margins As Single)
Parameters
- filePath: String
Physical file path of the PDF document to import.
- pageNumber: Int32
Page number to import.
- margins: Single
Margins of the new page. Overrides the default margins.
Licensing Info
This constructor is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
Properties
ApplyDocumentTemplate
Gets or sets a value indicating if this page uses the documents template. (Inherited from Page)
public bool ApplyDocumentTemplate { get; set; }
Public Property ApplyDocumentTemplate As Boolean
Property Value
Licensing Info
This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
ApplySectionTemplate
Gets or sets a value indicating if this page uses the sections template. (Inherited from Page)
public bool ApplySectionTemplate { get; set; }
Public Property ApplySectionTemplate As Boolean
Property Value
Licensing Info
This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
BackgroundElements
Gets a collection of page elements to be drawn as a background on the page.
public Group BackgroundElements { get; }
Public Property BackgroundElements As Group
Property Value
Licensing Info
This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
Remarks
Page elements placed in this collection will appear below the imported PDF data. Use the Elements property to place page elements on top of the imported PDF data.
Dimensions
Gets or sets the dimensions of the page. (Inherited from Page)
public PageDimensions Dimensions { get; set; }
Public Property Dimensions As PageDimensions
Property Value
Licensing Info
This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
Elements
Gets a collection of page elements. (Inherited from Page)
public Group Elements { get; }
Public Property Elements As Group
Property Value
Licensing Info
This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
ImportAllOtherData
Gets or sets a value specifying whether or not to import all data except annotations and form fields.
public bool ImportAllOtherData { get; set; }
Public Property ImportAllOtherData As Boolean
Property Value
Licensing Info
This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
ImportAnnotations
Gets or sets a value specifying whether or not to import the annotations.
public bool ImportAnnotations { get; set; }
Public Property ImportAnnotations As Boolean
Property Value
Licensing Info
This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
ImportFormFields
Gets or sets a value specifying whether or not to import the form fields.
public bool ImportFormFields { get; set; }
Public Property ImportFormFields As Boolean
Property Value
Licensing Info
This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
LogicalStructure
Gets or sets a value specifying whether or not to import the logical structures.
public bool LogicalStructure { get; set; }
Public Property LogicalStructure As Boolean
Property Value
Licensing Info
This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
ReaderEvents
Gets the reader events of the page. (Inherited from Page)
public PageReaderEvents ReaderEvents { get; }
Public Property ReaderEvents As PageReaderEvents
Property Value
Licensing Info
This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
Rotate
Gets or sets the rotation of the page. (Inherited from Page)
public int Rotate { get; set; }
Public Property Rotate As Int32
Property Value
Licensing Info
This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
TabOrder
Gets or Sets the tab order for the page. (Inherited from Page)
public TabOrder TabOrder { get; set; }
Public Property TabOrder As TabOrder
Property Value
Licensing Info
This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
UnderlyingElements
Gets a collection of page elements that will appear beneath (behind) the page elements from the Elements property. (Inherited from Page)
public Group UnderlyingElements { get; }
Public Property UnderlyingElements As Group
Property Value
Licensing Info
This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
Methods
Equals(Object)
Determines whether the specified Object is equal to the current Object . (Inherited from Object)
public bool Equals(Object obj)
Function Equals(obj As Object) As Boolean
Parameters
- obj: Object
The Object to compare with the current Object .
Returns
true if the specified Object is equal to the current Object ; otherwise, false.
Licensing Info
This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
GetHashCode()
Serves as a hash function for a particular type. (Inherited from Object)
public int GetHashCode()
Function GetHashCode() As Integer
Returns
A hash code for the current Object .
Licensing Info
This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
GetType()
Gets the Type of the current instance. (Inherited from Object)
public Type GetType()
Function GetType() As Type
Returns
The Type instance that represents the exact runtime type of the current instance.
Licensing Info
This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
ToString()
Returns a String that represents the current Object . (Inherited from Object)
public string ToString()
Function ToString() As String
Returns
A String that represents the current Object .
Licensing Info
This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.