Class Html
Class Html
Der Name: Aspose.Pdf.Plugins Versammlung: Aspose.PDF.dll (25.4.0)
Es handelt sich um Aspose.Pdf.Plugins.Html Plugin.
public sealed class Html : IPlugin, IDisposable
Inheritance
Implements
Vererbte Mitglieder
object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Examples
Das Beispiel zeigt, wie man 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 HTML in 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);
Constructors
Html()
public Html()
Methods
Dispose()
Implementierung von IDISPOSIBLE.
public void Dispose()
Process(IPluginOptionen)
Beginnt die Aspose.Pdf.Plugins.Html-Verarbeitung mit den angegebenen Parameter.
public ResultContainer Process(IPluginOptions options)
Parameters
options
IPluginOptions
Ein Optionsobjekt mit Anweisungen für die Aspose.Pdf.Plugins.Html.
Returns
Ein Aspose.Pdf.Plugins.ResultContainer Objekt, das das Ergebnis der Operation enthält.