Class Html
Class Html
A név: Aspose.Pdf.Plugins Összefoglaló: Aspose.PDF.dll (25.4.0)
Képesítse el az Aspose.Pdf.Plugins.Html plugin használatát.
public sealed class Html : IPlugin, IDisposable
Inheritance
Implements
Örökletes tagok
object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Examples
A példa azt mutatja, hogyan lehet PDF-t HTML-dokumentumba konvertálni.
// 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);
A példa azt mutatja, hogyan kell átalakítani a HTML-t PDF dokumentumra.
// 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()
Az IDISPOSIBE megvalósítása.
public void Dispose()
Process(IPluginOpciók)
Kezdődik az Aspose.Pdf.Plugins.Html feldolgozás a meghatározott paraméterekkel.
public ResultContainer Process(IPluginOptions options)
Parameters
options
IPluginOptions
Egy opció objektum, amely az Aspose.Pdf.Plugins.Html utasításokat tartalmazza.
Returns
Egy Aspose.Pdf.Plugins.ResultContainer objektum, amely tartalmazza a művelet eredményét.