Class HtmlConverter

Info

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

public static class HtmlConverter

Inheritance

objectHtmlConverter

Inherited Members

Examples

The example demonstrates how to convert PDF to HTML document.

// 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
HtmlConverter.Process(options);

The example demonstrates how to convert HTML to PDF document.

// 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
HtmlConverter.Process(options);

Methods

Process(PdfToHtmlOptions)

Converts PDF documents into HTML format.

public static ResultContainer Process(PdfToHtmlOptions options)

Parameters

  • options PdfToHtmlOptions: An options object containing instructions for the operation.

Returns

ResultContainer : An object containing the result of the operation.

Exceptions

ArgumentException

If options not set.

Process(HtmlToPdfOptions)

Converts HTML documents into PDF format.

public static ResultContainer Process(HtmlToPdfOptions options)

Parameters

  • options HtmlToPdfOptions: An options object containing instructions for the operation.

Returns

ResultContainer : An object containing the result of the operation.

Exceptions

ArgumentException

If options not set.

Namespace: Documentize Assembly: Documentize.dll

 English