Skip to main content

InputPdfPageList

Version: 4.0

cete.dynamicpdf.printing.inputpdfpagelist

InputPdfPageList​

Represents the list of pdf pages to be added to the print job.

public class InputPdfPageList : IDisposable, IEnumerable, IEnumerable&ltInputPdfPage>
Public Class InputPdfPageList
Implements IDisposable, IEnumerable, IEnumerable(Of InputPdfPage)

Inheritance: Object → InputPdfPageList

Implements: IDisposable, IEnumerable, IEnumerable&ltInputPdfPage>

Licensing Info​

This class is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:

Examples​

The following examples creates a print job, adds PDF pages to print job and prints the job.

Imports System
Imports ceTe.DynamicPDF.Printing

Module MyModule

Sub Main()

' Create a print job
Dim MyPrintJob As PrintJob = New PrintJob("PrinterName")

' Create an InputPdf object to hold the source PDF
Dim MyInputPdf As InputPdf = New InputPdf("C:\MyDocument.pdf")

' Get a list of the input PDF's pages
Dim MyInputPdfPages As InputPdfPageList = MyInputPdf.Pages

' Add pages to the print job
MyPrintJob.Pages.Add(MyInputPdfPages(0)) ' First Page
MyPrintJob.Pages.Add(MyInputPdfPages(3)) ' Fourth Page

' Print the job
MyPrintJob.Print()
End Sub
End Module
using System;
using ceTe.DynamicPDF.Printing;

class MyClass
{
static void Main()
{
// Create a print job
PrintJob printJob = new PrintJob("PrinterName");

// Create an InputPdf object to hold the source PDF
InputPdf inputPdf = new InputPdf(@"C:\MyDocument.pdf");

// Get a list of the input PDF's pages
InputPdfPageList inputPdfPages = inputPdf.Pages;

// Add pages to the print job
printJob.Pages.Add(inputPdfPages[0]); // First Page
printJob.Pages.Add(inputPdfPages[3]); // Fourth Page

// Print the job
printJob.Print();
}
}

Properties​

Count​

Gets the number of pages in the list.

public int Count { get; }
Public Property Count As Int32

Property Value​

Int32

Licensing Info​

This property is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:

Item[Int32]​

Gets the InputPdfPage object that represents the PDF page.

public InputPdfPage this[int index] { get; }
Public Property Item(index As Integer) As InputPdfPage

Property Value​

InputPdfPage

Licensing Info​

This property is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:

Methods​

Dispose()​

Clean up any resources being used.

public void Dispose()
Sub Dispose()

Licensing Info​

This method is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:

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​

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 DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:

GetEnumerator()​

Returns an enumerator that iterates through a collection.

public IEnumerator&ltInputPdfPage> GetEnumerator()
Function GetEnumerator() As IEnumerator(Of InputPdfPage)

Returns​

enumerator to the InputPdfPageList

Licensing Info​

This method is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:

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 DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:

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 DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:

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 DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:

See Also​

ceTe.DynamicPDF.Printing