AutoPageScaling

Represents auto page scaling size for the job page .

public class AutoPageScaling : PageScaling
Public Class AutoPageScaling
    Inherits PageScaling

Inheritance: ObjectPageScalingAutoPageScaling

Derived: PercentagePageScaling

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 the scaling property to auto page scaling and prints the job.

Imports System
Imports ceTe.DynamicPDF.Printing

Module MyModule

    Sub Main()

        ' Create a print job
        Dim MyPrintJob As PrintJob = New PrintJob("PrinterName", "C:\MyDocument.pdf")

        ' Set the scaling
        Dim MyAutoPageScaling As AutoPageScaling = New AutoPageScaling(ScaleTo.PagePrintableArea, True, True)
        MyPrintJob.PrintOptions.Scaling = MyAutoPageScaling

        ' Print the job
        MyPrintJob.Print()
    End Sub
End Module
using System;
using ceTe.DynamicPDF.Printing;

class MyClass
{
    static void Main()
    {
        // Create a print job
        PrintJob printJob = new PrintJob("PrinterName", @"C:\MyDocument.pdf");

        // Set the scaling
        AutoPageScaling autoPageScaling = new AutoPageScaling(ScaleTo.PagePrintableArea, true, true);
        printJob.PrintOptions.Scaling = autoPageScaling;

        // Print the job
        printJob.Print();
    }
}

Constructors

AutoPageScaling()Initializes a new instance of the AutoPageScaling class.
AutoPageScaling(ScaleTo)Initializes a new instance of the AutoPageScaling class.
AutoPageScaling(ScaleTo, Boolean, Boolean)Initializes a new instance of the AutoPageScaling class.

Properties

AutoExpandGets or sets a value indicating if the page scaling size can be expanded.
AutoShrinkGets or sets a value indicating if the page scaling size can be shrunk.
ScaleToGets or sets a value indicating the boundaries on the page to use for the scaling.

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)
ToString()Returns a String that represents the current Object .
(Inherited from Object)

See Also

ceTe.DynamicPDF.Printing

In this topic