PercentagePageScaling

Represents the class that allows to specify page scaling size in percentage.

public class PercentagePageScaling : AutoPageScaling
Public Class PercentagePageScaling
    Inherits AutoPageScaling

Inheritance: ObjectPageScalingAutoPageScalingPercentagePageScaling

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 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")
			
        'Create a PercentagePageScaling object with a scaling factor of 0.1 to specify 10% scaling.
        Dim MyPercentagePageScaling As PercentagePageScaling = New PercentagePageScaling(10.0F)

        ' Set the scaling
        MyPrintJob.PrintOptions.Scaling = MyPercentagePageScaling

        ' 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");

        // Create a PercentagePageScaling object with a scaling factor of 0.1 to specify 10% scaling.
        PercentagePageScaling percentagePageScaling = new PercentagePageScaling(10f);

        // Set the scaling
        printJob.PrintOptions.Scaling = percentagePageScaling;

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

Constructors

PercentagePageScaling(Single)Initializes a new instance of the PercentagePageScaling class.
PercentagePageScaling(Single, Single)Initializes a new instance of the PercentagePageScaling class.

Properties

AutoExpandGets or sets a value indicating if the page scaling size can be expanded.
(Inherited from AutoPageScaling)
AutoShrinkGets or sets a value indicating if the page scaling size can be shrunk.
(Inherited from AutoPageScaling)
ScaleToGets or sets a value indicating the boundaries on the page to use for the scaling.
(Inherited from AutoPageScaling)
ScaleXGets the horizontal page scaling in percentage.
ScaleYGets the vertical page scaling in percentage.

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