Skip to main content

ConversionOptions

Version: 3.0

cete.dynamicpdf.conversion.conversionoptions

ConversionOptions​

Defines properties and methods for conversion options.

public class ConversionOptions
Public Class ConversionOptions

Inheritance: Object → ConversionOptions

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:

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.

public ConversionOptions([bool appendToPdf = False])
Public Sub New (Optional appendToPdf As Boolean = False)

Parameters​

Specify if append conversionOptions to be enabled.

Licensing Info​

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

Examples​

This example shows how to use appendToPdf conversion option.

Imports ceTe.DynamicPDF.Conversion

Module Module1

Sub Main()

' create an instance of ConversionOptions
Dim conversionOptions As ConversionOptions = New ConversionOptions(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(true);

// Call convert method to do conversion.
Converter.Convert(@"C:\MyDocument.doc", @"C:\MyOutput.pdf", conversionOptions);
}
}

ConversionOptions(Double, Double, Double)​

Initializes a new instance of the ConversionOptions class.

public ConversionOptions(double width, double height, double margins)
Public Sub New (width As Double, height As Double, margins As Double)

Parameters​

The width of the page in points.

The height of the page in points.

The 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:

Examples​

This example shows how to convert source file to PDF with custom page size.

Imports ceTe.DynamicPDF.Conversion

Module Module1

Sub Main()

' create an instance of ConversionOptions
Dim conversionOptions As ConversionOptions = New ConversionOptions(600, 700, 50)

' 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(600, 700, 50);

// Call convert method to do conversion.
Converter.Convert(@"C:\MyDocument.doc", @"C:\MyOutput.pdf", conversionOptions);
}
}

ConversionOptions(Double, Double, Double, [Optional] Boolean)​

Initializes a new instance of the ConversionOptions class.

public ConversionOptions(double width, double height, double margins, [bool appendToPdf = False])
Public Sub New (width As Double, height As Double, margins As Double, Optional appendToPdf As Boolean = False)

Parameters​

The width of the page in points.

The height of the page in points.

The margins of the page in points.

Specify if append conversionOptions to be enabled.

Licensing Info​

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

Examples​

This example shows how to convert source file to PDF with custom page size and append to the existing PDF file.

Imports ceTe.DynamicPDF.Conversion

Module Module1

Sub Main()

' create an instance of ConversionOptions
Dim conversionOptions As ConversionOptions = New ConversionOptions(600, 700, 50,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(600, 700, 50,true);

// Call convert method to do conversion.
Converter.Convert(@"C:\MyDocument.doc", @"C:\MyOutput.pdf", conversionOptions);
}
}

ConversionOptions(Double, Double, Double, Double)​

Initializes a new instance of the ConversionOptions class.

public ConversionOptions(double width, double height, double leftAndRightMargins, double topAndBottomMargins)
Public Sub New (width As Double, height As Double, leftAndRightMargins As Double, topAndBottomMargins As Double)

Parameters​

The width of the page in points.

The height of the page in points.

The left and right margins of the page in points.

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:

Examples​

This example shows how to convert source file to PDF with custom page size and margin.

Imports ceTe.DynamicPDF.Conversion

Module Module1

Sub Main()

' create an instance of ConversionOptions
Dim conversionOptions As ConversionOptions = New ConversionOptions(600, 700, 50, 40)

' 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(600f,700f,50f,40f);

// Call convert method to do conversion.
Converter.Convert(@"C:\MyDocument.doc", @"C:\MyOutput.pdf", conversionOptions);
}
}

ConversionOptions(Double, Double, Double, Double, [Optional] Boolean)​

Initializes a new instance of the ConversionOptions class.

