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