ExcelConversionOptions.PageSize Property
Determines the Excel page size. Helps to retrieve or set the Excel page size.
public ExcelPageSize PageSize { get; set; }
Property Value
Licensing Info
This property 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.using ceTe.DynamicPDF.Conversion;
class MyClass
{
static void Main()
{
// create new instance of ExcelConversionOptions.
ExcelConversionOptions conversionOptions=new ExcelConversionOptions(false);
//Assign value to pagesize property.
ConversionOptions.PageSize = ExcelPageSize.A4
// 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");
}
}
See Also
ExcelConversionOptionsceTe.DynamicPDF.Conversion