Class Html
Class Html
Namn på plats: Aspose.Pdf.Plugins Sammanfattning: Aspose.PDF.dll (25.4.0)
Representerar Aspose.Pdf.Plugins.Html plugin.
public sealed class Html : IPlugin, IDisposable
Inheritance
Implements
Arvsmedlemmar
object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Examples
Exempel visar hur man konverterar PDF till HTML-dokument.
// 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);
Exempel visar hur man konverterar HTML till PDF-dokument.
// 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()
genomförandet av IDISPOSIBLE.
public void Dispose()
Process(IPluginalternativ)
Startar Aspose.Pdf.Plugins.Html-behandling med de angivna parametrarna.
public ResultContainer Process(IPluginOptions options)
Parameters
options
IPluginOptions
Ett alternativ objekt som innehåller instruktioner för Aspose.Pdf.Plugins.Html.
Returns
En Aspose.Pdf.Plugins.ResultContainer objekt som innehåller resultatet av operationen.