cete.dynamicpdf.conversion.powerpointconversionoptions
PowerPointConversionOptions
- Namespace: ceTe.DynamicPDF.Conversion
- Assemblies: DynamicPDF.Converter.dll
Defines properties and methods that are needed for a Powerpoint Conversion
public class PowerPointConversionOptions : ConversionOptions
Public Class PowerPointConversionOptions
Inherits ConversionOptions
Inheritance: Object → ConversionOptions → PowerPointConversionOptions
Licensing Info
This class is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Converter selected.
- A DynamicPDF Converter for .NET v3.X Developer license.
Examples
Example shows how to use powerPointConversionOptions class.
Imports ceTe.DynamicPDF.Conversion
Module Module1
Sub Main()
' Set PowerPoint conversion options
Dim options As PowerPointConversionOptions = New PowerPointConversionOptions(650.0, 750.0, 75.0)
Dim powerPoint As PowerPointConverter =new PowerPointConverter ("C:\MyDocument.ppt",options)
' Call Convert method to do conversion synchronously
powerPoint.Convert( "C:\MyOutput.pdf")
End Sub
End Module
using System;
using ceTe.DynamicPDF.Conversion;
class MyClass
{
static void Main()
{
// Set PowerPoint conversion options
PowerPointConversionOptions options = new PowerPointConversionOptions(650.0,750.0,75.0);
PowerPointConverter powerPoint=new PowerPointConverter("C:\MyDocument.ppt",options);
powerPoint.Convert("C:\MyOutput.pdf");
}
}
Constructors
PowerPointConversionOptions([Optional] Boolean)
Initializes a new instance of the PowerPointConversionOptions class.
public PowerPointConversionOptions([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 https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Converter selected.
- A DynamicPDF Converter for .NET v3.X Developer license.
Examples
Example shows how to use PowerPointConversionOptions with appendToPdf as parameter.
Imports ceTe.DynamicPDF.Conversion
Module Module1
Sub Main()
' Set PowerPoint conversion options
Dim options As PowerPointConversionOptions = New PowerPointConversionOptions(True)
Dim powerPoint As PowerPointConverter =new PowerPointConverter ("C:\MyDocument.ppt",options)
' Call Convert method to do conversion synchronously
powerPoint.Convert( "C:\MyOutput.pdf")
End Sub
End Module
using System;
using ceTe.DynamicPDF.Conversion;
class MyClass
{
static void Main()
{
// Set PowerPoint conversion options
PowerPointConversionOptions options = new PowerPointConversionOptions(true);
PowerPointConverter powerPoint=new PowerPointConverter("C:\MyDocument.ppt",options);
powerPoint.Convert("C:\MyOutput.pdf");
}
}
PowerPointConversionOptions(Double, Double, Double)
Initializes a new instance of the PowerPointConversionOptions class.
public PowerPointConversionOptions(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 https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Converter selected.
- A DynamicPDF Converter for .NET v3.X Developer license.
Examples
Example shows how to use PowerPointConversionOptions with width, height and margin as parameter.
Imports ceTe.DynamicPDF.Conversion
Module Module1
Sub Main()
' Set PowerPoint conversion options
Dim options As PowerPointConversionOptions = New PowerPointConversionOptions(500,1000,10)
Dim powerPoint As PowerPointConverter =new PowerPointConverter ("C:\MyDocument.ppt",options)
' Call Convert method to do conversion synchronously
powerPoint.Convert( "C:\MyOutput.pdf")
End Sub
End Module
using System;
using ceTe.DynamicPDF.Conversion;
class MyClass
{
static void Main()
{
// Set PowerPoint conversion options
PowerPointConversionOptions options = new PowerPointConversionOptions(500,1000,10);
PowerPointConverter powerPoint=new PowerPointConverter("C:\MyDocument.ppt",options);
powerPoint.Convert("C:\MyOutput.pdf");
}
}
PowerPointConversionOptions(Double, Double, Double, Double)
Initializes a new instance of the PowerPointConversionOptions class.
public PowerPointConversionOptions(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 https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Converter selected.
- A DynamicPDF Converter for .NET v3.X Developer license.
Examples
Example shows how to use PowerPointConversionOptions with width,height, LeftAndRightMargin and TopAndBottomMargin as parameter.
Imports ceTe.DynamicPDF.Conversion
Module Module1
Sub Main()
' Set PowerPoint conversion options
Dim options As PowerPointConversionOptions = New PowerPointConversionOptions(500,1000,10,10)
Dim powerPoint As PowerPointConverter =new PowerPointConverter ("C:\MyDocument.ppt",options)
' Call Convert method to do conversion synchronously
powerPoint.Convert( "C:\MyOutput.pdf")
End Sub
End Module
using System;
using ceTe.DynamicPDF.Conversion;
class MyClass
{
static void Main()
{
// Set PowerPoint conversion options
PowerPointConversionOptions options = new PowerPointConversionOptions(500,1000,10,10);
PowerPointConverter powerPoint=new PowerPointConverter("C:\MyDocument.ppt",options);
powerPoint.Convert("C:\MyOutput.pdf");
}
}
PowerPointConversionOptions(Double, Double, Double, Double, [Optional] Boolean)
Initializes a new instance of the PowerPointConversionOptions class.
public PowerPointConversionOptions(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 https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Converter selected.
- A DynamicPDF Converter for .NET v3.X Developer license.
Examples
Example shows how to use PowerPointConversionOptions with width,height, LeftAndRightMargin, TopAndBottomMargin and appendToPdf as parameter.
Imports ceTe.DynamicPDF.Conversion
Module Module1
Sub Main()
' Set PowerPoint conversion options
Dim options As PowerPointConversionOptions = New PowerPointConversionOptions(500,1000,10,10,False)
Dim powerPoint As PowerPointConverter =new PowerPointConverter ("C:\MyDocument.ppt",options)
' Call Convert method to do conversion synchronously
powerPoint.Convert( "C:\MyOutput.pdf")
End Sub
End Module
using System;
using ceTe.DynamicPDF.Conversion;
class MyClass
{
static void Main()
{
// Set PowerPoint conversion options
PowerPointConversionOptions options = new PowerPointConversionOptions(500,1000,10,10,flase);
PowerPointConverter powerPoint=new PowerPointConverter("C:\MyDocument.ppt",options);
powerPoint.Convert("C:\MyOutput.pdf");
}
}
PowerPointConversionOptions(PageSize, PageOrientation, Double)
Initializes a new instance of the PowerPointConversionOptions class.
public PowerPointConversionOptions(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 https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Converter selected.
- A DynamicPDF Converter for .NET v3.X Developer license.
Examples
Example shows how to use PowerPointConversionOptions with PageSize,PageOrientaion, margins as parameter.
Imports ceTe.DynamicPDF.Conversion
Module Module1
Sub Main()
' Set PowerPoint conversion options
Dim options As PowerPointConversionOptions = New PowerPointConversionOptions(PageSize.A4,PageOrientation.Portrait,10)
Dim powerPoint As PowerPointConverter =new PowerPointConverter ("C:\MyDocument.ppt",options)
' Call Convert method to do conversion synchronously
powerPoint.Convert( "C:\MyOutput.pdf")
End Sub
End Module
using System;
using ceTe.DynamicPDF.Conversion;
class MyClass
{
static void Main()
{
// Set PowerPoint conversion options
PowerPointConversionOptions options = new PowerPointConversionOptions(PageSize.A4,PageOrientation.Portrait,10);
PowerPointConverter powerPoint=new PowerPointConverter("C:\MyDocument.ppt",options);
//' Call Convert method to do conversion synchronously
powerPoint.Convert("C:\MyOutput.pdf");
}
}
PowerPointConversionOptions(PageSize, PageOrientation, Double, Double, [Optional] Boolean)
Initializes a new instance of the PowerPointConversionOptions class.
public PowerPointConversionOptions(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 https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Converter selected.
- A DynamicPDF Converter for .NET v3.X Developer license.
Examples
Example shows how to use PowerPointConversionOptions with PageSize,Page orientation, LeftAndRightMargin, TopAndBottomMargin and appendToPdf as parameter.
Imports ceTe.DynamicPDF.Conversion
Module Module1
Sub Main()
' Set PowerPoint conversion options
Dim options As PowerPointConversionOptions = New PowerPointConversionOptions(PageSize.A4,PageOrientation.Portrait,10,10,false)
Dim powerPoint As PowerPointConverter =new PowerPointConverter ("C:\MyDocument.ppt",options)
' Call Convert method to do conversion synchronously
powerPoint.Convert( "C:\MyOutput.pdf")
End Sub
End Module
using System;
using ceTe.DynamicPDF.Conversion;
class MyClass
{
static void Main()
{
// Set PowerPoint conversion options
PowerPointConversionOptions options = new PowerPointConversionOptions(PageSize.A4,PageOrientation.Portrait,10,10,false);
PowerPointConverter powerPoint=new PowerPointConverter("C:\MyDocument.ppt",options);
//' Call Convert method to do conversion synchronously
powerPoint.Convert("C:\MyOutput.pdf");
}
}
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
Licensing Info
This property is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription 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 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
Licensing Info
This property is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription 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 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. (Inherited from ConversionOptions)
public double BottomMargin { get; set; }
Public Property BottomMargin As Double
Property Value
Licensing Info
This property is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription 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 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. (Inherited from ConversionOptions)
public CancellationToken CancelToken { get; set; }
Public Property CancelToken As CancellationToken
Property Value
Licensing Info
This property is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Converter selected.
- A DynamicPDF Converter for .NET v3.X Developer license.
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
Licensing Info
This property is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription 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 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. (Inherited from ConversionOptions)
public double Height { get; set; }
Public Property Height As Double
Property Value
Licensing Info
This property is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription 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 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. (Inherited from ConversionOptions)
public string Keywords { get; set; }
Public Property Keywords As String
Property Value
Licensing Info
This property is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription 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 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. (Inherited from ConversionOptions)
public double LeftMargin { get; set; }
Public Property LeftMargin As Double
Property Value
Licensing Info
This property is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription 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 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);
}
}
OutputType
Represents the PowerPoint output type such as Handout, Notepage, Slide and Outline.
public PowerPointOutputType OutputType { get; set; }
Public Property OutputType As PowerPointOutputType
Property Value
Licensing Info
This property is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Converter selected.
- A DynamicPDF Converter for .NET v3.X Developer license.
PaperKind
Gets or sets paper kind for the pages properties. (Inherited from ConversionOptions)
public PaperKind PaperKind { get; set; }
Public Property PaperKind As PaperKind
Property Value
Licensing Info
This property is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription 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 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);
}
}
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
Licensing Info
This property is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Converter selected.
- A DynamicPDF Converter for .NET v3.X Developer license.
PowerPointSlideRange
Represents the Range of slides for PDF.
public PowerPointSlideRange PowerPointSlideRange { get; set; }
Public Property PowerPointSlideRange As PowerPointSlideRange
Property Value
Licensing Info
This property is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Converter selected.
- A DynamicPDF Converter for .NET v3.X Developer license.
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
Licensing Info
This property is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription 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 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. (Inherited from ConversionOptions)
public double RightMargin { get; set; }
Public Property RightMargin As Double
Property Value
Licensing Info
This property is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription 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 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. (Inherited from ConversionOptions)
public string Subject { get; set; }
Public Property Subject As String
Property Value
Licensing Info
This property is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription 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 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
Licensing Info
This property is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription 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 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
Licensing Info
This property is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription 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 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. (Inherited from ConversionOptions)
public double TopMargin { get; set; }
Public Property TopMargin As Double
Property Value
Licensing Info
This property is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription 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 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. (Inherited from ConversionOptions)
public double Width { get; set; }
Public Property Width As Double
Property Value
Licensing Info
This property is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription 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 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
- obj: Object
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:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Converter selected.
- A DynamicPDF Converter for .NET v3.X Developer license.
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:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Converter selected.
- A DynamicPDF Converter for .NET v3.X Developer license.
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:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Converter selected.
- A DynamicPDF Converter for .NET v3.X Developer license.
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:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Converter selected.
- A DynamicPDF Converter for .NET v3.X Developer license.