Class Html

Classe Html

Rappresenta il plugin Html.

public sealed class Html : IDisposable, IPlugin

Costruttori

NomeDescrizione
Html()Il costruttore predefinito.

Metodi

NomeDescrizione
Dispose()Implementazione di IDisposable.
Process(IPluginOptions)Avvia l’elaborazione Html con i parametri specificati.

Esempi

L’esempio dimostra come convertire un PDF in 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);

L’esempio dimostra come convertire un documento HTML in 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);

Vedi Anche