Overview
The DynamicPDF Converter API supports the conversion of over 50 files types directly to PDF. The application flow of most applications using DynamicPDF Converter is as follows.
(Optional) Create a ConversionOptions object. These options specify the details used during the conversion (output page size, orientation, margins, append options, etc.). Be sure to use the correct conversion option object for the type of conversion being executed (i.e., HtmlConversionOption for converting an HTML).
Convert by specifying the input and output file names (and optional Conversion Options). Use the appropriate convert method in the ceTe.DynamicPDF.Conversion.Converter class to specify the file (or HTML string) to convert and the output file's location and name.
GitHub Project
Refer to the converter-dotnet-core example project on GitHub for examples using C# and Visual Basic. Each converter class has an example that also demonstrates using the class's conversion options.
C# | Visual Basic |
---|---|
HtmlFileConversion.cs | HtmlFileConversion.vb |
JpegImageConversion.cs | JpegImageConversion.vb |
JpgImageConversion.cs | JpgImageConversion.vb |
GifImageConversion.cs | GifImageConversion.vb |
PngImageConversion.cs | PngImageConversion.vb |
TiffImageConversion.cs | TiffImageConversion.vb |
TextFileConversion.cs | TextFileConversion.vb |
DocFileConversion.cs | DocFileConversion.vb |