PaperSizeList
Represents a list of papers.
public class PaperSizeList : IEnumerable, IEnumerable<PaperSize>
Public Class PaperSizeList
Implements IEnumerable, IEnumerable(Of PaperSize)
Inheritance: ObjectPaperSizeList
Implements: IEnumerable, IEnumerable<PaperSize>
Licensing Info
This class 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 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 the list of available paper sizes for the printer
Dim MyPaperSizes As PaperSizeList = MyPrintJob.Printer.PaperSizes
' Set the paper size
MyPrintJob.PrintOptions.PaperSize = MyPaperSizes(0)
' 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 the list of available paper sizes for the printer
PaperSizeList paperSizes = printJob.Printer.PaperSizes;
// Set the paper size
printJob.PrintOptions.PaperSize = paperSizes[0];
// Print the job
printJob.Print();
}
}
Properties
| A2 | Gets the A2 paper size if it is specified by the printer. |
| A3 | Gets the A3 paper size if it is specified by the printer. |
| A3Extra | Gets the A3 extra paper size if it is specified by the printer. |
| A3ExtraTransverse | Gets the A3 extra transverse paper size if it is specified by the printer. |
| A3Rotated | Gets the A3 rotated paper size if it is specified by the printer. |
| A3Transverse | Gets the A3 transverse paper size if it is specified by the printer. |
| A4 | Gets the A4 paper size if it is specified by the printer. |
| A4Extra | Gets the A4 extra paper size if it is specified by the printer. |
| A4Plus | Gets the A4 plus paper size if it is specified by the printer. |
| A4Rotated | Gets the A4 rotated paper size if it is specified by the printer. |
| A4Small | Gets the A4 small paper size if it is specified by the printer. |
| A4Transverse | Gets the A4 transverse paper size if it is specified by the printer. |
| A5 | Gets the A5 paper size if it is specified by the printer. |
| A5Extra | Gets the A5 extra paper size if it is specified by the printer. |
| A5Rotated | Gets the A5 rotated paper size if it is specified by the printer. |
| A5Transverse | Gets the A5 transverse paper size if it is specified by the printer. |
| A6 | Gets the A6 paper size if it is specified by the printer. |
| A6Rotated | Gets the A6 rotated paper size if it is specified by the printer. |
| APlus | Gets the A plus paper size if it is specified by the printer. |
| B4 | Gets the B4 paper size if it is specified by the printer. |
| B4JisRotated | Gets the B4 JIS rotated paper size if it is specified by the printer. |
| B5 | Gets the B5 paper size if it is specified by the printer. |
| B5Extra | Gets the B5 extra paper size if it is specified by the printer. |
| B5JisRotated | Gets the B5 JIS rotated paper size '' if it is specified by the printer. |
| B6Jis | Gets the B6 JIS paper size if it is specified by the printer. |
| B6JisRotated | Gets the B6 JIS rotated paper size if it is specified by the printer. |
| BPlus | Gets the B plus paper size if it is specified by the printer. |
| Count | Gets the number of paper sources in the list. |
| CSheet | Gets the C sheet paper size if it is specified by the printer. |
| DblJapanesePostcard | Gets the double Japanese postcard paper size if it is specified by the printer. |
| DblJapanesePostcardRotated | Gets the double Japanese postcard rotated paper size if it is specified by the printer. |
| DSheet | Gets the D sheet paper size if it is specified by the printer. |
| Envelope10 | Gets the envelope 10 paper size if it is specified by the printer. |
| Envelope11 | Gets the envelope 11 paper size if it is specified by the printer. |
| Envelope12 | Gets the envelope 12 paper size if it is specified by the printer. |
| Envelope14 | Gets the envelope 14 paper size if it is specified by the printer. |
| Envelope9 | Gets the envelope 9 paper size if it is specified by the printer. |
| EnvelopeB4 | Gets the envelope B4 paper size if it is specified by the printer. |
| EnvelopeB5 | Gets the envelope B5 paper size if it is specified by the printer. |
| EnvelopeB6 | Gets the envelope B6 paper size if it is specified by the printer. |
| EnvelopeC3 | Gets the envelope C3 paper size if it is specified by the printer. |
| EnvelopeC4 | Gets the envelope C4 paper size if it is specified by the printer. |
| EnvelopeC5 | Gets the envelope C5 paper size if it is specified by the printer. |
| EnvelopeC6 | Gets the envelope C6 paper size if it is specified by the printer. |
| EnvelopeC65 | Gets the envelope C65 paper size if it is specified by the printer. |
| EnvelopeDL | Gets the envelope DL paper size if it is specified by the printer. |
| EnvelopeInvite | Gets the envelope invite paper size if it is specified by the printer. |
| EnvelopeItaly | Gets the envelope Italy paper size if it is specified by the printer. |
| EnvelopeMonarch | Gets the envelope monarch paper size if it is specified by the printer. |
| EnvelopePersonal | Gets the envelope personal paper size if it is specified by the printer. |
| ESheet | Gets the E sheet paper size if it is specified by the printer. |
| Executive | Gets the executive paper size if it is specified by the printer. |
| FanfoldLegalGerman | Gets the German fanfold legal paper size if it is specified by the printer. |
| FanfoldStandardGerman | Gets the German fanfold standard paper size if it is specified by the printer. |
| FanfoldUs | Gets the US fanfold paper size if it is specified by the printer. |
| Folio | Gets the folio paper size if it is specified by the printer. |
| IsoB4 | Gets the ISO B4 paper size if it is specified by the printer. |
| Item[Int32] | Gets a PaperSize object by index. |
| Item[String] | Gets a PaperSize object by name. |
| JapaneseEnvelopeChou3 | Gets the Japanese envelope Chou 3 paper size if it is specified by the printer. |
| JapaneseEnvelopeChou3Rotated | Gets the Japanese envelope Chou 3 rotated paper size if it is specified by the printer. |
| JapaneseEnvelopeChou4 | Gets the Japanese envelope Chou 4 paper size if it is specified by the printer. |
| JapaneseEnvelopeChou4Rotated | Gets the Japanese envelope Chou 4 rotated paper size if it is specified by the printer. |
| JapaneseEnvelopeKaku2 | Gets the Japanese envelope Kaku 2 paper size if it is specified by the printer. |
| JapaneseEnvelopeKaku2Rotated | Gets the Japanese envelope Kaku 2 rotated paper size if it is specified by the printer. |
| JapaneseEnvelopeKaku3 | Gets the Japanese envelope Kaku 3 paper size if it is specified by the printer. |
| JapaneseEnvelopeKaku3Rotated | Gets the Japanese envelope Kaku 3 rotated paper size if it is specified by the printer. |
| JapaneseEnvelopeYou4 | Gets the Japanese envelope You 4 paper size if it is specified by the printer. |
| JapaneseEnvelopeYou4Rotated | Gets the Japanese envelope You 4 rotated paper size if it is specified by the printer. |
| JapanesePostcard | Gets the Japanese postcard paper size if it is specified by the printer. |
| JapanesePostcardRotated | Gets the Japanese postcard rotated paper size if it is specified by the printer. |
| Last | Gets the last paper size if it is specified by the printer. |
| Ledger | Gets the ledger paper size if it is specified by the printer. |
| Legal | Gets the US Legal paper size if it is specified by the printer. |
| LegalExtra | Gets the legal extra paper size if it is specified by the printer. |
| Letter | Gets the US Letter paper size if it is specified by the printer. |
| LetterExtra | Gets the letter extra paper size if it is specified by the printer. |
| LetterExtraTransverse | Gets the letter extra transverse paper size if it is specified by the printer. |
| LetterRotated | Gets the letter rotated paper size if it is specified by the printer. |
| LetterSmall | Gets the letter small paper size if it is specified by the printer. |
| LetterTransverse | Gets the letter transverse paper size if it is specified by the printer. |
| Note | Gets the note paper size if it is specified by the printer. |
| Prc16K | Gets the PRC 16K paper size if it is specified by the printer. |
| Prc16KRotated | Gets the PRC 16K rotated paper size if it is specified by the printer. |
| Prc32K | Gets the PRC 32K paper size if it is specified by the printer. |
| Prc32KBig | Gets the PRC 32K big paper size if it is specified by the printer. |
| Prc32KBigRotated | Gets the PRC 32K big rotated paper size if it is specified by the printer. |
| Prc32KRotated | Gets the PRC 32K rotated paper size if it is specified by the printer. |
| PrcEnvelope1 | Gets the PRC envelope 1 paper size if it is specified by the printer. |
| PrcEnvelope10 | Gets the PRC envelope 10 paper size if it is specified by the printer. |
| PrcEnvelope10Rotated | Gets the PRC envelope 10 rotated paper size if it is specified by the printer. |
| PrcEnvelope1Rotated | Gets the PRC envelope 1 rotated paper size if it is specified by the printer. |
| PrcEnvelope2 | Gets the PRC envelope 2 paper size if it is specified by the printer. |
| PrcEnvelope2Rotated | Gets the PRC envelope 2 rotated paper size if it is specified by the printer. |
| PrcEnvelope3 | Gets the PRC envelope 3 paper size if it is specified by the printer. |
| PrcEnvelope3Rotated | Gets the PRC envelope 3 rotated paper size if it is specified by the printer. |
| PrcEnvelope4 | Gets the PRC envelope 4 paper size if it is specified by the printer. |
| PrcEnvelope4Rotated | Gets the PRC envelope 4 rotated paper size if it is specified by the printer. |
| PrcEnvelope5 | Gets the PRC envelope 5 paper size if it is specified by the printer. |
| PrcEnvelope5Rotated | Gets the PRC envelope 5 rotated paper size if it is specified by the printer. |
| PrcEnvelope6 | Gets the PRC envelope 6 paper size if it is specified by the printer. |
| PrcEnvelope6Rotated | Gets the PRC envelope 6 rotated size if it is specified by the printer. |
| PrcEnvelope7 | Gets the PRC envelope 7 paper size if it is specified by the printer. |
| PrcEnvelope7Rotated | Gets the PRC envelope 7 rotated paper size if it is specified by the printer. |
| PrcEnvelope8 | Gets the PRC envelope 8 paper size if it is specified by the printer. |
| PrcEnvelope8Rotated | Gets the PRC envelope 8 rotated paper size if it is specified by the printer. |
| PrcEnvelope9 | Gets the PRC envelope 9 paper size if it is specified by the printer. |
| PrcEnvelope9Rotated | Gets the PRC envelope 9 rotated paper size if it is specified by the printer. |
| Quarto | Gets the quarto paper size if it is specified by the printer. |
| Size10By11 | Gets the paper size 10 by 11 if it is specified by the printer. |
| Size10By14 | Gets the paper size 10 by 14 if it is specified by the printer. |
| Size11By17 | Gets the paper size 11 by 17 if it is specified by the printer. |
| Size12By11 | Gets the paper size 12 by 11 if it is specified by the printer. |
| Size15By11 | Gets the paper size 15 by 11 if it is specified by the printer. |
| Size9By11 | Gets the paper size 9 by 11 if it is specified by the printer. |
| Statement | Gets the statement paper size if it is specified by the printer. |
| Tabloid | Gets the tabloid paper size if it is specified by the printer. |
| TabloidExtra | Gets the tabloid extra paper size if it is specified by the printer. |
Methods
| Equals(Object) | Determines whether the specified Object is equal to the current Object . (Inherited from Object) |
| GetEnumerator() | Returns an enumerator that iterates through a collection. |
| 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) |