cete.dynamicpdf.printing.printjobpagelist
PrintJobPageList
- Namespace: ceTe.DynamicPDF.Printing
- Assemblies: DynamicPDF.Printing.dll
Represents a list of pdf pages added to the print job.
public class PrintJobPageList : IEnumerable, IEnumerable<PrintJobPage>
Public Class PrintJobPageList
Implements IEnumerable, IEnumerable(Of PrintJobPage)
Inheritance: Object → PrintJobPageList
Implements: IEnumerable, IEnumerable<PrintJobPage>
Licensing Info
This class is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF PrintManager selected.
- A DynamicPDF PrintManager for .NET v4.X Developer license.
Examples
The following examples creates a print job, sets print options for the last page and prints the job.
Imports System
Imports ceTe.DynamicPDF.Printing
Module MyModule
Sub Main()
' Create a print job containing the first four pages of the PDF
Dim MyPrintJob As PrintJob = New PrintJob("PrinterName", "C:\MyDocument.pdf", 1, 4)
' Get the list of pages in the print job
Dim MyPrintJobPageList As PrintJobPageList = MyPrintJob.Pages
' Get the last page and set its print options
Dim MyPrintJobPage As PrintJobPage = MyPrintJobPageList(MyPrintJobPageList.Count - 1)
MyPrintJobPage.PrintOptions.Inherit = False
MyPrintJobPage.PrintOptions.HorizontalAlign = HorizontalAlign.Right
MyPrintJobPage.PrintOptions.Orientation.Type = OrientationType.Landscape
MyPrintJobPage.PrintOptions.PrintAnnotations = True
' Print the job
MyPrintJob.Print()
End Sub
End Module
using System;
using ceTe.DynamicPDF.Printing;
class MyClass
{
static void Main()
{
// Create a print job containing the first four pages of the PDF
PrintJob printJob = new PrintJob("PrinterName", @"C:\MyDocument.pdf", 1, 4);
// Get the list of pages in the print job
PrintJobPageList printjobPageList = printJob.Pages;
// Get the last page and set its print options
PrintJobPage printJobPage = printjobPageList[printjobPageList.Count - 1];
printJobPage.PrintOptions.Inherit = false;
printJobPage.PrintOptions.HorizontalAlign = HorizontalAlign.Right;
printJobPage.PrintOptions.Orientation.Type = OrientationType.Landscape;
printJobPage.PrintOptions.PrintAnnotations = true;
// Print the job
printJob.Print();
}
}
Properties
Count
Gets the value indicating the number of pages in a list.
public int Count { get; }
Public Property Count As Int32
Property Value
Licensing Info
This property is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF PrintManager selected.
- A DynamicPDF PrintManager for .NET v4.X Developer license.
Item[Int32]
Gets a PrintJobPage object by index.
public PrintJobPage this[int index] { get; }
Public Property Item(index As Integer) As PrintJobPage
Property Value
Licensing Info
This property is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF PrintManager selected.
- A DynamicPDF PrintManager for .NET v4.X Developer license.
Methods
Add(InputPdf)
Add all the pages of a PDF to the list.
public void Add(InputPdf pdf)
Sub Add(pdf As InputPdf)
Parameters
- pdf: InputPdf
The InputPdf containing the pages to be added to the print job.
Licensing Info
This method is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF PrintManager selected.
- A DynamicPDF PrintManager for .NET v4.X Developer license.
Add(InputPdf, Int32, Int32)
Add pdf to the list.
public void Add(InputPdf pdf, int startPage, int pageCount)
Sub Add(pdf As InputPdf, startPage As Integer, pageCount As Integer)
Parameters
- pdf: InputPdf
The InputPdf containing the pages to be added to the print job.
- startPage: Int32
The first page from the InputPdf to be added to the print job.
- pageCount: Int32
The number of pages to be added to the print job.
Licensing Info
This method is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF PrintManager selected.
- A DynamicPDF PrintManager for .NET v4.X Developer license.
Add(InputPdf, Rectangle, Int32, Int32)
Add a pdf document .
public void Add(InputPdf pdf, Rectangle rect, int startPage, int pageCount)
Sub Add(pdf As InputPdf, rect As Rectangle, startPage As Integer, pageCount As Integer)
Parameters
- pdf: InputPdf
The InputPdf containing the pages to be added to the print job.
- rect: Rectangle
The rect represents the partial page to be printed.
- startPage: Int32
The first page from the PDF to be added to the print job.
- pageCount: Int32
The number of pages to be added to the print job.
Licensing Info
This method is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF PrintManager selected.
- A DynamicPDF PrintManager for .NET v4.X Developer license.
Add(InputPdfPage)
Add pdf page PrintJobPage .
public PrintJobPage Add(InputPdfPage page)
Function Add(page As InputPdfPage) As PrintJobPage
Parameters
- page: InputPdfPage
The InputPdfPage object to be added to the print job.
Returns
An PrintJobPage object.
Licensing Info
This method is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF PrintManager selected.
- A DynamicPDF PrintManager for .NET v4.X Developer license.
Add(String)
Add a pdf document .
public void Add(string pdfFilePath)
Sub Add(pdfFilePath As String)
Parameters
- pdfFilePath: String
The file path to the PDF to be added to the print job.
Licensing Info
This method is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF PrintManager selected.
- A DynamicPDF PrintManager for .NET v4.X Developer license.
Add(String, Int32)
Add a pdf document .
public PrintJobPage Add(string pdfFilePath, int pageNumber)
Function Add(pdfFilePath As String, pageNumber As Integer) As PrintJobPage
Parameters
- pdfFilePath: String
The file path to the PDF to be added to the print job.
- pageNumber: Int32
The page number of the page to be added to the print job.
Returns
An PrintJobPage object.
Licensing Info
This method is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF PrintManager selected.
- A DynamicPDF PrintManager for .NET v4.X Developer license.
Add(String, Int32, Int32)
Add a pdf document .
public void Add(string pdfFilePath, int startPage, int pageCount)
Sub Add(pdfFilePath As String, startPage As Integer, pageCount As Integer)
Parameters
- pdfFilePath: String
The file path to the PDF to be added to the print job.
- startPage: Int32
The first page from the PDF to be added to the print job.
- pageCount: Int32
The number of pages to be added to the print job.
Licensing Info
This method is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF PrintManager selected.
- A DynamicPDF PrintManager for .NET v4.X Developer license.
Add(String, Rectangle, Int32, Int32)
Add a pdf document .
public void Add(string pdfFilePath, Rectangle rect, int startPage, int pageCount)
Sub Add(pdfFilePath As String, rect As Rectangle, startPage As Integer, pageCount As Integer)
Parameters
- pdfFilePath: String
The file path to the PDF to be added to the print job.
- rect: Rectangle
The rect represents the partial page to be printed.
- startPage: Int32
The first page from the PDF to be added to the print job.
- pageCount: Int32
The number of pages to be added to the print job.
Licensing Info
This method is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF PrintManager selected.
- A DynamicPDF PrintManager for .NET v4.X Developer license.
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 DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF PrintManager selected.
- A DynamicPDF PrintManager for .NET v4.X Developer license.
GetEnumerator()
Returns an enumerator that iterates through a collection.
public IEnumerator<PrintJobPage> GetEnumerator()
Function GetEnumerator() As IEnumerator(Of PrintJobPage)
Returns
enumerator to the PrintJobPageList
Licensing Info
This method is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF PrintManager selected.
- A DynamicPDF PrintManager for .NET v4.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 DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF PrintManager selected.
- A DynamicPDF PrintManager for .NET v4.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 DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF PrintManager selected.
- A DynamicPDF PrintManager for .NET v4.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 DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF PrintManager selected.
- A DynamicPDF PrintManager for .NET v4.X Developer license.