Class PdfHtml

Class PdfHtml

Именује се: Aspose.Pdf.Plugins Састанак: Aspose.PDF.dll

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

public sealed class PdfHtml : IPlugin, IDisposable

Inheritance

object PdfHtml

Implements

IPlugin , IDisposable

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

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

Examples

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

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

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

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

Constructors

PdfHtml()

public PdfHtml()

Methods

Dispose()

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

public void Dispose()

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

Почиње се обрада Aspose.Pdf.Plugins.PdfHtml са одређеним параметрима.

public ResultContainer Process(IPluginOptions options)

Parameters

options IPluginOptions

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

Returns

ResultContainer

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

 Српски