Class Html

Clase Html

Representa el plugin Html.

public sealed class Html : IDisposable, IPlugin

Constructores

NombreDescripción
Html()El constructor predeterminado.

Métodos

NombreDescripción
Dispose()Implementación de IDisposable.
Process(IPluginOptions)Inicia el procesamiento de Html con los parámetros especificados.

Ejemplos

El ejemplo demuestra cómo convertir un PDF a un documento HTML.

// create Html
var converter = new Html();
// 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));
converter.Process(opt);

El ejemplo demuestra cómo convertir un HTML a un documento PDF.

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

Véase También