Class Html
Class Html
Il nome: Aspose.Pdf.Plugins Assemblea: Aspose.PDF.dll (25.4.0)
Si tratta di Aspose.Pdf.Plugins.Html plugin.
public sealed class Html : IPlugin, IDisposable
Inheritance
Implements
I membri ereditari
object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Examples
L’esempio dimostra come convertire PDF in documento HTML.
// 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);
L’esempio dimostra come convertire HTML in documento PDF.
// 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()
Implementazione di IDISPOSIBILE.
public void Dispose()
Process(Opzioni IPlugin)
Inizia il trattamento di Aspose.Pdf.Plugins.Html con i parametri specificati.
public ResultContainer Process(IPluginOptions options)
Parameters
options
IPluginOptions
Un oggetto di opzioni che contiene istruzioni per Aspose.Pdf.Plugins.Html.
Returns
Un oggetto Aspose.Pdf.Plugins.ResultContainer che contiene il risultato dell’operazione.