Class Html

Class Html

Název místa: Aspose.Pdf.Plugins Sbírka: Aspose.PDF.dll (25.4.0)

Představuje Aspose.Pdf.Plugins.Html plugin.

public sealed class Html : IPlugin, IDisposable

Inheritance

object Html

Implements

IPlugin , IDisposable

Dědiční členové

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

Examples

Příklad ukazuje, jak převést PDF do HTML dokumentu.

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

Příklad ukazuje, jak převést 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()

Provádění IDISPOSIBLE.

public void Dispose()

Process(IPluginopce)

Začíná zpracování Aspose.Pdf.Plugins.Html s uvedenými parametry.

public ResultContainer Process(IPluginOptions options)

Parameters

options IPluginOptions

Objekt možností obsahující pokyny pro Aspose.Pdf.Plugins.Html.

Returns

ResultContainer

Objekt Aspose.Pdf.Plugins.ResultContainer obsahující výsledek operace.

 Čeština