Class PdfHtml

Class PdfHtml

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

Represents Aspose.Pdf.Plugins.PdfHtml plugin.

public sealed class PdfHtml : IPlugin, IDisposable

Inheritance

objectPdfHtml

Implements

IPlugin, IDisposable

Inherited Members

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

Examples

The example demonstrates how to convert PDF to HTML document.

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

The example demonstrates how to convert HTML to PDF document.

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

Implementation of IDisposable.

public void Dispose()

Process(IPluginOptions)

Starts the Aspose.Pdf.Plugins.PdfHtml processing with the specified parameters.

public ResultContainer Process(IPluginOptions options)

Parameters

options IPluginOptions

An options object containing instructions for the Aspose.Pdf.Plugins.PdfHtml.

Returns

ResultContainer

An Aspose.Pdf.Plugins.ResultContainer object containing the result of the operation.

 English