Class Html
Class Html
De naam: Aspose.Pdf.Plugins Verzameling: Aspose.PDF.dll (25.4.0)
Vertegenwoordigt Aspose.Pdf.Plugins.Html plugin.
public sealed class Html : IPlugin, IDisposable
Inheritance
Implements
Geëerbiede leden
object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Examples
Het voorbeeld laat zien hoe je PDF naar HTML document kunt converteren.
// 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);
Het voorbeeld laat zien hoe je HTML naar PDF document kunt converteren.
// 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()
De implementatie van het onmogelijke.
public void Dispose()
Process(IPluginopties)
Begint de Aspose.Pdf.Plugins.Html verwerking met de aangegeven parameters.
public ResultContainer Process(IPluginOptions options)
Parameters
options
IPluginOptions
Een optie object met instructies voor de Aspose.Pdf.Plugins.Html.
Returns
Een Aspose.Pdf.Plugins.ResultContainer object met het resultaat van de operatie.