Click or drag to resize

Convert Class

Converter is a utility class used to convert documents and files to PDF. Conversion of XPS, EMF and image files to PDF documents is performed internally. Other document formats are converted via native application and printing.
Inheritance Hierarchy
SystemObject
  pdftron.PDFConvert

Namespace:  pdftron.PDF
Assembly:  pdftron (in pdftron.dll) Version: 255.255.255.255
Syntax
public sealed class Convert : IClosable

The Convert type exposes the following members.

Methods
  NameDescription
Public methodClose
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodStatic memberFromEmf
Converts the specified EMF file to PDF and append converted pages to the specified PDF document. The EMF will be fitted to the page.
Public methodStatic memberFromEmfAsync
Convert the specified CAD file to PDF and append converted pages to the specified PDF document. This conversion requires that the optional PDFTron CAD add-on module is avaialable. See also: the 'CADModule' class
Public methodStatic memberFromText
Convert the specified plain text file to PDF and append converted pages to the specified PDF document.
Public methodStatic memberFromXps(PDFDoc, Byte)
Converts the specified XPS document contained in memory to PDF and append converted pages to the specified PDF document.
Public methodStatic memberFromXps(PDFDoc, String)
Convert the specified XPS document to PDF and append converted pages to the specified PDF document.
Public methodStatic memberFromXpsAsync
Converts the specified XPS file to PDF and append converted pages to the specified PDF document. The EMF will be fitted to the page.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberOfficeToPDF(PDFDoc, IFilter, IConversionOptions)
Convert the an office document (in .docx, .xlsx, pptx, or .doc format) to pdf and append to the specified PDF document. This conversion is performed entirely within PDFNet, and does not rely on Word interop or any other external functionality.
Font requirements: on some systems you may need to specify extra font resources to aid in conversion. Please see http://www.pdftron.com/kb_fonts_and_builtin_office_conversion
Public methodStatic memberOfficeToPDF(PDFDoc, String, IConversionOptions)
Convert the an office document (in .docx, .xlsx, pptx, or .doc format) to pdf and append to the specified PDF document. This conversion is performed entirely within PDFNet, and does not rely on Word interop or any other external functionality.
Font requirements: on some systems you may need to specify extra font resources to aid in conversion. Please see http://www.pdftron.com/kb_fonts_and_builtin_office_conversion
Public methodStatic memberStreamingPDFConversion(String, IConversionOptions)
Create a DocumentConversion object suitable for converting a file to pdf.
This conversion will be performed entirely within PDFNet, and handles incoming files in .docx, .xlsx, pptx, .doc, .png, .jpg, .bmp, .gif, .jp2, .tif, .txt, .xml and .md format
This method does not perform any conversion logic and can be expected to return quickly. To do the actual conversion, use the returned DocumentConversion object (see PDF.DocumentConversion)
Font requirements: on some systems you may need to specify extra font resources to aid in conversion. Please see http://www.pdftron.com/kb_fonts_and_builtin_office_conversion
Public methodStatic memberStreamingPDFConversion(IFilter, IConversionOptions)
Create a DocumentConversion object suitable for converting a file to pdf.
This conversion will be performed entirely within PDFNet, and handles incoming files in .docx, .xlsx, pptx, .doc, .png, .jpg, .bmp, .gif, .jp2, .tif, .txt, .xml and .md format
This method does not perform any conversion logic and can be expected to return quickly. To do the actual conversion, use the returned DocumentConversion object (see PDF.DocumentConversion)
Font requirements: on some systems you may need to specify extra font resources to aid in conversion. Please see http://www.pdftron.com/kb_fonts_and_builtin_office_conversion
Public methodStatic memberStreamingPDFConversion(PDFDoc, IFilter, IConversionOptions)
Create a DocumentConversion object suitable for converting a file to pdf and appending to an existing PDF document.
This conversion will be performed entirely within PDFNet, and handles incoming files in .docx, .xlsx, pptx, .doc, .png, .jpg, .bmp, .gif, .jp2, .tif, .txt, .xml and .md format
This method does not perform any conversion logic and can be expected to return quickly. To do the actual conversion, use the returned DocumentConversion object (see PDF.DocumentConversion)
Font requirements: on some systems you may need to specify extra font resources to aid in conversion. Please see http://www.pdftron.com/kb_fonts_and_builtin_office_conversion
Public methodStatic memberStreamingPDFConversion(PDFDoc, String, IConversionOptions)
Create a DocumentConversion object suitable for converting a file to pdf and appending to an existing PDF document.
This conversion will be performed entirely within PDFNet, and handles incoming files in .docx, .xlsx, pptx, .doc, .png, .jpg, .bmp, .gif, .jp2, .tif, .txt, .xml and .md format
This method does not perform any conversion logic and can be expected to return quickly. To do the actual conversion, use the returned DocumentConversion object (see PDF.DocumentConversion)
Font requirements: on some systems you may need to specify extra font resources to aid in conversion. Please see http://www.pdftron.com/kb_fonts_and_builtin_office_conversion
Public methodStatic memberToPdf
Converts the file or document to PDF and append to the specified PDF document.
Public methodStatic memberToPdfAsync
Converts the file or document to PDF and append to the specified PDF document.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodStatic memberToXod(String)
Generate a stream that incrementally converts the input file to XOD format.
Public methodStatic memberToXod(PDFDoc)
Converts the input PDFDoc to XOD format.
Public methodStatic memberToXod(String, XODOutputOptions)
Generate a stream that incrementally converts the input file to XOD format.
Public methodStatic memberToXod(String, String)
Converts the input to XOD format.
Public methodStatic memberToXod(PDFDoc, XODOutputOptions)
Generate a stream that incrementally converts the input file to XOD format.
Public methodStatic memberToXod(String, String, XODOutputOptions)
Converts the input to XOD format.
Public methodStatic memberToXodAsync(IFilter)
Converts the input Filter to XOD format.
Public methodStatic memberToXodAsync(PDFDoc)
Converts the input PDFDoc to XOD format.
Public methodStatic memberToXodAsync(IFilter, IFilter)
Converts the input to XOD format.
Public methodStatic memberToXodAsync(IFilter, XODOutputOptions)
Converts the input Filter to XOD format.
Public methodStatic memberToXodAsync(PDFDoc, XODOutputOptions)
Converts the input PDFDoc to XOD format.
Public methodStatic memberToXodAsync(IFilter, IFilter, XODOutputOptions)
Converts the input to XOD format.
Public methodStatic memberToXodWithMonitor
Converts the input PDFDoc to XOD format.
Public methodStatic memberToXps(String, String)
Converts an input file to XPS format.
Public methodStatic memberToXps(String, String, XPSOutputOptions)
Converts an input file to XPS format.
Public methodStatic memberUniversalConversion(String, WordToPDFOptions)
Public methodStatic memberUniversalConversion(IFilter, WordToPDFOptions)
Public methodStatic memberWordToPDF(PDFDoc, IFilter, WordToPDFOptions)
Public methodStatic memberWordToPDF(PDFDoc, String, WordToPDFOptions)
Public methodStatic memberWordToPDFConversion(String, WordToPDFOptions)
Public methodStatic memberWordToPDFConversion(IFilter, WordToPDFOptions)
Top
Examples
PDFDoc pdfdoc;
Convert.FromXps(pdfdoc, input_path + "simple-xps.xps");
Convert.FromEmf(pdfdoc, input_path + "simple-emf.emf");
Convert.ToPdf(pdfdoc, input_path + test docx file.docx);
See Also