Class Html
Class Html
Namespace: Aspose.Pdf.Plugins
Assembly: Aspose.PDF.dll (25.3.0)
Represents Aspose.Pdf.Plugins.Html plugin.
public sealed class Html : IPlugin, IDisposable
Inheritance
Implements
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 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);
The example demonstrates how to convert HTML to PDF document.
// 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()
Implementation of IDisposable.
public void Dispose()
Process(IPluginOptions)
Starts the Aspose.Pdf.Plugins.Html processing with the specified parameters.
public ResultContainer Process(IPluginOptions options)
Parameters
options
IPluginOptions
An options object containing instructions for the Aspose.Pdf.Plugins.Html.
Returns
An Aspose.Pdf.Plugins.ResultContainer object containing the result of the operation.