Class HtmlConverter

Info

Represents Documentize.HtmlConverter plugin. Used to convert PDF documents into HTML format and HTML documents into PDF format.

public sealed class HtmlConverter : IDisposable

Inheritance

objectHtmlConverter

Implements

Inherited Members

Examples

The example demonstrates how to convert PDF to HTML document.

// Initialize the HtmlConverter
var plugin = new HtmlConverter();
// Create PdfToHtmlOptions object to set output data type as file with embedded resources
var options = new PdfToHtmlOptions(PdfToHtmlOptions.SaveDataType.FileWithEmbeddedResources);
// Add input file path
options.AddInput(new FileDataSource("path_to_input.pdf"));
// Set output file path
options.AddOutput(new FileDataSource("path_to_output.html"));
//Perform the process
plugin.Process(options);

The example demonstrates how to convert HTML to PDF document.

// Initialize the HtmlConverter
var plugin = new HtmlConverter();
// create HtmlToPdfOptions
var options = new HtmlToPdfOptions();
// Add input file path
options.AddInput(new FileDataSource("path_to_input.html"));
// Set output file path
options.AddOutput(new FileDataSource("path_to_output.pdf"));
//Perform the process
plugin.Process(options);

Constructors

HtmlConverter()

public HtmlConverter()

Methods

Dispose()

Implementation of IDisposable.

public void Dispose()

Process(IPluginOptions)

Starts the Documentize.HtmlConverter processing with the specified parameters.

public ResultContainer Process(IPluginOptions options)

Parameters

  • options IPluginOptions: An options object containing instructions for the Documentize.HtmlConverter.

Returns

ResultContainer : An Documentize.ResultContainer object containing the result of the operation.

Namespace: Documentize Assembly: Documentize.dll

 English