Class PdfHtml
Class PdfHtml
A név: Aspose.Pdf.Plugins Összefoglaló: Aspose.PDF.dll
Képesítse el az Aspose.Pdf.Plugins.PdfHtml plugin használatát.
public sealed class PdfHtml : 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 PdfHtml
var converter = new PdfHtml();
// 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 PdfHtml
var converter = new PdfHtml();
// 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
PdfHtml()
public PdfHtml()
Methods
Dispose()
Az IDISPOSIBE megvalósítása.
public void Dispose()
Process(IPluginOpciók)
Kezdődik az Aspose.Pdf.Plugins.PdfHtml feldolgozás a meghatározott paraméterekkel.
public ResultContainer Process(IPluginOptions options)
Parameters
options
IPluginOptions
Egy opció objektum, amely az Aspose.Pdf.Plugins.PdfHtml utasításokat tartalmazza.
Returns
Egy Aspose.Pdf.Plugins.ResultContainer objektum, amely tartalmazza a művelet eredményét.