public ConversionOptions(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​

The width of the page in points.

The height of the page in points.

The left and right margins of the page in points.

The top and bottom margins of the page in points.

Specify if append conversionOptions to be enabled.

Licensing Info​

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

Examples​

This example shows how to convert source file to PDF with custom page size and append to the existing PDF file.

Imports ceTe.DynamicPDF.Conversion

Module Module1

Sub Main()

' create an instance of ConversionOptions
Dim conversionOptions As ConversionOptions = New ConversionOptions(600, 700, 50, 40, 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(600f, 700f, 50f, 40f, true);

// Call convert method to do conversion.
Converter.Convert(@"C:\MyDocument.doc", @"C:\MyOutput.pdf", conversionOptions);
}
}

ConversionOptions(PageSize, PageOrientation, Double)​

Initializes a new instance of the ConversionOptions class.

public ConversionOptions(PageSize size, PageOrientation orientation, double margins)
Public Sub New (size As PageSize, orientation As PageOrientation, margins As Double)

Parameters​

The size of the page.

The orientation of the page.

The 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:

Examples​

This example shows how to convert source file to PDF with predefined paper.

Imports ceTe.DynamicPDF.Conversion

Module Module1

Sub Main()

// create an instance of ConversionOptions class.
Dim conversionOptions As ConversionOptions = New ConversionOptions(PageSize.A4, PageOrientation.Portrait, 10)

// Call Convert method to start conversion
Converter.Convert("C:\MyDocument.doc", "C:\MyOutput.pdf", conversionOptions)
End Sub

End Module
using System;
using System.IO;
using ceTe.DynamicPDF.Conversion;

class MyClass
{
static void Main()
{

// create an instance of ConversionOptions class.
ConversionOptions conversionOptions = new ConversionOptions(PageSize.A4, PageOrientation.Portrait, 10);

// Call Convert method to start conversion
Converter.Convert("C:\MyDocument.doc", "C:\MyOutput.pdf", conversionOptions)
}

}

ConversionOptions(PageSize, PageOrientation, Double, Double, [Optional] Boolean)​

Initializes a new instance of the ConversionOptions class.

public ConversionOptions(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​

The size of the page.

The orientation of the page.

The left and right margins of the page in points.

The top and bottom margins of the page in points.

Specify if append conversionOptions to be enabled.

Licensing Info​

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

Examples​

This example shows how to convert source file to PDF with predefined paper and append to the existing PDF file.

Imports ceTe.DynamicPDF.Conversion

Module Module1

Sub Main()

' create an instance of ConversionOptions
Dim conversionOptions As ConversionOptions = New ConversionOptions(PageSize.Letter, PageOrientation.Portrait, 75, 75, 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.Letter, PageOrientation.Portrait, 75f, 75f, true);

// Call convert method to do conversion.
Converter.Convert(@"C:\MyDocument.doc", @"C:\MyOutput.pdf", conversionOptions);
}
}

Properties​

AppendToPdf​

Gets or sets the boolean value to specify if append to pdf conversionOptions to be enabled.

public bool AppendToPdf { get; set; }
Public Property AppendToPdf As Boolean

Property Value​

Boolean

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 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.

public string Author { get; set; }
Public Property Author As String

Property Value​

String

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 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.

public double BottomMargin { get; set; }
Public Property BottomMargin As Double

Property Value​

Double

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 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.

public CancellationToken CancelToken { get; set; }
Public Property CancelToken As CancellationToken

Property Value​

CancellationToken

Licensing Info​

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

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.

Creator​

Gets or sets the creator meta data for the converted PDF.

public string Creator { get; set; }
Public Property Creator As String

Property Value​

String

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 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; set; }
Public Property Height As Double

Property Value​

Double

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 the height property.

Imports ceTe.DynamicPDF.Conversion

Module Module1

Sub Main()

' create an instance of ConversionOptions
Dim conversionOptions As ConversionOptions = New ConversionOptions(True)

'Assign value to height property
conversionOptions.Height = 600

' 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 height property.
conversionOptions.Height = 600;

// Call convert method to do conversion.
Converter.Convert(@"C:\MyDocument.doc", @"C:\MyOutput.pdf", conversionOptions);
}
}

Keywords​

