Skip to main content

VisioConversionOptions

Version: 3.0

cete.dynamicpdf.conversion.visioconversionoptions

VisioConversionOptions​

Defines properties and methods that are needed for a Visio Conversion

public class VisioConversionOptions : ConversionOptions
Public Class VisioConversionOptions
Inherits ConversionOptions

Inheritance: Object → ConversionOptions → VisioConversionOptions

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 use VisioConversionOptions constructor.

Imports ceTe.DynamicPDF.Conversion

Module Module1

Sub Main()

' create new instance of VisioConversionOptions.
Dim conversionOptions As VisioConversionOptions = New VisioConversionOptions(True)

' Create new instance of Converter by providing suitable parameters.
Dim visioConversion As VisioConverter = New VisioConverter("C:\MyDocument.vsd",conversionOptions)

' Call Convert method to start conversion
visioConversion.Convert("C:\MyOutput.pdf")

End Sub

End Module
using ceTe.DynamicPDF.Conversion;

class MyClass
{
static void Main()
{
// create new instance of VisioConversionOptions.
VisioConversionOptions conversionOptions=new VisioConversionOptions(true);

// Create new instance of Converter by providing suitable parameters.
VisioConverter visio = new VisioConverter(@"C:\MyDocument.vsd",conversionOptions);

//Call Convert method to start conversion
visio.Convert(@"C:\MyOutput.pdf");
}
}

Constructors​

VisioConversionOptions([Optional] Boolean)​

Defines properies and methods that are neeeded for Visio conversions.

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

Parameters​

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:

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​

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. (Inherited from ConversionOptions)

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

CancelToken​

Gets or sets a CancellationToken for conversion task. (Inherited from ConversionOptions)

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. (Inherited from ConversionOptions)

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

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​

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

PdfA​

Gets or sets the boolean value to specify if converted pdf will adhare to PDF/A (ISO 19005-1) standard.

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

Property Value​

Boolean

Licensing Info​

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

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​

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

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​

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. (Inherited from ConversionOptions)

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.

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​

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

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