Class PdfHtml

Class PdfHtml

ชื่อพื้นที่: Aspose.Pdf.Plugins การประชุม: Aspose.PDF.dll

ปลั๊กอิน Aspose.Pdf.Plugins.PdfHtml

public sealed class PdfHtml : IPlugin, IDisposable

Inheritance

object PdfHtml

Implements

IPlugin , IDisposable

อนุญาโตตุลาการ

object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Examples

ตัวอย่างแสดงให้เห็นว่าวิธีการแปลง PDF เป็นเอกสาร HTML

// 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);

ตัวอย่างนี้แสดงให้เห็นว่าวิธีการแปลง HTML เป็นเอกสาร PDF

// 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()

การดําเนินการของ IDISPOSIBLE

public void Dispose()

Process(IPluginOptions)

เริ่มการประมวลผล Aspose.Pdf.Plugins.PdfHtml ด้วยพารามิเตอร์ที่ระบุ

public ResultContainer Process(IPluginOptions options)

Parameters

options IPluginOptions

วัตถุตัวเลือกที่มีคําแนะนําสําหรับ Aspose.Pdf.Plugins.PdfHtml

Returns

ResultContainer

A Aspose.Pdf.Plugins.ResultContainer วัตถุที่มีผลของการดําเนินงาน

 แบบไทย