ScaleTo Enum
- Namespace: ceTe.DynamicPDF.Printing
- Assemblies: ceTe.DynamicPDF.Printing.40.x64.dll, ceTe.DynamicPDF.Printing.40.x86.dll
Represents the page scaling type.
public enum ScaleTo
Public Enum ScaleTo
Inheritance: Object → ValueType → Enum → ScaleTo
Fields
| ScaleTo.PageEdges | 1 | Scale to the edges of a page. |
|---|---|---|
| ScaleTo.PagePrintableArea | 0 | Scale to the printable area of a page. |
Licensing
This class is a DynamicPDF PrintManager feature. The following license is required for non-evaluation usage:
- DynamicPDF PrintManager for .NET
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();
}
}