cete.dynamicpdf.conversion.excelconversionoptions
ExcelConversionOptions
- Namespace: ceTe.DynamicPDF.Conversion
- Assemblies: DynamicPDF.Converter.dll
Defines properies and methods that are neeeded for Excel conversions.
public class ExcelConversionOptions : ConversionOptions
Public Class ExcelConversionOptions
Inherits ConversionOptions
Inheritance: Object → ConversionOptions → ExcelConversionOptions
Licensing Info
This class is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription 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 ExcelConversionOptions constructor.
Imports ceTe.DynamicPDF.Conversion
Module Module1
Sub Main()
' create new instance of ExcelConversionOption.
Dim conversionOptions As ExcelConversionOptions = New ExcelConversionOptions(True)
' 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 ExcelConversionOption.
ExcelConversionOptions conversionOptions=new ExcelConversionOptions(true);
// 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");
}
}
Constructors
ExcelConversionOptions([Optional] Boolean)
Defines properies and methods that are neeeded for Excel conversions.
public ExcelConversionOptions([bool appendToPdf = False])
Public Sub New (Optional appendToPdf As Boolean = False)
Parameters
- appendToPdf: Boolean
Whether the pdf should be appended to the existing pdf.
Licensing Info
This constructor is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription 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 ExcelConversionOptions constructor.
Imports ceTe.DynamicPDF.Conversion
Module Module1
Sub Main()
' create new instance of ExcelConversionOptions.
Dim conversionOptions As ExcelConversionOptions = New ExcelConversionOptions(True)
' 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(true);
// 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");
}
}
ExcelConversionOptions(ExcelPageSize, Double)
Initializes a new instance of the ExcelConversionOptions class.
public ExcelConversionOptions(ExcelPageSize pageSize, double margins)
Public Sub New (pageSize As ExcelPageSize, margins As Double)
Parameters
- pageSize: ExcelPageSize
Excel page size in points
- margins: Double
Margins of the page in points
Licensing Info
This constructor is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription 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 ExcelConversionOptions class with ExcelPageSize and margin.
Imports ceTe.DynamicPDF.Conversion
Module Module1
Sub Main()
' create new instance of ExcelConversionOptions.
Dim conversionOptions As ExcelConversionOptions = New ExcelConversionOptions(ExcelPageSize.A4,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,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");
}
}
ExcelConversionOptions(ExcelPageSize, Double, [Optional] Boolean)
Initializes a new instance of the ExcelConversionOptions class.
public ExcelConversionOptions(ExcelPageSize pageSize, double margins, [bool appendToPdf = False])
Public Sub New (pageSize As ExcelPageSize, margins As Double, Optional appendToPdf As Boolean = False)
Parameters
- pageSize: ExcelPageSize
Excel page size in points.
- margins: Double
Margins of the page in points.
- appendToPdf: Boolean
Specify if append option to be enabled
Licensing Info
This constructor is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription 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 ExcelConversionOptions constructor with ExcelPageSize, margin and appendToPdf as parameter.
Imports ceTe.DynamicPDF.Conversion
Module Module1
Sub Main()
' create new instance of ExcelConversionOptions.
Dim conversionOptions As ExcelConversionOptions = New ExcelConversionOptions(ExcelPageSize.A4,10,True)
' 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,10,true);
// 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");
}
}
ExcelConversionOptions(ExcelPageSize, Double, Double)
Initializes a new instance of the ExcelConversionOptions class.
public ExcelConversionOptions(ExcelPageSize pageSize, double leftAndRightMargin, double topAndBottomMargin)
Public Sub New (pageSize As ExcelPageSize, leftAndRightMargin As Double, topAndBottomMargin As Double)
Parameters
- pageSize: ExcelPageSize
Excel page size in points.
- leftAndRightMargin: Double
Left and right margins of the page in points.
- topAndBottomMargin: Double
Top and bottom margins of the page in points.
Licensing Info
This constructor is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription 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 ExcelConversionOptions constructor with ExcelPageSize, LeftandRightMargin and TopandBottomMargin as parameter.
Imports ceTe.DynamicPDF.Conversion
Module Module1
Sub Main()
' create new instance of ExcelConversionOptions.
Dim conversionOptions As ExcelConversionOptions = New ExcelConversionOptions(ExcelPageSize.A4,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,10,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");
}
}
ExcelConversionOptions(ExcelPageSize, PageOrientation, Double)
Initializes a new instance of the ExcelConversionOptions class.
public ExcelConversionOptions(ExcelPageSize pageSize, PageOrientation orientation, double margins)
Public Sub New (pageSize As ExcelPageSize, orientation As PageOrientation, margins As Double)
Parameters
- pageSize: ExcelPageSize
Excel page size in points.
- orientation: PageOrientation
Orientation of the page.
- margins: Double
Margins of the page in points.
Licensing Info
This constructor is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription 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 ExcelConversionOptions constructor with ExcelPageSize, PageOrientation and margin as parameter.
Imports ceTe.DynamicPDF.Conversion
Module Module1
Sub Main()
' create new instance of ExcelConversionOptions.
Dim conversionOptions As ExcelConversionOptions = New ExcelConversionOptions(ExcelPageSize.A4,PageOrientation.Portrait,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");
}
}
ExcelConversionOptions(ExcelPageSize, PageOrientation, Double, Double)
Initializes a new instance of the ExcelConversionOptions class.
public ExcelConversionOptions(ExcelPageSize pageSize, PageOrientation orientation, double leftAndRightMargin, double topAndBottomMargin)
Public Sub New (pageSize As ExcelPageSize, orientation As PageOrientation, leftAndRightMargin As Double, topAndBottomMargin As Double)
Parameters
- pageSize: ExcelPageSize
Excel page size in points.
- orientation: PageOrientation
Orientation of the page.
- leftAndRightMargin: Double
Left and right margins of the page in points.
- topAndBottomMargin: Double
Top and bottom margins of the page in points.
Licensing Info
This constructor is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription 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 ExcelConversionOptions constructor with ExcelPageSize, PageOrientation , LeftAndRightmargin and TopAndBottomMargin as parameter.
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,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");
}
}
ExcelConversionOptions(ExcelPageSize, PageOrientation, Double, Double, [Optional] Boolean)
Initializes a new instance of the ExcelConversionOptions class.
public ExcelConversionOptions(ExcelPageSize pageSize, PageOrientation orientation, double leftAndRightMargin, double topAndBottomMargin, [bool appendToPdf = False])
Public Sub New (pageSize As ExcelPageSize, orientation As PageOrientation, leftAndRightMargin As Double, topAndBottomMargin As Double, Optional appendToPdf As Boolean = False)
Parameters
- pageSize: ExcelPageSize
Excel page size in points.
- orientation: PageOrientation
Orientation of the page.
- leftAndRightMargin: Double
Left and right margins of the page in points.
- topAndBottomMargin: Double
Top and bottom margins of the page in points.
- appendToPdf: Boolean
Specify if append option to be enabled
Licensing Info
This constructor is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription 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 ExcelConversionOptions constructor with ExcelPageSize, PageOrientation , LeftAndRightmargin ,TopAndBottomMargin and appendToPdf as parameter.
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,True)
' 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,true);
// 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
AppendToPdf
Gets or sets the boolean value to specify if append to pdf conversionOptions to be enabled. (Inherited from ConversionOptions)
public bool AppendToPdf { get; set; }
Public Property AppendToPdf As Boolean
Property Value
Licensing Info
This property is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription 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 the append to pdf property.
Imports ceTe.DynamicPDF.Conversion
Module Module1
Sub Main()
' create an instance of ConversionOptions
Dim conversionOptions As ConversionOptions = New ConversionOptions(PageSize.A4, PageOrientation.Portrait, 10)
'Assign value to AppendToPdf property.
conversionOptions.AppendToPdf = true
' Call convert method to do conversion.
Converter.Convert("C:\MyDocument.doc", "C:\MyOutput.pdf", conversionOptions)
End Sub
End Module
using System;
using ceTe.DynamicPDF.Conversion;
class MyClass
{
static void Main()
{
// create an instance of ConversionOptions class.
ConversionOptions conversionOptions = new ConversionOptions(PageSize.A4, PageOrientation.Portrait, 10);
//Assign value to AppendToPdf property.
conversionOptions.AppendToPdf = true;
// Call convert method to do conversion.
Converter.Convert(@"C:\MyDocument.doc", @"C:\MyOutput.pdf", conversionOptions);
}
}
Author
Gets or sets the author meta data for the converted PDF. (Inherited from ConversionOptions)
public string Author { get; set; }
Public Property Author As String
Property Value
Licensing Info
This property is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription 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 the author property.
Imports ceTe.DynamicPDF.Conversion
Module Module1
Sub Main()
' create an instance of ConversionOptions
Dim conversionOptions As ConversionOptions = New ConversionOptions(PageSize.A4, PageOrientation.Portrait, 10)
' Assign value to Author property.
conversionOptions.Author = "ceTe Software Pvt. Ltd."
' Call convert method to do conversion.
Converter.Convert("C:\MyDocument.doc", "C:\MyOutput.pdf", conversionOptions)
End Sub
End Module
using System;
using ceTe.DynamicPDF.Conversion;
class MyClass
{
static void Main()
{
// create an instance of ConversionOptions class.
ConversionOptions conversionOptions = new ConversionOptions(PageSize.A4, PageOrientation.Portrait, 10);
//Assign value to Author property.
conversionOptions.Author = "ceTe Software Pvt. Ltd.";
// Call convert method to do conversion.
Converter.Convert(@"C:\MyDocument.doc", @"C:\MyOutput.pdf", conversionOptions);
}
}
BottomMargin
Gets or sets the bottom margin of the page. (Inherited from ConversionOptions)
public double BottomMargin { get; set; }
Public Property BottomMargin As Double
Property Value
Licensing Info
This property is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription 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 the bottom margin property.
Imports ceTe.DynamicPDF.Conversion
Module Module1
Sub Main()
' create an instance of ConversionOptions
Dim conversionOptions As ConversionOptions = New ConversionOptions(True)
'Assign value to bottom margin property
conversionOptions.BottomMargin = 10
' Call convert method to do conversion.
Converter.Convert("C:\MyDocument.doc", "C:\MyOutput.pdf", conversionOptions)
End Sub
End Module
using System;
using ceTe.DynamicPDF.Conversion;
class MyClass
{
static void Main()
{
// create an instance of ConversionOptions class.
ConversionOptions conversionOptions = new ConversionOptions(true);
//Assign value to bottom margin property.
conversionOptions.BottomMargin = 10;
// Call convert method to do conversion.
Converter.Convert(@"C:\MyDocument.doc", @"C:\MyOutput.pdf", conversionOptions);
}
}
CancelToken
Gets or sets a CancellationToken for conversion task. (Inherited from ConversionOptions)
public CancellationToken CancelToken { get; set; }
Public Property CancelToken As CancellationToken
Property Value
Licensing Info
This property is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Converter selected.
- A DynamicPDF Converter for .NET v3.X Developer license.
Examples
Following code will cancel the conversion if it does not finish within a second.
ConversionOptions conversionOptions = new ConversionOptions(PageSize.A4, PageOrientation.Portrait, 20);
CancellationTokenSource tokenSource = new CancellationTokenSource();
conversionOptions.CancelToken = tokenSource.Token;
System.Threading.Tasks.Task.Run(() => { Thread.Sleep(1000); tokenSource.Cancel(); });
byte[] pdf = await Converter.ConvertAsync(new Uri("http://www.dynamicpdf.com"), conversionOptions);
Remarks
This property will be used to create the task for conversion, so that the task may be cancelled if needed.
ConvertSheets
Gets or sets ConvertSheets value for the ExcelWorkBook.
public ConvertSheets ConvertSheets { get; set; }
Public Property ConvertSheets As ConvertSheets
Property Value
Licensing Info
This property is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription 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 ConvertSheets property.
Imports ceTe.DynamicPDF.Conversion
Module Module1
Sub Main()
' create new instance of ExcelConversionOptions.
Dim conversionOptions As ExcelConversionOptions = New ExcelConversionOptions(false)
' assign page orientation.
conversionOptions.ConvertSheets = ConvertSheets.All
' 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(false);
// assign page orientation.
conversionOptions.ConvertSheets = ConvertSheets.All;
//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");
}
}
Creator
Gets or sets the creator meta data for the converted PDF. (Inherited from ConversionOptions)
public string Creator { get; set; }
Public Property Creator As String
Property Value
Licensing Info
This property is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription 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 the creater meta data property.
Imports ceTe.DynamicPDF.Conversion
Module Module1
Sub Main()
' create an instance of ConversionOptions
Dim conversionOptions As ConversionOptions = New ConversionOptions(PageSize.A4, PageOrientation.Portrait, 10)
' Assign value to producer property.
conversionOptions.Creator = "ceTe software"
' Call convert method to do conversion.
Converter.Convert("C:\MyDocument.doc", "C:\MyOutput.pdf", conversionOptions)
End Sub
End Module
using System;
using ceTe.DynamicPDF.Conversion;
class MyClass
{
static void Main()
{
// create an instance of ConversionOptions class.
ConversionOptions conversionOptions = new ConversionOptions(PageSize.A4, PageOrientation.Portrait, 10);
//Assign value to producer property.
conversionOptions.Creator = "ceTe software";
// Call convert method to do conversion.
Converter.Convert(@"C:\MyDocument.doc", @"C:\MyOutput.pdf", conversionOptions);
}
}
Height
Gets or sets the height of the page in points.
public double Height { get; }
Public Property Height As Double
Property Value
Licensing Info
This property is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription 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 read Page height property.
Imports ceTe.DynamicPDF.Conversion
Module Module1
Sub Main()
' create new instance of ExcelConversionOptions.
Dim conversionOptions As ExcelConversionOptions = New ExcelConversionOptions(false)
'getting the page width.
Console.Write("ExcelPage height is"+conversionOptions.Height);
' 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(false);
//getting the page height.
Console.Write("ExcelPage height is"+conversionOptions.Height);
//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");
}
}
IgnorePrintAreas
Gets or sets IgnorePrintAreas value for the page.
public bool IgnorePrintAreas { get; set; }
Public Property IgnorePrintAreas As Boolean
Property Value
Licensing Info
This property is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription 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 IgnorePrintAreas property.
Imports ceTe.DynamicPDF.Conversion
Module Module1
Sub Main()
' create new instance of ExcelConversionOptions.
Dim conversionOptions As ExcelConversionOptions = New ExcelConversionOptions(false)
' assign page orientation.
conversionOptions.IgnorePrintAreas = True
' 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(false);
// assign page orientation.
conversionOptions.IgnorePrintAreas = true;
//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");
}
}
Keywords
Gets or sets the keywords meta data for the converted PDF. (Inherited from ConversionOptions)
public string Keywords { get; set; }
Public Property Keywords As String
Property Value
Licensing Info
This property is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription 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 the keyword meta data property.
Imports ceTe.DynamicPDF.Conversion
Module Module1
Sub Main()
' create an instance of ConversionOptions
Dim conversionOptions As ConversionOptions = New ConversionOptions(PageSize.A4, PageOrientation.Portrait, 10)
' Assign value to keyword property.
conversionOptions.Keywords = "Converter"
' Call convert method to do conversion.
Converter.Convert("C:\MyDocument.doc", "C:\MyOutput.pdf", conversionOptions)
End Sub
End Module
using System;
using ceTe.DynamicPDF.Conversion;
class MyClass
{
static void Main()
{
// create an instance of ConversionOptions class.
ConversionOptions conversionOptions = new ConversionOptions(PageSize.A4, PageOrientation.Portrait, 10);
//Assign value to Keyword property.
conversionOptions.Keywords = "Converter";
// Call convert method to do conversion.
Converter.Convert(@"C:\MyDocument.doc", @"C:\MyOutput.pdf", conversionOptions);
}
}
LeftMargin
Gets or sets the left margin of the page in points. (Inherited from ConversionOptions)
public double LeftMargin { get; set; }
Public Property LeftMargin As Double
Property Value
Licensing Info
This property is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription 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 the left margin property.
Imports ceTe.DynamicPDF.Conversion
Module Module1
Sub Main()
' create an instance of ConversionOptions
Dim conversionOptions As ConversionOptions = New ConversionOptions(True)
'Assign value to left margin property
conversionOptions.LeftMargin = 10
' Call convert method to do conversion.
Converter.Convert("C:\MyDocument.doc", "C:\MyOutput.pdf", conversionOptions)
End Sub
End Module
using System;
using ceTe.DynamicPDF.Conversion;
class MyClass
{
static void Main()
{
// create an instance of ConversionOptions class.
ConversionOptions conversionOptions = new ConversionOptions(true);
//Assign value to left margin property.
conversionOptions.LeftMargin = 10;
// Call convert method to do conversion.
Converter.Convert(@"C:\MyDocument.doc", @"C:\MyOutput.pdf", conversionOptions);
}
}
Orientation
Gets or sets orientation for the page.
public Nullable<PageOrientation> Orientation { get; set; }
Public Property Orientation As Nullable(Of PageOrientation)
Property Value
Licensing Info
This property is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription 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 orientation property.
Imports ceTe.DynamicPDF.Conversion
Module Module1
Sub Main()
' create new instance of ExcelConversionOptions.
Dim conversionOptions As ExcelConversionOptions = New ExcelConversionOptions(false)
' assign page orientation.
conversionOptions.Orientation = PageOrientation.Landscape
' 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(false);
// assign page orientation.
conversionOptions.Orientation = PageOrientation.Landscape
//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");
}
}
PageRange
Gets the page range.
public PageRange PageRange { get; }
Public Property PageRange As PageRange
Property Value
Licensing Info
This property is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription 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 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");
}
}
PageScaling
Gets or sets the Excel page scaling.
public ExcelPageScaling PageScaling { get; set; }
Public Property PageScaling As ExcelPageScaling
Property Value
Licensing Info
This property is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Converter selected.
- A DynamicPDF Converter for .NET v3.X Developer license.
Examples
Example shows how to apply conversion options to specific worksheet.
Imports ceTe.DynamicPDF.Conversion
Module Module1
Sub Main()
' Create new instance of Converter by providing suitable parameters.
Dim excelConversion As ExcelConverter = New ExcelConverter("C:\MyDocument.xlsx")
' Events to know if conversion completed successfully or not
AddHandler excelConversionDocumentParsing, AddressOf xlConverter_DocumentParsing
' Call Convert method to start conversion
excelConversion.Convert("C:\MyOutput.pdf")
End Sub
Sub xlConverter_DocumentParsing(ByVal sender As Object, ByVal e As ExcelDocumentParsingEventArgs)
For Each excelWorksheet As ExcelWorksheet In e.Worksheets
Dim excelWSOptions As ExcelWorksheetConversionOptions = excelWorksheet.ConversionOptions
Dim xlPageScaling As ExcelPageScaling = excelWSOptions.PageScaling
Dim zoomxlPageScaling As ZoomExcelPageScaling = xlPageScaling.ZoomExcelPageScaling
zoomxlPageScaling.ZoomPercentage = 50
excelWorksheet.ConversionOptions.DefaultToFile = False
Next
End Sub
End Module
using ceTe.DynamicPDF.Conversion;
class MyClass
{
static void Main()
{
// Create new instance of Converter by providing suitable parameters.
ExcelConverter excelConverter = new ExcelConverter(@"C:\MyDocument.xlsx");
excelConverter.DocumentParsing += new ExcelDocumentParsing(xlConverter_DocumentParsing);
//Call Convert method to start conversion
excelConverter.Convert(@"C:\MyOutput.pdf");
}
static void xlConverter_DocumentParsing(object sender, ExcelDocumentParsingEventArgs e)
{
foreach (ExcelWorksheet excelWorksheet in e.Worksheets)
{
ExcelWorksheetConversionOptions excelWSOptions = excelWorksheet.ConversionOptions;
ExcelPageScaling xlPageScaling = excelWSOptions.PageScaling;
ZoomExcelPageScaling zoomxlPageScaling = xlPageScaling.ZoomExcelPageScaling;
zoomxlPageScaling.ZoomPercentage = 50;
excelWorksheet.ConversionOptions.DefaultToFile = false;
}
}
}
PageSize
Determines the Excel page size. Helps to retrieve or set the Excel page size.
public ExcelPageSize PageSize { get; set; }
Public Property PageSize As ExcelPageSize
Property Value
Licensing Info
This property is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription 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(false)
'Assign value to pagesize property.
ConversionOptions.PageSize = ExcelPageSize.A4
' 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(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");
}
}
PaperKind
Gets the paper kind for the PageSize properties.
public PaperKind PaperKind { get; }
Public Property PaperKind As PaperKind
Property Value
Licensing Info
This property is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Converter selected.
- A DynamicPDF Converter for .NET v3.X Developer license.
Producer
Gets or sets the producer meta data for the converted PDF. (Inherited from ConversionOptions)
public string Producer { get; set; }
Public Property Producer As String
Property Value
Licensing Info
This property is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription 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 the producer meta data property.
Imports ceTe.DynamicPDF.Conversion
Module Module1
Sub Main()
' create an instance of ConversionOptions
Dim conversionOptions As ConversionOptions = New ConversionOptions(PageSize.A4, PageOrientation.Portrait, 10)
' Assign value to producer property.
conversionOptions.Producer = "ceTe software"
' Call convert method to do conversion.
Converter.Convert("C:\MyDocument.doc", "C:\MyOutput.pdf", conversionOptions)
End Sub
End Module
using System;
using ceTe.DynamicPDF.Conversion;
class MyClass
{
static void Main()
{
// create an instance of ConversionOptions class.
ConversionOptions conversionOptions = new ConversionOptions(PageSize.A4, PageOrientation.Portrait, 10);
//Assign value to producer property.
conversionOptions.Producer = "ceTe software";
// Call convert method to do conversion.
Converter.Convert(@"C:\MyDocument.doc", @"C:\MyOutput.pdf", conversionOptions);
}
}
RightMargin
Gets or sets the right margin of the page in points. (Inherited from ConversionOptions)
public double RightMargin { get; set; }
Public Property RightMargin As Double
Property Value
Licensing Info
This property is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription 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 the right margin property.
Imports ceTe.DynamicPDF.Conversion
Module Module1
Sub Main()
' create an instance of ConversionOptions
Dim conversionOptions As ConversionOptions = New ConversionOptions(True)
'Assign value to right margin property
conversionOptions.RightMargin = 10
' Call convert method to do conversion.
Converter.Convert("C:\MyDocument.doc", "C:\MyOutput.pdf", conversionOptions)
End Sub
End Module
using System;
using ceTe.DynamicPDF.Conversion;
class MyClass
{
static void Main()
{
// create an instance of ConversionOptions class.
ConversionOptions conversionOptions = new ConversionOptions(true);
//Assign value to right margin property.
conversionOptions.RightMargin = 10;
// Call convert method to do conversion.
Converter.Convert(@"C:\MyDocument.doc", @"C:\MyOutput.pdf", conversionOptions);
}
}
Subject
Gets or sets the subject meta data for the converted PDF. (Inherited from ConversionOptions)
public string Subject { get; set; }
Public Property Subject As String
Property Value
Licensing Info
This property is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription 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 the subject property.
Imports ceTe.DynamicPDF.Conversion
Module Module1
Sub Main()
' create an instance of ConversionOptions
Dim conversionOptions As ConversionOptions = New ConversionOptions(PageSize.A4, PageOrientation.Portrait, 10)
' Assign value to subject property.
conversionOptions.Subject = "Word document conversion to pdf."
' Call convert method to do conversion.
Converter.Convert("C:\MyDocument.doc", "C:\MyOutput.pdf", conversionOptions)
End Sub
End Module
using System;
using ceTe.DynamicPDF.Conversion;
class MyClass
{
static void Main()
{
// create an instance of ConversionOptions class.
ConversionOptions conversionOptions = new ConversionOptions(PageSize.A4, PageOrientation.Portrait, 10);
//Assign value to Subject property.
conversionOptions.Subject = "Word document conversion to pdf.";
// Call convert method to do conversion.
Converter.Convert(@"C:\MyDocument.doc", @"C:\MyOutput.pdf", conversionOptions);
}
}
Tagging
Gets or sets the boolean value to specify if document structure tags for accesibility need to be enabled/disabled. (Inherited from ConversionOptions)
public bool Tagging { get; set; }
Public Property Tagging As Boolean
Property Value
Licensing Info
This property is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription 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 the Tagging property.
Imports ceTe.DynamicPDF.Conversion
Module Module1
Sub Main()
' create an instance of ConversionOptions
Dim conversionOptions As ConversionOptions = New ConversionOptions(PageSize.A4, PageOrientation.Portrait, 10)
'Assign value to Tagging property.
conversionOptions.Tagging = false
' Call convert method to do conversion.
Converter.Convert("C:\MyDocument.doc", "C:\MyOutput.pdf", conversionOptions)
End Sub
End Module
using System;
using ceTe.DynamicPDF.Conversion;
class MyClass
{
static void Main()
{
// create an instance of ConversionOptions class.
ConversionOptions conversionOptions = new ConversionOptions(PageSize.A4, PageOrientation.Portrait, 10);
//Assign value to Tagging property.
conversionOptions.Tagging = false;
// Call convert method to do conversion.
Converter.Convert(@"C:\MyDocument.doc", @"C:\MyOutput.pdf", conversionOptions);
}
}
Remarks
Some doccuments like Word and Excel contains structural information which is added to PDFs by default as Tags. This property can be used to disable that behaviour in order to reduce PDF size in some cases.
Title
Gets or sets the title meta data for the converted PDF. (Inherited from ConversionOptions)
public string Title { get; set; }
Public Property Title As String
Property Value
Licensing Info
This property is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription 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 the title property.
Imports ceTe.DynamicPDF.Conversion
Module Module1
Sub Main()
' create an instance of ConversionOptions
Dim conversionOptions As ConversionOptions = New ConversionOptions(PageSize.A4, PageOrientation.Portrait, 10)
' Assign value to Title property.
conversionOptions.Title = "MyDocument"
' Call convert method to do conversion.
Converter.Convert("C:\MyDocument.doc", "C:\MyOutput.pdf", conversionOptions)
End Sub
End Module
using System;
using ceTe.DynamicPDF.Conversion;
class MyClass
{
static void Main()
{
// create an instance of ConversionOptions class.
ConversionOptions conversionOptions = new ConversionOptions(PageSize.A4, PageOrientation.Portrait, 10);
//Assign value to title property.
conversionOptions.Title = "MyDocument";
// Call convert method to do conversion.
Converter.Convert(@"C:\MyDocument.doc", @"C:\MyOutput.pdf", conversionOptions);
}
}
TopMargin
Gets or sets the top margin of the page in points. (Inherited from ConversionOptions)
public double TopMargin { get; set; }
Public Property TopMargin As Double
Property Value
Licensing Info
This property is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription 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 the top margin property.
Imports ceTe.DynamicPDF.Conversion
Module Module1
Sub Main()
' create an instance of ConversionOptions
Dim conversionOptions As ConversionOptions = New ConversionOptions(True)
'Assign value to top margin property
conversionOptions.TopMargin = 10
' Call convert method to do conversion.
Converter.Convert("C:\MyDocument.doc", "C:\MyOutput.pdf", conversionOptions)
End Sub
End Module
using System;
using ceTe.DynamicPDF.Conversion;
class MyClass
{
static void Main()
{
// create an instance of ConversionOptions class.
ConversionOptions conversionOptions = new ConversionOptions(true);
//Assign value to top margin property.
conversionOptions.TopMargin = 10;
// Call convert method to do conversion.
Converter.Convert(@"C:\MyDocument.doc", @"C:\MyOutput.pdf", conversionOptions);
}
}
Width
Gets or sets the width of the page in points.
public double Width { get; }
Public Property Width As Double
Property Value
Licensing Info
This property is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription 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 read Page width property.
Imports ceTe.DynamicPDF.Conversion
Module Module1
Sub Main()
' create new instance of ExcelConversionOptions.
Dim conversionOptions As ExcelConversionOptions = New ExcelConversionOptions(false)
'getting the page width.
Console.Write("ExcelPage width is"+conversionOptions.Width);
' 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(false);
//getting the page width.
Console.Write("ExcelPage width is"+conversionOptions.Width);
//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
- obj: Object
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:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Converter selected.
- A DynamicPDF Converter for .NET v3.X Developer license.
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:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Converter selected.
- A DynamicPDF Converter for .NET v3.X Developer license.
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:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Converter selected.
- A DynamicPDF Converter for .NET v3.X Developer license.
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:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Converter selected.
- A DynamicPDF Converter for .NET v3.X Developer license.