Class Html
Contents
[
Hide
]Html class
Represents Html
plugin.
public sealed class Html : IDisposable, IPlugin
Constructors
Name | Description |
---|---|
Html() | The default constructor. |
Methods
Name | Description |
---|---|
Dispose() | Implementation of IDisposable. |
Process(IPluginOptions) | Starts the Html processing with the specified parameters. |
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);
See Also
- interface IPlugin
- namespace Aspose.Pdf.Plugins
- assembly Aspose.PDF