PageSize Enum
Specifies page size.
public enum PageSize
Public Enum PageSize
Inheritance: ObjectValueTypeEnumPageSize
Fields
PageSize.A3 | 0 | A3 page size. |
PageSize.A4 | 1 | A4 page size. |
PageSize.A5 | 2 | A5 page size. |
PageSize.A6 | 3 | A6 page size. |
PageSize.B3 | 4 | B3 page size. |
PageSize.B4 | 5 | B4 page size. |
PageSize.B5 | 6 | B5 page size. |
PageSize.B5JIS | 7 | B5 Japanese page size. |
PageSize.DoublePostcard | 8 | Double postcard page size. |
PageSize.Envelope10 | 9 | Envelope 10 page size. |
PageSize.EnvelopeB5 | 12 | B5 envelope page size. |
PageSize.EnvelopeC5 | 11 | C5 envelope page size. |
PageSize.EnvelopeDL | 10 | DL envelope page size. |
PageSize.EnvelopeMonarch | 13 | Monarch envelope page size. |
PageSize.Executive | 14 | Executive page size. |
PageSize.Folio | 16 | Folio page size. |
PageSize.Legal | 15 | Legal page size. |
PageSize.Letter | 17 | Letter page size. |
PageSize.Postcard | 18 | Postcard page size. |
PageSize.PRC16K | 19 | PRC 16K page size. |
PageSize.PRC32K | 20 | PRC 32K page size. |
PageSize.Quatro | 21 | Quatro page size. |
PageSize.Statement | 22 | Statement page size. |
PageSize.Tabloid | 23 | Tabloid page size. |
Licensing Info
This enum is a DynamicPDF Converter 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 Converter selected.
- A DynamicPDF Converter for .NET v3.X Developer license.
Examples
This example shows how to use PageSize property.Imports ceTe.DynamicPDF.Conversion
Module Module1
Sub Main()
' create new instance of ExcelConversionOptions.
Dim conversionOptions As ExcelConversionOptions = New ExcelConversionOptions(ExcelPageSize.A4,PageOrientation.Portrait,10,10)
' Create new instance of Converter by providing suitable parameters.
Dim excelConversion As ExcelConverter = New ExcelConverter("C:\MyDocument.xlsx",conversionOptions)
' Call Convert method to start conversion
excelConversion.Convert("C:\MyOutput.pdf")
End Sub
End Module
using ceTe.DynamicPDF.Conversion;
class MyClass
{
static void Main()
{
// create new instance of ExcelConversionOptions.
ExcelConversionOptions conversionOptions=new ExcelConversionOptions(ExcelPageSize.A4,PageOrientation.Portrait,10);
// Create new instance of Converter by providing suitable parameters.
ExcelConverter excel = new ExcelConverter(@"C:\MyDocument.xlsx",conversionOptions);
//Call Convert method to start conversion
excel.Convert(@"C:\MyOutput.pdf");
}
}