Gets or sets the keywords meta data for the converted PDF.

public string Keywords { get; set; }
Public Property Keywords As String

Property Value​

String

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 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.

public double LeftMargin { get; set; }
Public Property LeftMargin As Double

Property Value​

Double

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

Logging​

Gets or sets the Temporary directory path.

public static LogConfig Logging { get; }
Public Shared Property Logging As LogConfig

Property Value​

LogConfig

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 the TemporaryDirectory property.

Imports ceTe.DynamicPDF.Conversion

Module Module1

Sub Main()

' Assign level of logging to log config.
ConversionOptions.Logging.Level = LogLevel.Warning

' Call convert method to do conversion.
Converter.Convert("C:\MyDocument.doc", "C:\MyOutput.pdf")

End Sub

End Module
using System;
using ceTe.DynamicPDF.Conversion;

class MyClass
{
static void Main()
{
//Assign level of logging to log config.
ConversionOptions.Logging.Level = LogLevel.Warning;

// Call convert method to do conversion.
Converter.Convert(@"C:\MyDocument.doc", @"C:\MyOutput.pdf");
}
}

PaperKind​

Gets or sets paper kind for the pages properties.

public PaperKind PaperKind { get; set; }
Public Property PaperKind As PaperKind

Property Value​

PaperKind

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 the Page kind property.

Imports ceTe.DynamicPDF.Conversion

Module Module1

Sub Main()

' create an instance of ConversionOptions
Dim conversionOptions As ConversionOptions = New ConversionOptions(True)

conversionOptions.PaperKind = PaperKind.A4

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

conversionOptions.PaperKind = PaperKind.A4;
// Call convert method to do conversion.
Converter.Convert(@"C:\MyDocument.doc", @"C:\MyOutput.pdf", conversionOptions);
}
}

Producer​

Gets or sets the producer meta data for the converted PDF.

public string Producer { get; set; }
Public Property Producer As String

Property Value​

String

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 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.

public double RightMargin { get; set; }
Public Property RightMargin As Double

Property Value​

Double

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 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.

public string Subject { get; set; }
Public Property Subject As String

Property Value​

String

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 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.

public bool Tagging { get; set; }
Public Property Tagging As Boolean

Property Value​

Boolean

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 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.

TemporaryDirectory​

Gets or sets the Temporary directory path.

public static string TemporaryDirectory { get; set; }
Public Shared Property TemporaryDirectory As String

Property Value​

String

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 the TemporaryDirectory property.

Imports ceTe.DynamicPDF.Conversion

Module Module1

Sub Main()

' Assign value to temporary directory path.
ConversionOptions.TemporaryDirectory = "C:\Temp"

' Call convert method to do conversion.
Converter.Convert("C:\MyDocument.doc", "C:\MyOutput.pdf")

End Sub

End Module
using System;
using ceTe.DynamicPDF.Conversion;

class MyClass
{
static void Main()
{
//Assign value to temporary directory path.
ConversionOptions.TemporaryDirectory = "C:\Temp";

// Call convert method to do conversion.
Converter.Convert(@"C:\MyDocument.doc", @"C:\MyOutput.pdf");
}
}

Title​

Gets or sets the title meta data for the converted PDF.

public string Title { get; set; }
Public Property Title As String

Property Value​

String

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 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.

public double TopMargin { get; set; }
Public Property TopMargin As Double

Property Value​

Double

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 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; set; }
Public Property Width As Double

Property Value​

Double

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 the width property.

Imports ceTe.DynamicPDF.Conversion

Module Module1

Sub Main()

' create an instance of ConversionOptions
Dim conversionOptions As ConversionOptions = New ConversionOptions(True)

'Assign value to width property
conversionOptions.Width = 600

' 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 width property.
conversionOptions.Width = 600;

// Call convert method to do conversion.
Converter.Convert(@"C:\MyDocument.doc", @"C:\MyOutput.pdf", conversionOptions);
}
}

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