ScaleTo Enum

Represents the page scaling type.

public enum ScaleTo
Public Enum ScaleTo

Inheritance: ObjectValueTypeEnumScaleTo

Fields

ScaleTo.PageEdges1Scale to the edges of a page.
ScaleTo.PagePrintableArea0Scale to the printable area of a page.

Licensing Info

This enum 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 to printable area of the page 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();
    }
}

See Also

ceTe.DynamicPDF.Printing

In this topic