Class PdfHtml

Class PdfHtml

De naam: Aspose.Pdf.Plugins Verzameling: Aspose.PDF.dll

Vertegenwoordigt Aspose.Pdf.Plugins.PdfHtml plugin.

public sealed class PdfHtml : IPlugin, IDisposable

Inheritance

object PdfHtml

Implements

IPlugin , IDisposable

Geëerbiede leden

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

Examples

Het voorbeeld laat zien hoe je PDF naar HTML document kunt converteren.

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

Het voorbeeld laat zien hoe je HTML naar PDF document kunt converteren.

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

De implementatie van het onmogelijke.

public void Dispose()

Process(IPluginopties)

Begint de Aspose.Pdf.Plugins.PdfHtml verwerking met de aangegeven parameters.

public ResultContainer Process(IPluginOptions options)

Parameters

options IPluginOptions

Een optie object met instructies voor de Aspose.Pdf.Plugins.PdfHtml.

Returns

ResultContainer

Een Aspose.Pdf.Plugins.ResultContainer object met het resultaat van de operatie.

 Nederlands