Class Html

Class Html

Nom dels espais: Aspose.Pdf.Plugins Assemblea: Aspose.PDF.dll (25.4.0)

Representa el plugin Aspose.Pdf.Plugins.Html.

public sealed class Html : IPlugin, IDisposable

Inheritance

object Html

Implements

IPlugin , IDisposable

Membres heretats

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

Examples

L’exemple demostra com convertir PDF a un document 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);

L’exemple demostra com convertir HTML en un document 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()

Implementació de l’Idispossible.

public void Dispose()

Process(Opcions IPlugin)

Comença el tractament Aspose.Pdf.Plugins.Html amb els paràmetres especificats.

public ResultContainer Process(IPluginOptions options)

Parameters

options IPluginOptions

Un objecte d’opcions que conté instruccions per a Aspose.Pdf.Plugins.Html.

Returns

ResultContainer

Un objecte Aspose.Pdf.Plugins.ResultContainer que conté el resultat de l’operaci.

 Català