RtfConversionOptions Constructors
Overloads
RtfConversionOptions([Optional] Boolean) | Initializes a new instance of the RtfConversionOptions class. |
RtfConversionOptions(Double, Double, Double) | Initializes a new instance of the RtfConversionOptions class. |
RtfConversionOptions(Double, Double, Double, Double) | Initializes a new instance of the RtfConversionOptions class. |
RtfConversionOptions(Double, Double, Double, Double, [Optional] Boolean) | Initializes a new instance of the RtfConversionOptions class. |
RtfConversionOptions(PageSize, PageOrientation, Double) | Initializes a new instance of the RtfConversionOptions class. |
RtfConversionOptions(PageSize, PageOrientation, Double, Double, [Optional] Boolean) | Initializes a new instance of the RtfConversionOptions class. |
RtfConversionOptions([Optional] Boolean)
Initializes a new instance of the RtfConversionOptions class.
public RtfConversionOptions([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 RtfConversionOptions constructor with appendToPdf as parameter.Imports ceTe.DynamicPDF.Conversion
Module Module1
Sub Main()
' create new instance of RtfConversionOptions.
Dim conversionOptions As RtfConversionOptions = New RtfConversionOptions(True)
' Create new instance of Converter by providing suitable parameters.
Dim rtfConversion As RtfConverter = New RtfConverter("C:\MyDocument.rtf",conversionOptions)
' Call Convert method to start conversion
rtfConversion.Convert("C:\MyOutput.pdf")
End Sub
End Module
using ceTe.DynamicPDF.Conversion;
class MyClass
{
static void Main()
{
// create new instance of RtfConversionOptions.
RtfConversionOptions conversionOptions=new RtfConversionOptions(true);
// Create new instance of Converter by providing suitable parameters.
RtfConverter rtf = new RtfConverter(@"C:\MyDocument.rtf",conversionOptions);
//Call Convert method to start conversion
rtf.Convert(@"C:\MyOutput.pdf");
}
}
RtfConversionOptions(Double, Double, Double)
Initializes a new instance of the RtfConversionOptions class.
public RtfConversionOptions(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 RtfConversionOptions constructor with Width, height and margin as parameter.Imports ceTe.DynamicPDF.Conversion
Module Module1
Sub Main()
' create new instance of RtfConversionOptions.
Dim conversionOptions As RtfConversionOptions = New RtfConversionOptions(500,1000,10)
' Create new instance of Converter by providing suitable parameters.
Dim rtfConversion As RtfConverter = New RtfConverter("C:\MyDocument.rtf",conversionOptions)
' Call Convert method to start conversion
rtfConversion.Convert("C:\MyOutput.pdf")
End Sub
End Module
using ceTe.DynamicPDF.Conversion;
class MyClass
{
static void Main()
{
// create new instance of RtfConversionOptions.
RtfConversionOptions conversionOptions=new RtfConversionOptions(500,1000,10);
// Create new instance of Converter by providing suitable parameters.
RtfConverter rtf = new RtfConverter(@"C:\MyDocument.rtf",conversionOptions);
//Call Convert method to start conversion
rtf.Convert(@"C:\MyOutput.pdf");
}
}
RtfConversionOptions(Double, Double, Double, Double)
Initializes a new instance of the RtfConversionOptions class.
public RtfConversionOptions(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 RtfConversionOptions constructor with Width, height and LeftAndRightMargin and TopAndBottomMargin as parameter.Imports ceTe.DynamicPDF.Conversion
Module Module1
Sub Main()
' create new instance of RtfConversionOptions.
Dim conversionOptions As RtfConversionOptions = New RtfConversionOptions(500,1000,10,10)
' Create new instance of Converter by providing suitable parameters.
Dim rtfConversion As RtfConverter = New RtfConverter("C:\MyDocument.rtf",conversionOptions)
' Call Convert method to start conversion
rtfConversion.Convert("C:\MyOutput.pdf")
End Sub
End Module
using ceTe.DynamicPDF.Conversion;
class MyClass
{
static void Main()
{
// create new instance of RtfConversionOptions.
RtfConversionOptions conversionOptions=new RtfConversionOptions(500,1000,10,10);
// Create new instance of Converter by providing suitable parameters.
RtfConverter rtf = new RtfConverter(@"C:\MyDocument.rtf",conversionOptions);
//Call Convert method to start conversion
rtf.Convert(@"C:\MyOutput.pdf");
}
}
RtfConversionOptions(Double, Double, Double, Double, [Optional] Boolean)
Initializes a new instance of the RtfConversionOptions class.
public RtfConversionOptions(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 RtfConversionOptions constructor with Width, height and LeftAndRightMargin, TopAndBottomMargin and appendToPDf as parameter.Imports ceTe.DynamicPDF.Conversion
Module Module1
Sub Main()
' create new instance of RtfConversionOptions.
Dim conversionOptions As RtfConversionOptions = New RtfConversionOptions(500,1000,10,10,false)
' Create new instance of Converter by providing suitable parameters.
Dim rtfConversion As RtfConverter = New RtfConverter("C:\MyDocument.rtf",conversionOptions)
' Call Convert method to start conversion
rtfConversion.Convert("C:\MyOutput.pdf")
End Sub
End Module
using ceTe.DynamicPDF.Conversion;
class MyClass
{
static void Main()
{
// create new instance of RtfConversionOptions.
RtfConversionOptions conversionOptions=new RtfConversionOptions(500,1000,10,10,false);
// Create new instance of Converter by providing suitable parameters.
RtfConverter rtf = new RtfConverter(@"C:\MyDocument.rtf",conversionOptions);
//Call Convert method to start conversion
rtf.Convert(@"C:\MyOutput.pdf");
}
}
RtfConversionOptions(PageSize, PageOrientation, Double)
Initializes a new instance of the RtfConversionOptions class.
public RtfConversionOptions(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 RtfConversionOptions constructor with PageSize,PageOrientation and Margin as parameter.Imports ceTe.DynamicPDF.Conversion
Module Module1
Sub Main()
' create new instance of RtfConversionOptions.
Dim conversionOptions As RtfConversionOptions = New RtfConversionOptions(PageSize.A4,PageOrientation.Portrait,10)
' Create new instance of Converter by providing suitable parameters.
Dim rtfConversion As RtfConverter = New RtfConverter("C:\MyDocument.rtf",conversionOptions)
' Call Convert method to start conversion
rtfConversion.Convert("C:\MyOutput.pdf")
End Sub
End Module
using ceTe.DynamicPDF.Conversion;
class MyClass
{
static void Main()
{
// create new instance of RtfConversionOptions.
RtfConversionOptions conversionOptions=new RtfConversionOptions(PageSize.A4,PageOrientation.Portrait,10);
// Create new instance of Converter by providing suitable parameters.
RtfConverter rtf = new RtfConverter(@"C:\MyDocument.rtf",conversionOptions);
//Call Convert method to start conversion
rtf.Convert(@"C:\MyOutput.pdf");
}
}
RtfConversionOptions(PageSize, PageOrientation, Double, Double, [Optional] Boolean)
Initializes a new instance of the RtfConversionOptions class.
public RtfConversionOptions(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 RtfConversionOptions constructor with PageSize, PageOrientation,LeftAndRightMargin, TopAndBottomMargin and appendToPDf as parameter.Imports ceTe.DynamicPDF.Conversion
Module Module1
Sub Main()
' create new instance of RtfConversionOptions.
Dim conversionOptions As RtfConversionOptions = New RtfConversionOptions(PageSize.A5,PageOrienation.Portrait,10,10,false)
' Create new instance of Converter by providing suitable parameters.
Dim rtfConversion As RtfConverter = New RtfConverter("C:\MyDocument.rtf",conversionOptions)
' Call Convert method to start conversion
rtfConversion.Convert("C:\MyOutput.pdf")
End Sub
End Module
using ceTe.DynamicPDF.Conversion;
class MyClass
{
static void Main()
{
// create new instance of RtfConversionOptions.
RtfConversionOptions conversionOptions=new RtfConversionOptions(PageSize.A5,PageOrientation.Portrait,10,10,false);
// Create new instance of Converter by providing suitable parameters.
RtfConverter rtf = new RtfConverter(@"C:\MyDocument.rtf",conversionOptions);
//Call Convert method to start conversion
rtf.Convert(@"C:\MyOutput.pdf");
}
}