TextConversionOptions Constructors
Overloads
TextConversionOptions([Optional] Boolean) | Initializes a new instance of the TextConversionOptions class. |
TextConversionOptions(Double, Double, Double) | Initializes a new instance of the TextConversionOptions class. |
TextConversionOptions(Double, Double, Double, Double) | Initializes a new instance of the TextConversionOptions class. |
TextConversionOptions(Double, Double, Double, Double, [Optional] Boolean) | Initializes a new instance of the TextConversionOptions class. |
TextConversionOptions(PageSize, PageOrientation, Double) | Initializes a new instance of the TextConversionOptions class. |
TextConversionOptions(PageSize, PageOrientation, Double, Double, [Optional] Boolean) | Initializes a new instance of the TextConversionOptions class. |
TextConversionOptions([Optional] Boolean)
Initializes a new instance of the TextConversionOptions class.
public TextConversionOptions([bool appendToPdf = False])
Public Sub New (Optional appendToPdf As Boolean = False)
Parameters
- 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 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 TextConversionOptions constructor.Imports ceTe.DynamicPDF.Conversion
Module Module1
Sub Main()
' create new instance of TextConversionOptions.
Dim conversionOptions As TextConversionOptions = New TextConversionOptions(True)
' Create new instance of Converter by providing suitable parameters.
Dim textConversion As TextConverter = New TextConverter(File.ReadAllText("C:\MyDocument.txt",conversionOptions)
' Call Convert method to start conversion
textConversion.Convert("C:\MyOutput.pdf")
End Sub
End Module
using ceTe.DynamicPDF.Conversion;
class MyClass
{
static void Main()
{
// create new instance of TextConversionOptions.
TextConversionOptions conversionOptions=new TextConversionOptions(true);
// Create new instance of Converter by providing suitable parameters.
TextConverter text = new TextConverter(File.ReadAllText(@"C:\MyDocument.txt",conversionOptions);
//Call Convert method to start conversion
text.Convert(@"C:\MyOutput.pdf");
}
}
TextConversionOptions(Double, Double, Double)
Initializes a new instance of the TextConversionOptions class.
public TextConversionOptions(double width, double height, double margins)
Public Sub New (width As Double, height As Double, margins As Double)
Parameters
- width
- Double
Width of the page in points
- height
- Double
Height of hte page 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 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 TextConversionOptions constructor with Width, height and margin as parameter.Imports ceTe.DynamicPDF.Conversion
Module Module1
Sub Main()
' create new instance of TextConversionOptions.
Dim conversionOptions As TextConversionOptions = New TextConversionOptions(500,1000,10)
' Create new instance of Converter by providing suitable parameters.
Dim textConversion As TextConverter = New TextConverter(File.ReadAllText("C:\MyDocument.txt",conversionOptions)
' Call Convert method to start conversion
textConversion.Convert("C:\MyOutput.pdf")
End Sub
End Module
using ceTe.DynamicPDF.Conversion;
class MyClass
{
static void Main()
{
// create new instance of TextConversionOptions.
TextConversionOptions conversionOptions=new TextConversionOptions(500,1000,10);
// Create new instance of Converter by providing suitable parameters.
TextConverter text = new TextConverter(File.ReadAllText(@"C:\MyDocument.txt",conversionOptions);
//Call Convert method to start conversion
text.Convert(@"C:\MyOutput.pdf");
}
}
TextConversionOptions(Double, Double, Double, Double)
Initializes a new instance of the TextConversionOptions class.
public TextConversionOptions(double width, double height, double leftAndRightMargins, double topAndBottomMargins)
Public Sub New (width As Double, height As Double, leftAndRightMargins As Double, topAndBottomMargins As Double)
Parameters
- width
- Double
Width of the page in points
- height
- Double
Height of the page in points
- leftAndRightMargins
- Double
The left and right margins of the page in points.
- topAndBottomMargins
- Double
The 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 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 TextConversionOptions constructor with Width, height and LeftAndRightMargin and TopAndBottomMargin as parameter.Imports ceTe.DynamicPDF.Conversion
Module Module1
Sub Main()
' create new instance of TextConversionOptions.
Dim conversionOptions As TextConversionOptions = New TextConversionOptions(500,1000,10,10)
' Create new instance of Converter by providing suitable parameters.
Dim textConversion As TextConverter = New TextConverter(File.ReadAllText("C:\MyDocument.txt",conversionOptions)
' Call Convert method to start conversion
textConversion.Convert("C:\MyOutput.pdf")
End Sub
End Module
using ceTe.DynamicPDF.Conversion;
class MyClass
{
static void Main()
{
// create new instance of TextConversionOptions.
TextConversionOptions conversionOptions=new TextConversionOptions(500,1000,10,10);
// Create new instance of Converter by providing suitable parameters.
TextConverter text = new TextConverter(File.ReadAllText(@"C:\MyDocument.txt",conversionOptions);
//Call Convert method to start conversion
text.Convert(@"C:\MyOutput.pdf");
}
}
TextConversionOptions(Double, Double, Double, Double, [Optional] Boolean)
Initializes a new instance of the TextConversionOptions class.
public TextConversionOptions(double width, double height, double leftAndRightMargins, double topAndBottomMargins, [bool appendToPdf = False])
Public Sub New (width As Double, height As Double, leftAndRightMargins As Double, topAndBottomMargins As Double, Optional appendToPdf As Boolean = False)
Parameters
- width
- Double
Width of the page in points
- height
- Double
Height of the page in points
- leftAndRightMargins
- Double
The left and right margins of the page in points.
- topAndBottomMargins
- Double
The 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 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 TextConversionOptions constructor with Width, height and LeftAndRightMargin, TopAndBottomMargin and appendToPDf as parameter.Imports ceTe.DynamicPDF.Conversion
Module Module1
Sub Main()
' create new instance of TextConversionOptions.
Dim conversionOptions As TextConversionOptions = New TextConversionOptions(500,1000,10,10,false)
' Create new instance of Converter by providing suitable parameters.
Dim textConversion As TextConverter = New TextConverter(File.ReadAllText("C:\MyDocument.txt",conversionOptions)
' Call Convert method to start conversion
textConversion.Convert("C:\MyOutput.pdf")
End Sub
End Module
using ceTe.DynamicPDF.Conversion;
class MyClass
{
static void Main()
{
// create new instance of TextConversionOptions.
TextConversionOptions conversionOptions=new TextConversionOptions(500,1000,10,10,false);
// Create new instance of Converter by providing suitable parameters.
TextConverter text = new TextConverter(File.ReadAllText(@"C:\MyDocument.txt",conversionOptions);
//Call Convert method to start conversion
text.Convert(@"C:\MyOutput.pdf");
}
}
TextConversionOptions(PageSize, PageOrientation, Double)
Initializes a new instance of the TextConversionOptions class.
public TextConversionOptions(PageSize size, PageOrientation orientation, double margins)
Public Sub New (size As PageSize, orientation As PageOrientation, margins As Double)
Parameters
- size
- PageSize
Size of the page
- 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 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 TextConversionOptions constructor with PageSize,PageOrientation and Margin as parameter.Imports ceTe.DynamicPDF.Conversion
Module Module1
Sub Main()
' create new instance of TextConversionOptions.
Dim conversionOptions As TextConversionOptions = New TextConversionOptions(PageSize.A4,PageOrientation.Portrait,10)
' Create new instance of Converter by providing suitable parameters.
Dim textConversion As TextConverter = New TextConverter(File.ReadAllText("C:\MyDocument.txt",conversionOptions)
' Call Convert method to start conversion
textConversion.Convert("C:\MyOutput.pdf")
End Sub
End Module
using ceTe.DynamicPDF.Conversion;
class MyClass
{
static void Main()
{
// create new instance of TextConversionOptions.
TextConversionOptions conversionOptions=new TextConversionOptions(PageSize.A4,PageOrientation.Portrait,10);
// Create new instance of Converter by providing suitable parameters.
TextConverter text = new TextConverter(File.ReadAllText(@"C:\MyDocument.txt",conversionOptions);
//Call Convert method to start conversion
text.Convert(@"C:\MyOutput.pdf");
}
}
TextConversionOptions(PageSize, PageOrientation, Double, Double, [Optional] Boolean)
Initializes a new instance of the TextConversionOptions class.
public TextConversionOptions(PageSize size, PageOrientation orientation, double leftAndRightMargins, double topAndBottomMargins, [bool appendToPdf = False])
Public Sub New (size As PageSize, orientation As PageOrientation, leftAndRightMargins As Double, topAndBottomMargins As Double, Optional appendToPdf As Boolean = False)
Parameters
- size
- PageSize
Size of the page
- orientation
- PageOrientation
Orientation of the page in points
- leftAndRightMargins
- Double
The left and right margins of the page in points.
- topAndBottomMargins
- Double
The 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 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 TextConversionOptions constructor with PageSize, PageOrientation,LeftAndRightMargin, TopAndBottomMargin and appendToPDf as parameter.Imports ceTe.DynamicPDF.Conversion
Module Module1
Sub Main()
' create new instance of TextConversionOptions.
Dim conversionOptions As TextConversionOptions = New TextConversionOptions(PageSize.A5,PageOrienation.Portrait,10,10,false)
' Create new instance of Converter by providing suitable parameters.
Dim textConversion As TextConverter = New TextConverter(File.ReadAllText("C:\MyDocument.txt",conversionOptions)
' Call Convert method to start conversion
textConversion.Convert("C:\MyOutput.pdf")
End Sub
End Module
using ceTe.DynamicPDF.Conversion;
class MyClass
{
static void Main()
{
// create new instance of TextConversionOptions.
TextConversionOptions conversionOptions=new TextConversionOptions(PageSize.A5,PageOrientation.Portrait,10,10,false);
// Create new instance of Converter by providing suitable parameters.
TextConverter text = new TextConverter(File.ReadAllText(@"C:\MyDocument.txt",conversionOptions);
//Call Convert method to start conversion
text.Convert(@"C:\MyOutput.pdf");
}
}