Class Html
Class Html
ชื่อพื้นที่: Aspose.Pdf.Plugins การประกอบ: Aspose.PDF.dll (25.4.0)
ปลั๊กอิน Aspose.Pdf.Plugins.Html
public sealed class Html : IPlugin, IDisposable
Inheritance
Implements
อนุญาโตตุลาการ
object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Examples
ตัวอย่างแสดงให้เห็นว่าวิธีการแปลง PDF เป็นเอกสาร 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);
ตัวอย่างนี้แสดงให้เห็นว่าวิธีการแปลง HTML เป็นเอกสาร 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()
การดําเนินการของ IDISPOSIBLE
public void Dispose()
Process(IPluginOptions)
เริ่มการประมวลผล Aspose.Pdf.Plugins.Html ด้วยพารามิเตอร์ที่ระบุ
public ResultContainer Process(IPluginOptions options)
Parameters
options
IPluginOptions
วัตถุตัวเลือกที่มีคําแนะนําสําหรับ Aspose.Pdf.Plugins.Html
Returns
A Aspose.Pdf.Plugins.ResultContainer วัตถุที่มีผลของการดําเนินงาน