Class Html

Class Html

Pôvodný názov: Aspose.Pdf.Plugins Zhromaždenie: Aspose.PDF.dll (25.4.0)

Predstavuje Aspose.Pdf.Plugins.Html plugin.

public sealed class Html : IPlugin, IDisposable

Inheritance

object Html

Implements

IPlugin , IDisposable

Z dedičných členov

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

Examples

Príklad ukazuje, ako premeniť PDF na HTML dokument.

// 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);

Príklad ukazuje, ako premeniť HTML na PDF dokument.

// 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()

Vykonávanie IDISPOSIBLE.

public void Dispose()

Process(IPluginopcie)

Začína sa spracovanie Aspose.Pdf.Plugins.Html so špecifikovanými parametrami.

public ResultContainer Process(IPluginOptions options)

Parameters

options IPluginOptions

Objekt možností, ktorý obsahuje pokyny pre Aspose.Pdf.Plugins.Html.

Returns

ResultContainer

Aspose.Pdf.Plugins.ResultContainer objekt obsahujúci výsledok operácie.

 Slovenčina