Skip to main content

PageRange

Version: 3.0

cete.dynamicpdf.conversion.pagerange

PageRange​

Specifies PageRange.

public class PageRange
Public Class PageRange

Inheritance: Object → PageRange

Licensing Info​

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

Examples​

This example shows how to use PageRange 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)

' The Conversion will start from page 3 if exists or will start from 1.
conversionOptions.PageRange.StartPageNumber = 3;

' 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,10);

//The Conversion will start from page 3 if exists or will start from 1.
conversionOptions.PageRange.StartPageNumber = 3;

// 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");
}
}

Properties​

EndPageNumber​

Represents the end page number.

public int EndPageNumber { get; set; }
Public Property EndPageNumber As Int32

Property Value​

Int32

Licensing Info​

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

Examples​

This example shows how to use PageRange EndPageNumber 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)

' The Conversion will start from page 1 and end for page 3.
conversionOptions.PageRange.EndPageNumber = 3;

' 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,10);

//The Conversion will start from page 1 and end for page 3.
conversionOptions.PageRange.EndPageNumber = 3;

// 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");
}
}

StartPageNumber​

Represents the stating page number

public int StartPageNumber { get; set; }
Public Property StartPageNumber As Int32

Property Value​

Int32

Licensing Info​

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

Examples​

This example shows how to use PageRange StartPageRange 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)

' The Conversion will start from page 3 if exists or will start from 1.
conversionOptions.PageRange.StartPageNumber = 3;

' 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,10);

//The Conversion will start from page 3 if exists or will start from 1.
conversionOptions.PageRange.StartPageNumber = 3;

// 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");
}
}

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 Converter 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 Converter 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 Converter 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 Converter feature. One of the following is required for non-evaluation usage:

See Also​

ceTe.DynamicPDF.Conversion