Class Html

Class Html

Nama dari : Aspose.Pdf.Plugins Perhitungan: Aspose.PDF.dll (25.4.0)

Menampilkan Aspose.Pdf.Plugins.Html plugin.

public sealed class Html : IPlugin, IDisposable

Inheritance

object Html

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

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

Pembuatan IDISPOSIBLE.

public void Dispose()

Process(Pilihan IPlugin)

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

public ResultContainer Process(IPluginOptions options)

Parameters

options IPluginOptions

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

Returns

ResultContainer

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

 Indonesia