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

Приклад показує, як конвертувати PDF в 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);

Приклад показує, як конвертувати HTML в 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()

Виконання ідентифікації.

public void Dispose()

Process(IPluginOptions)

Починається обробка Aspose.Pdf.Plugins.Html з зазначеними параметрами.

public ResultContainer Process(IPluginOptions options)

Parameters

options IPluginOptions

Об’єкт варіантів, що містить інструкції для Aspose.Pdf.Plugins.Html.

Returns

ResultContainer

Об’єкт Aspose.Pdf.Plugins.ResultContainer, що містить результат операції.

 Українська