Class PdfHtml

Class PdfHtml

Namespace: Aspose.Pdf.Plugins
Assembly: Aspose.PDF.dll

Представляє плагін Aspose.Pdf.Plugins.PdfHtml.

public sealed class PdfHtml : IPlugin, IDisposable

Наслідування

objectPdfHtml

Реалізує

IPlugin, IDisposable

Наслідувані члени

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

Приклади

Приклад демонструє, як конвертувати PDF у HTML документ.

// create PdfHtml
var converter = new PdfHtml();
// 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 PdfHtml
var converter = new PdfHtml();
// 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);

Конструктори

PdfHtml()

public PdfHtml()

Методи

Dispose()

Реалізація IDisposable.

public void Dispose()

Process(IPluginOptions)

Починає обробку Aspose.Pdf.Plugins.PdfHtml з вказаними параметрами.

public ResultContainer Process(IPluginOptions options)

Параметри

options IPluginOptions

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

Повертає

ResultContainer

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

 Українська