Class PdfHtml

Class PdfHtml

Namespace: Aspose.Pdf.Plugins
Assembly: Aspose.PDF.dll

แทนที่ Aspose.Pdf.Plugins.PdfHtml plugin.

public sealed class PdfHtml : IPlugin, IDisposable

การสืบทอด

objectPdfHtml

การใช้งาน

IPlugin, IDisposable

สมาชิกที่สืบทอด

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

ตัวอย่าง

ตัวอย่างนี้แสดงวิธีการแปลง 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);

ตัวสร้าง

PdfHtml()

public PdfHtml()

วิธีการ

Dispose()

การใช้งานของ IDisposable.

public void Dispose()

Process(IPluginOptions)

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

public ResultContainer Process(IPluginOptions options)

พารามิเตอร์

options IPluginOptions

วัตถุ options ที่มีคำแนะนำสำหรับ Aspose.Pdf.Plugins.PdfHtml.

คืนค่า

ResultContainer

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

 แบบไทย