PrintJobPageList
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: ObjectPrintJobPageList
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 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. |
Item[Int32] | Gets a PrintJobPage object by index. |
Methods
Add(InputPdf) | Add all the pages of a PDF to the list. |
Add(InputPdf, Int32, Int32) | Add pdf to the list. |
Add(InputPdf, Rectangle, Int32, Int32) | Add a pdf document . |
Add(InputPdfPage) | Add pdf page PrintJobPage . |
Add(String) | Add a pdf document . |
Add(String, Int32) | Add a pdf document . |
Add(String, Int32, Int32) | Add a pdf document . |
Add(String, Rectangle, Int32, Int32) | Add a pdf document . |
Equals(Object) | Determines whether the specified Object is equal to the current Object . (Inherited from Object) |
GetEnumerator() | Returns an enumerator that iterates through a collection. |
GetHashCode() | Serves as a hash function for a particular type. (Inherited from Object) |
GetType() | Gets the Type of the current instance. (Inherited from Object) |
ToString() | Returns a String that represents the current Object . (Inherited from Object) |