Class Html

Class Html

nazivni prostor: Aspose.Pdf.Plugins Sastav: Aspose.PDF.dll (25.4.0)

Predstavlja Aspose.Pdf.Plugins.Html plugin.

public sealed class Html : IPlugin, IDisposable

Inheritance

object Html

Implements

IPlugin , IDisposable

naslijeđeni članovi

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

Examples

Primjer pokazuje kako pretvoriti PDF u HTML dokument.

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

Primjer pokazuje kako pretvoriti HTML u 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()

Uvođenje neprihvatljivih.

public void Dispose()

Process(IPluginopcije)

Početak obrade Aspose.Pdf.Plugins.Html s određenim parametrima.

public ResultContainer Process(IPluginOptions options)

Parameters

options IPluginOptions

Objekt opcija koji sadrži upute za Aspose.Pdf.Plugins.Html.

Returns

ResultContainer

Aspose.Pdf.Plugins.ResultContainer objekt koji sadrži rezultat operacije.

 Hrvatski