ConversionOptions
Defines properties and methods for conversion options.
public class ConversionOptions
Public Class ConversionOptions
Inheritance: ObjectConversionOptions
Derived: ExcelConversionOptions, HtmlConversionOptions, ImageConversionOptions, PowerPointConversionOptions, RtfConversionOptions, TextConversionOptions, TiffConversionOptions, VisioConversionOptions, WordConversionOptions
Licensing Info
This class 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 add conversion options.Imports ceTe.DynamicPDF.Conversion
Module Module1
Sub Main()
' create an instance of ConversionOptions
Dim conversionOptions As ConversionOptions = New ConversionOptions(PageSize.Letter, PageOrientation.Portrait, 75)
' 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.Letter, PageOrientation.Portrait, 75f);
// Call convert method to do conversion.
Converter.Convert(@"C:\MyDocument.doc", @"C:\MyOutput.pdf", conversionOptions);
}
}
Constructors
| ConversionOptions([Optional] Boolean) | Initializes a new instance of the ConversionOptions class. |
| ConversionOptions(Double, Double, Double) | Initializes a new instance of the ConversionOptions class. |
| ConversionOptions(Double, Double, Double, [Optional] Boolean) | Initializes a new instance of the ConversionOptions class. |
| ConversionOptions(Double, Double, Double, Double) | Initializes a new instance of the ConversionOptions class. |
| ConversionOptions(Double, Double, Double, Double, [Optional] Boolean) | Initializes a new instance of the ConversionOptions class. |
| ConversionOptions(PageSize, PageOrientation, Double) | Initializes a new instance of the ConversionOptions class. |
| ConversionOptions(PageSize, PageOrientation, Double, Double, [Optional] Boolean) | Initializes a new instance of the ConversionOptions class. |
Properties
| AppendToPdf | Gets or sets the boolean value to specify if append to pdf conversionOptions to be enabled. |
| Author | Gets or sets the author meta data for the converted PDF. |
| BottomMargin | Gets or sets the bottom margin of the page. |
| CancelToken | Gets or sets a CancellationToken for conversion task. |
| Creator | Gets or sets the creator meta data for the converted PDF. |
| Height | Gets or sets the height of the page in points. |
| Keywords | Gets or sets the keywords meta data for the converted PDF. |
| LeftMargin | Gets or sets the left margin of the page in points. |
| Logging | Gets or sets the Temporary directory path. |
| PaperKind | Gets or sets paper kind for the pages properties. |
| Producer | Gets or sets the producer meta data for the converted PDF. |
| RightMargin | Gets or sets the right margin of the page in points. |
| Subject | Gets or sets the subject meta data for the converted PDF. |
| TemporaryDirectory | Gets or sets the Temporary directory path. |
| Title | Gets or sets the title meta data for the converted PDF. |
| TopMargin | Gets or sets the top margin of the page in points. |
| Width | Gets or sets the width of the page in points. |
Methods
| Equals(Object) | Determines whether the specified Object is equal to the current Object . (Inherited from Object) |
| GetHashCode() | Serves as a hash function for a particular type. (Inherited from Object) |
| GetType() | Gets the Type of the current instance. (Inherited from Object) |
| ToString() | Returns a String that represents the current Object . (Inherited from Object) |