ScaleTo Enum
Represents the page scaling type.
public enum ScaleTo
Public Enum ScaleTo
Inheritance: ObjectValueTypeEnumScaleTo
Fields
ScaleTo.PageEdges | 1 | Scale to the edges of a page. |
ScaleTo.PagePrintableArea | 0 | Scale 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:
- 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 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();
}
}