Converter.Convert
Overloads
Convert(Byte[], String) | Converts the source byte array to PDF. |
Convert(Byte[], String, ConversionOptions) | Converts the source byte array to PDF. |
Convert(Byte[], String, ConversionOptions, Byte[]) | Converts the source byte array to PDF and get the output as byte array. |
Convert(Byte[], String, String) | Converts the source byte array to a PDF of the given name. |
Convert(Byte[], String, String, ConversionOptions) | Converts the source byte array to a PDF of the given name. |
Convert(String) | Converts the source file to PDF and get the output as byte array. |
Convert(String, ConversionOptions) | Converts the source file to PDF. |
Convert(String, ConversionOptions, Byte[]) | Converts the source file to PDF. |
Convert(String, String) | Converts the source file to a PDF of the given name. |
Convert(String, String, ConversionOptions) | Converts the source file to a PDF of the given name. |
Convert(Byte[], String)
Converts the source byte array to PDF.
public static Byte[] Convert(Byte[] inputData, string inputFileName)
Shared Function Convert(inputData As Byte(), inputFileName As String) As Byte()
Parameters
- inputData
- Byte[]
Source byte array to be converted.
- inputFileName
- String
File name or extension of file which is stored as byte array.
Returns
PDF stored in byte array.
Licensing Info
This method 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 convert byte array of the source file to PDF file and returns converted PDF in byte array.Imports ceTe.DynamicPDF.Conversion
Imports System.IO
Module Module1
Sub Main()
Dim inputData() As Byte = File.ReadAllBytes("C:\MyDocument.doc")
' Call convert method to do conversion
Dim MyData() As Byte = Converter.Convert(inputData, ".doc")
End Sub
End Module
using System;
using ceTe.DynamicPDF.Conversion;
using System.IO;
class MyClass
{
static void Main()
{
byte[] inputData = File.ReadAllBytes(@"C:\MyDocument.doc");
// Call convert method to do conversion.
byte[] pdfData = Converter.Convert(inputData, @".doc");
}
}
Remarks
Use respective Converter classes for specific file type WordConverter , ExcelConverter , PowerPointConverter , HtmlConverter , ImageConverter , TextConverter instead.
Convert(Byte[], String, ConversionOptions)
Converts the source byte array to PDF.
public static Byte[] Convert(Byte[] inputData, string inputFileName, ConversionOptions conversionOptions)
Shared Function Convert(inputData As Byte(), inputFileName As String, conversionOptions As ConversionOptions) As Byte()
Parameters
- inputData
- Byte[]
Source byte array to be converted.
- inputFileName
- String
File name or extension of file which is stored as byte array.
- conversionOptions
- ConversionOptions
Instance of ConversionOptions class that represents the conversion options.
Returns
Converted PDF stored in byte array.
Licensing Info
This method 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 convert byte array of the source file to PDF file and returns converted PDF in byte array.Imports ceTe.DynamicPDF.Conversion
Imports System.IO
Module Module1
Sub Main()
' Create a instance of ConversionOptions
Dim conversionOptions As ConversionOptions = New ConversionOptions(PageSize.Letter, PageOrientation.Portrait, 75)
Dim inputData() As Byte = File.ReadAllBytes("C:\MyDocument.doc")
' Call convert method to do conversion
Dim MyData() As Byte = Converter.Convert(inputData, ".doc", conversionOptions)
End Sub
End Module
using System;
using ceTe.DynamicPDF.Conversion;
using System.IO;
class MyClass
{
static void Main()
{
// Create a instance of ConversionOptions class.
ConversionOptions option = new ConversionOptions(PageSize.Letter, PageOrientation.Portrait, 75);
byte[] inputData = File.ReadAllBytes(@"C:\MyDocument.doc");
// Call convert method to do conversion.
byte[] pdfData = Converter.Convert(inputData , @".doc", option);
}
}
Remarks
Use respective Converter classes for specific file type WordConverter , ExcelConverter , PowerPointConverter , HtmlConverter , ImageConverter , TextConverter instead.
Convert(Byte[], String, ConversionOptions, Byte[])
Converts the source byte array to PDF and get the output as byte array.
public static Byte[] Convert(Byte[] inputData, string inputFileName, ConversionOptions conversionOptions, Byte[] appendToPdf)
Shared Function Convert(inputData As Byte(), inputFileName As String, conversionOptions As ConversionOptions, appendToPdf As Byte()) As Byte()
Parameters
- inputData
- Byte[]
Source byte array to be converted.
- inputFileName
- String
File name or extension of file which is stored as byte array.
- conversionOptions
- ConversionOptions
Instance of ConversionOptions class that represents the conversion options.
- appendToPdf
- Byte[]
Byte array for which output to be appended.
Returns
Converted PDF stored in byte array.
Licensing Info
This method 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 convert byte array of the source file to PDF and append to the existing byte array of PDF.Imports ceTe.DynamicPDF.Conversion
Imports System.IO
Module Module1
Sub Main()
' Create a instance of ConversionOptions
Dim conversionOptions As ConversionOptions = New ConversionOptions(PageSize.Letter, PageOrientation.Portrait, 75, 75, True)
Dim inputData() As Byte = File.ReadAllBytes("C:\MyDocument.doc")
Dim appendToPdf() As Byte = File.ReadAllBytes("C:\MyDocument.pdf")
' Call convert method to do conversion
Dim MyData() As Byte = Converter.Convert(inputData, ".doc", conversionOptions, appendToPdf)
End Sub
End Module
using System;
using ceTe.DynamicPDF.Conversion;
using System.IO;
class MyClass
{
static void Main()
{
// Create a instance of ConversionOptions class.
ConversionOptions option = new ConversionOptions(PageSize.Letter, PageOrientation.Portrait, 75, 75, true);
byte[] inputData = File.ReadAllBytes(@"C:\MyDocument.doc");
byte[] appendToPdf = File.ReadAllBytes(@"C:\MyDocument.pdf");
// Call convert method to do conversion.
byte[] pdfData = Converter.Convert(inputData , @".doc", option, appendToPdf);
}
}
Remarks
Use respective Converter classes for specific file type WordConverter , ExcelConverter , PowerPointConverter , HtmlConverter , ImageConverter , TextConverter instead.
Convert(Byte[], String, String)
Converts the source byte array to a PDF of the given name.
public static void Convert(Byte[] inputData, string inputFileName, string outputFilePath)
Shared Sub Convert(inputData As Byte(), inputFileName As String, outputFilePath As String)
Parameters
- inputData
- Byte[]
Byte array of the source file that need to be converted.
- inputFileName
- String
File name or extension of the source file.
- outputFilePath
- String
File path to store the converted pdf.
Licensing Info
This method 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 convert byte array of the source file to PDF file.Imports ceTe.DynamicPDF.Conversion
Imports System.IO
Module Module1
Sub Main()
Dim inputData() As Byte = File.ReadAllBytes("C:\MyDocument.doc")
' Call convert method to do conversion
Converter.Convert(inputData, ".doc", "C:\MyOutput.pdf")
End Sub
End Module
using System;
using System.IO;
using ceTe.DynamicPDF.Conversion;
class MyClass
{
static void Main()
{
byte[] inputData = File.ReadAllBytes(@"C:\MyDocument.doc");
// Call convert method to do conversion
Converter.Convert(inputData, @".doc", @"C:\MyOutput.pdf");
}
}
Remarks
Use respective Converter classes for specific file type WordConverter , ExcelConverter , PowerPointConverter , HtmlConverter , ImageConverter , TextConverter instead.
Convert(Byte[], String, String, ConversionOptions)
Converts the source byte array to a PDF of the given name.
public static void Convert(Byte[] inputData, string inputFileName, string outputFilePath, ConversionOptions conversionOptions)
Shared Sub Convert(inputData As Byte(), inputFileName As String, outputFilePath As String, conversionOptions As ConversionOptions)
Parameters
- inputData
- Byte[]
Byte array of the source file that need to be converted.
- inputFileName
- String
File name or extension of the source file.
- outputFilePath
- String
File path to store the converted pdf.
- conversionOptions
- ConversionOptions
Instance of ConversionOptions class that represents the conversion options.
Licensing Info
This method 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 convert byte array of the source file to PDF file.Imports ceTe.DynamicPDF.Conversion
Imports System.IO
Module Module1
Sub Main()
' Create a instance of ConversionOptions
Dim conversionOptions As ConversionOptions = New ConversionOptions(PageSize.Letter, PageOrientation.Portrait, 75)
Dim inputData() As Byte = File.ReadAllBytes("C:\MyDocument.doc")
' Call convert method to do conversion
Converter.Convert(inputData, ".doc", "C:\MyOutput.pdf", conversionOptions)
End Sub
End Module
using System;
using System.IO;
using ceTe.DynamicPDF.Conversion;
class MyClass
{
static void Main()
{
// Create a instance of ConversionOptions class
ConversionOptions option = new ConversionOptions(PageSize.Letter, PageOrientation.Portrait, 75);
byte[] inputData = File.ReadAllBytes(@"C:\MyDocument.doc");
// Call convert method to do conversion
Converter.Convert(inputData, @".doc", @"C:\MyOutput.pdf", option);
}
}
Remarks
Use respective Converter classes for specific file type WordConverter , ExcelConverter , PowerPointConverter , HtmlConverter , ImageConverter , TextConverter instead.
Convert(String)
Converts the source file to PDF and get the output as byte array.
public static Byte[] Convert(string inputFilePath)
Shared Function Convert(inputFilePath As String) As Byte()
Parameters
- inputFilePath
- String
Source file path for conversion.
Returns
Converted PDF stored in byte array.
Licensing Info
This method 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 convert source file to PDF file and returns the converted PDF in byte array.Imports ceTe.DynamicPDF.Conversion
Module Module1
Sub Main()
' Call convert method to do conversion
Dim MyData() As Byte = Converter.Convert("C:\MyDocument.doc")
End Sub
End Module
using System;
using ceTe.DynamicPDF.Conversion;
class MyClass
{
static void Main()
{
// Call convert method to do conversion.
byte[] pdfData = Converter.Convert(@"C:\MyDocument.doc");
}
}
Remarks
Use respective Converter classes for specific file type WordConverter , ExcelConverter , PowerPointConverter , HtmlConverter , ImageConverter , TextConverter instead.
Convert(String, ConversionOptions)
Converts the source file to PDF.
public static Byte[] Convert(string inputFilePath, ConversionOptions conversionOptions)
Shared Function Convert(inputFilePath As String, conversionOptions As ConversionOptions) As Byte()
Parameters
- inputFilePath
- String
Source file path for conversion.
- conversionOptions
- ConversionOptions
Instance of ConversionOptions class that represents the conversion options.
Returns
Converted PDF stored in byte array.
Licensing Info
This method 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 convert source file to PDF file and returns the converted PDF in byte array.Imports ceTe.DynamicPDF.Conversion
Module Module1
Sub Main()
' Create a instance of ConversionOptions
Dim conversionOptions As ConversionOptions = New ConversionOptions(PageSize.Letter, PageOrientation.Portrait, 75)
' Call convert method to do conversion
Dim MyData() As Byte = Converter.Convert("C:\MyDocument.doc", conversionOptions)
End Sub
End Module
using System;
using ceTe.DynamicPDF.Conversion;
class MyClass
{
static void Main()
{
// Create a instance of ConversionOptions class.
ConversionOptions option = new ConversionOptions(PageSize.Letter, PageOrientation.Portrait, 75);
// Call convert method to do conversion.
byte[] pdfData = Converter.Convert(@"C:\MyDocument.doc", option);
}
}
Remarks
Use respective Converter classes for specific file type WordConverter , ExcelConverter , PowerPointConverter , HtmlConverter , ImageConverter , TextConverter instead.
Convert(String, ConversionOptions, Byte[])
Converts the source file to PDF.
public static Byte[] Convert(string inputFilePath, ConversionOptions conversionOptions, Byte[] appendToPdf)
Shared Function Convert(inputFilePath As String, conversionOptions As ConversionOptions, appendToPdf As Byte()) As Byte()
Parameters
- inputFilePath
- String
Source file path for conversion.
- conversionOptions
- ConversionOptions
Instance of ConversionOptions class that represents the conversion options.
- appendToPdf
- Byte[]
Byte array of the PDF to precede the converted output.
Returns
Converted PDF stored in byte array.
Licensing Info
This method 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 convert source file to PDF file and returns the converted PDF in byte array.Imports ceTe.DynamicPDF.Conversion
Imports System.IO
Module Module1
Sub Main()
' Create a instance of ConversionOptions
Dim conversionOptions As ConversionOptions = New ConversionOptions((PageSize.Letter, PageOrientation.Portrait, 75, 75, True)
Dim appendToPdf() As Byte = File.ReadAllBytes("C:\MyDocument.pdf")
' Call convert method to do conversion
Dim MyData() As Byte = Converter.Convert("C:\MyDocument.doc", ConversionOptions, appendToPdf)
End Sub
End Module
using System;
using System.IO;
using ceTe.DynamicPDF.Conversion;
class MyClass
{
static void Main()
{
// Create a instance of ConversionOptions class.
ConversionOptions option = new ConversionOptions(PageSize.Letter,PageOrientation.Portrait,75,75, true);
byte[] appendToPdf = File.ReadAllBytes(@"C:\MyDocument.pdf");
// Call convert method to do conversion.
byte[] pdfData = Converter.Convert(@"C:\MyDocument.doc", option, appendToPdf);
}
}
Remarks
Use respective Converter classes for specific file type WordConverter , ExcelConverter , PowerPointConverter , HtmlConverter , ImageConverter , TextConverter instead.
Convert(String, String)
Converts the source file to a PDF of the given name.
public static void Convert(string sourceFilePath, string outputFilePath)
Shared Sub Convert(sourceFilePath As String, outputFilePath As String)
Parameters
- sourceFilePath
- String
Source file path for conversion.
- outputFilePath
- String
File path to store the converted pdf.
Licensing Info
This method 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 convert source file to PDF file.Imports ceTe.DynamicPDF.Conversion
Module Module1
Sub Main()
' 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()
{
// Call convert method to do conversion
Converter.Convert(@"C:\MyDocument.doc", @"C:\MyOutput.pdf");
}
}
Remarks
Use respective Converter classes for specific file type WordConverter , ExcelConverter , PowerPointConverter , HtmlConverter , ImageConverter , TextConverter instead.
Convert(String, String, ConversionOptions)
Converts the source file to a PDF of the given name.
public static void Convert(string sourceFilePath, string outputFilePath, ConversionOptions conversionOptions)
Shared Sub Convert(sourceFilePath As String, outputFilePath As String, conversionOptions As ConversionOptions)
Parameters
- sourceFilePath
- String
Source file path for conversion.
- outputFilePath
- String
File path to store the converted pdf.
- conversionOptions
- ConversionOptions
Instance of ConversionOptions class that represents the conversion options.
Licensing Info
This method 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 convert source file to PDF file.Imports ceTe.DynamicPDF.Conversion
Module Module1
Sub Main()
' Create a 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 a instance of ConversionOptions class
ConversionOptions option = new ConversionOptions(PageSize.Letter, PageOrientation.Portrait, 75);
// Call convert method to do conversion
Converter.Convert(@"C:\MyDocument.doc", @"C:\MyOutput.pdf", option);
}
}
Remarks
Use respective Converter classes for specific file type WordConverter , ExcelConverter , PowerPointConverter , HtmlConverter , ImageConverter , TextConverter instead.