Class Html

Class Html

Nome do espaço: Aspose.Pdf.Plugins Assembleia: Aspose.PDF.dll (25.4.0)

Representa o plugin Aspose.Pdf.Plugins.Html.

public sealed class Html : IPlugin, IDisposable

Inheritance

object Html

Implements

IPlugin , IDisposable

Membros herdados

object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Examples

O exemplo mostra como converter PDF para um 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);

O exemplo mostra como converter HTML em 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);

Constructors

Html()

public Html()

Methods

Dispose()

Implementação do IDISPOSIBIL.

public void Dispose()

Process(Opções IPlugin)

Começa o processamento Aspose.Pdf.Plugins.Html com os parâmetros especificados.

public ResultContainer Process(IPluginOptions options)

Parameters

options IPluginOptions

Um objeto de opções que contém instruções para o Aspose.Pdf.Plugins.Html.

Returns

ResultContainer

Um objeto Aspose.Pdf.Plugins.ResultContainer que contém o resultado da operação.

 Português