Skip to main content

PaperSize

Version: 4.0

cete.dynamicpdf.printing.papersize

PaperSize​

Represents a paper.

public class PaperSize
Public Class PaperSize

Inheritance: Object → PaperSize

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 paper size 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")

' Get a paper size from the list
Dim MyPaperSize As PaperSize = MyPrintJob.Printer.PaperSizes.Letter

' Set the paper size if it is supported by the printer
If (Not MyPaperSize Is Nothing) Then
MyPrintJob.PrintOptions.PaperSize = MyPaperSize
End If

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

// Get a paper size from the list
PaperSize paperSize = printJob.Printer.PaperSizes.Letter;

// Set the paper size if it is supported by the printer
if (paperSize != null)
{
printJob.PrintOptions.PaperSize = paperSize;
}

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

Properties​

DeviceContextPaper​

Gets the value of the paper size from DC_PAPERS array.

public int DeviceContextPaper { get; }
Public Property DeviceContextPaper As Int32

Property Value​

Int32

Licensing Info​

This property is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:

Height​

Gets the height of the paper.

public double Height { get; }
Public Property Height As Double

Property Value​

Double

Licensing Info​

This property is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:

Name​

Gets the name of the paper size.

public string Name { get; }
Public Property Name As String

Property Value​

String

Licensing Info​

This property is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:

PhysicalHeight​

Gets the value of the height of printable area in points.

public Nullable&ltdouble> PhysicalHeight { get; }
Public ReadOnly Property PhysicalHeight As Nullable(Of Double)

Property Value​

Nullable&ltdouble>

Licensing Info​

This property is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:

Remarks​

This property is only available after the print job has started. It can be used under Updated event handler.

The property represents the hardware limits of the printer.

PhysicalOffsetX​

Gets the value of the X offset of printable area in points.

public Nullable&ltdouble> PhysicalOffsetX { get; }
Public ReadOnly Property PhysicalOffsetX As Nullable(Of Double)

Property Value​

Nullable&ltdouble>

Licensing Info​

This property is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:

Remarks​

This property is only available after the print job has started. It can be used under Updated event handler.

The property represents the hardware limits of the printer.

PhysicalOffsetY​

Gets the value of the Y offset of printable area in points.

public Nullable&ltdouble> PhysicalOffsetY { get; }
Public ReadOnly Property PhysicalOffsetY As Nullable(Of Double)

Property Value​

Nullable&ltdouble>

Licensing Info​

This property is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:

Remarks​

This property is only available after the print job has started. It can be used under Updated event handler.

The property represents the hardware limits of the printer.

PhysicalWidth​

Gets the value of the width of printable area in points.

public Nullable&ltdouble> PhysicalWidth { get; }
Public ReadOnly Property PhysicalWidth As Nullable(Of Double)

Property Value​

Nullable&ltdouble>

Licensing Info​

This property is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:

Remarks​

This property is only available after the print job has started. It can be used under Updated event handler.

The property represents the hardware limits of the printer.

Width​

Gets the width of the paper.

public double Width { get; }
Public Property Width As Double

Property Value​

Double

Licensing Info​

This property is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:

Methods​

Equals(Object)​

Determines whether the specified Object is equal to the current Object . (Inherited from Object)

public bool Equals(Object obj)
Function Equals(obj As Object) As Boolean

Parameters​

The Object to compare with the current Object .

Returns​

true if the specified Object is equal to the current Object ; otherwise, false.

Licensing Info​

This method is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:

GetHashCode()​

Serves as a hash function for a particular type. (Inherited from Object)

public int GetHashCode()
Function GetHashCode() As Integer

Returns​

A hash code for the current Object .

Licensing Info​

This method is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:

GetType()​

Gets the Type of the current instance. (Inherited from Object)

public Type GetType()
Function GetType() As Type

Returns​

The Type instance that represents the exact runtime type of the current instance.

Licensing Info​

This method is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:

ToString()​

Returns a String that represents the current Object . (Inherited from Object)

public string ToString()
Function ToString() As String

Returns​

A String that represents the current Object .

Licensing Info​

This method is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:

See Also​

ceTe.DynamicPDF.Printing