Class Html

Class Html

Именује се: Aspose.Pdf.Plugins Асамблеја: Aspose.PDF.dll (25.4.0)

Представља Aspose.Pdf.Plugins.Html плугин.

public sealed class Html : IPlugin, IDisposable

Inheritance

object Html

Implements

IPlugin , IDisposable

Наслеђени чланови

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

Examples

Пример показује како конвертовати ПДФ у ХТМЛ документ.

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

Пример показује како конвертовати ХТМЛ у ПДФ документ.

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

Имплементација немогућег.

public void Dispose()

Process(ИПЛУГИНОПЦИЈА)

Почиње се обрада Аппосе.Пдф.Плугинс.Хтмл са одређеним параметрима.

public ResultContainer Process(IPluginOptions options)

Parameters

options IPluginOptions

Објекат опција са упутствима за Aspose.Pdf.Plugins.Html.

Returns

ResultContainer

Aspose.Pdf.Plugins.ResultContainer објекат који садржи резултат операције.

 Српски