Class Html
Inhalt
[
Ausblenden
]Html-Klasse
Stellt das Html
-Plugin dar.
public sealed class Html : IDisposable, IPlugin
Konstruktoren
Name | Beschreibung |
---|---|
Html() | Der Standardkonstruktor. |
Methoden
Name | Beschreibung |
---|---|
Dispose() | Implementierung von IDisposable. |
Process(IPluginOptions) | Startet die Html -Verarbeitung mit den angegebenen Parametern. |
Beispiele
Das Beispiel zeigt, wie man ein PDF in ein HTML-Dokument konvertiert.
// 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);
Das Beispiel zeigt, wie man ein HTML in ein PDF-Dokument konvertiert.
// 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);
Siehe auch
- Schnittstelle IPlugin
- Namespace Aspose.Pdf.Plugins
- Assembly Aspose.PDF