PrintJobPagePrintOptions
Represents print options for the page to be added to the print job.
public class PrintJobPagePrintOptions
Public Class PrintJobPagePrintOptions
Inheritance: ObjectPrintJobPagePrintOptions
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 last page and set its print options
Dim MyPrintJobPage As PrintJobPage = MyPrintJob.Pages(MyPrintJob.Pages.Count - 1)
Dim MyPagePrintOptions As PrintJobPagePrintOptions = MyPrintJobPage.PrintOptions
MyPagePrintOptions.Inherit = False
MyPagePrintOptions.HorizontalAlign = HorizontalAlign.Left
MyPagePrintOptions.PrintAnnotations = False
' 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 last page and set its print options
PrintJobPage printJobPage = printJob.Pages[printJob.Pages.Count - 1];
PrintJobPagePrintOptions pagePrintOptions = printJobPage.PrintOptions;
pagePrintOptions.Inherit = false;
pagePrintOptions.HorizontalAlign = HorizontalAlign.Left;
pagePrintOptions.PrintAnnotations = false;
// Print the job
printJob.Print();
}
}
Properties
HorizontalAlign | Gets or sets the horizontal alignment for the page. |
Inherit | Gets or sets the value indicating if the print options should be inherited from the print job. |
MediaType | Gets or sets the media type for the page. |
Orientation | Gets or sets the page orientation for the page. |
PaperSize | Gets or sets the paper size for the page. |
PaperSource | Gets or sets the paper source for the page. |
PrintAnnotations | Gets or sets the value indicating it PDF annotations should be printed for this page. |
Scaling | Gets or sets the scaling size for the page. |
VerticalAlign | Gets or sets the vertical alignment for the page. |
Methods
Equals(Object) | Determines whether the specified Object is equal to the current Object . (Inherited from Object) |
GetHashCode() | Serves as a hash function for a particular type. (Inherited from Object) |
GetType() | Gets the Type of the current instance. (Inherited from Object) |
SetMediaTypeByName(String) | Sets the media type by name for the page. |
SetPaperSizeByName(String) | Sets the paper size by name for the page. |
SetPaperSourceByName(String) | Sets the paper source by name for the page. |
ToString() | Returns a String that represents the current Object . (Inherited from Object) |