Class PdfHtml

Class PdfHtml

Nama dari : Aspose.Pdf.Plugins Pendaftaran: Aspose.PDF.dll

Menampilkan Aspose.Pdf.Plugins.PdfHtml plugin.

public sealed class PdfHtml : IPlugin, IDisposable

Inheritance

object PdfHtml

Implements

IPlugin , IDisposable

anggota yang diwarisi

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

Examples

Contohnya menunjukkan cara mengkonversi PDF ke dokumen 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);

Contohnya menunjukkan bagaimana untuk menukar HTML ke dokumen 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()

Pembuatan IDISPOSIBLE.

public void Dispose()

Process(Pilihan IPlugin)

Memulai pemrosesan Aspose.Pdf.Plugins.PdfHtml dengan parameter yang ditentukan.

public ResultContainer Process(IPluginOptions options)

Parameters

options IPluginOptions

Objek opsi yang berisi instruksi untuk Aspose.Pdf.Plugins.PdfHtml.

Returns

ResultContainer

Sebuah objek Aspose.Pdf.Plugins.ResultContainer yang berisi hasil operasi.

 Indonesia