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.

// create HtmlConverter
var plugin = new HtmlConverter();
// create PdfToHtmlOptions object to set output data type as file with embedded resources
var opt = new PdfToHtmlOptions(PdfToHtmlOptions.SaveDataType.FileWithEmbeddedResources);
// add input file path
opt.AddInput(new FileDataSource(inputPath));
// set output file path
opt.AddOutput(new FileDataSource(outputPath));
plugin.Process(opt);

The example demonstrates how to convert HTML to PDF document.

// create HtmlConverter
var plugin = new HtmlConverter();
// create HtmlToPdfOptions
var opt = new HtmlToPdfOptions();
// add input file path
opt.AddInput(new FileDataSource(inputPath));
// set output file path
opt.AddOutput(new FileDataSource(outputPath));
plugin.Process(opt);

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