cete.dynamicpdf.printing.printjobpageprintoptions
PrintJobPagePrintOptions
- Namespace: ceTe.DynamicPDF.Printing
- Assemblies: DynamicPDF.Printing.dll
Represents print options for the page to be added to the print job.
public class PrintJobPagePrintOptions
Public Class PrintJobPagePrintOptions
Inheritance: Object → PrintJobPagePrintOptions
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 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.
public HorizontalAlign HorizontalAlign { get; set; }
Public Property HorizontalAlign As HorizontalAlign
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.
Remarks
You must set the Inherit property to false before setting this property.
Inherit
Gets or sets the value indicating if the print options should be inherited from the print job.
public bool Inherit { get; set; }
Public Property Inherit As Boolean
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.
MediaType
Gets or sets the media type for the page.
public MediaType MediaType { get; set; }
Public Property MediaType As MediaType
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.
Remarks
You must set the Inherit property to false before setting this property.
Orientation
Gets or sets the page orientation for the page.
public PageOrientation Orientation { get; set; }
Public Property Orientation As PageOrientation
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.
Remarks
You must set the Inherit property to false before setting this property.
PaperSize
Gets or sets the paper size for the page.
public PaperSize PaperSize { get; set; }
Public Property PaperSize As PaperSize
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.
Remarks
You must set the Inherit property to false before setting this property.
PaperSource
Gets or sets the paper source for the page.
public PaperSource PaperSource { get; set; }
Public Property PaperSource As PaperSource
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.
Remarks
You must set the Inherit property to false before setting this property.
PrintAnnotations
Gets or sets the value indicating it PDF annotations should be printed for this page.
public bool PrintAnnotations { get; set; }
Public Property PrintAnnotations As Boolean
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.
Remarks
You must set the Inherit property to false before setting this property.
Scaling
Gets or sets the scaling size for the page.
public PageScaling Scaling { get; set; }
Public Property Scaling As PageScaling
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.
Remarks
You must set the Inherit property to false before setting this property.
VerticalAlign
Gets or sets the vertical alignment for the page.
public VerticalAlign VerticalAlign { get; set; }
Public Property VerticalAlign As VerticalAlign
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.
Remarks
You must set the Inherit property to false before setting this property.
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 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.
SetMediaTypeByName(String)
Sets the media type by name for the page.
public bool SetMediaTypeByName(string name)
Function SetMediaTypeByName(name As String) As Boolean
Parameters
- name: String
The name of the media type to set.
Returns
A boolean value indicating if the media type name is valid for this printer.
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.
Remarks
If the specified media type is not supported by the printer, the media type will not be changed and this method will return false.
SetPaperSizeByName(String)
Sets the paper size by name for the page.
public bool SetPaperSizeByName(string name)
Function SetPaperSizeByName(name As String) As Boolean
Parameters
- name: String
String containing paper size.
Returns
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.
SetPaperSourceByName(String)
Sets the paper source by name for the page.
public bool SetPaperSourceByName(string name)
Function SetPaperSourceByName(name As String) As Boolean
Parameters
- name: String
String containing paper source.
Returns
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.