PrintJobPagePrintOptions

Represents print options for the page to be added to the print job.

public class PrintJobPagePrintOptions

Inheritance: ObjectPrintJobPagePrintOptions

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, sets print options for the last page and prints the job.

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

HorizontalAlignGets or sets the horizontal alignment for the page.
InheritGets or sets the value indicating if the print options should be inherited from the print job.
MediaTypeGets or sets the media type for the page.
OrientationGets or sets the page orientation for the page.
PaperSizeGets or sets the paper size for the page.
PaperSourceGets or sets the paper source for the page.
PrintAnnotationsGets or sets the value indicating it PDF annotations should be printed for this page.
ScalingGets or sets the scaling size for the page.
VerticalAlignGets 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)

See Also

ceTe.DynamicPDF.Printing