Class Html

Class Html

Το όνομα: Aspose.Pdf.Plugins Συγκέντρωση: Aspose.PDF.dll (25.4.0)

Αντιπροσωπεύει το Aspose.Pdf.Plugins.Html plugin.

public sealed class Html : IPlugin, IDisposable

Inheritance

object Html

Implements

IPlugin , IDisposable

Κληρονομημένα μέλη

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

Εφαρμογή του αδιανόητου.

public void Dispose()

Process(IPluginΕπιλογές)

Ξεκινά η επεξεργασία Aspose.Pdf.Plugins.Html με τις καθορισμένες παραμέτρους.

public ResultContainer Process(IPluginOptions options)

Parameters

options IPluginOptions

Ένα αντικείμενο επιλογών που περιέχει οδηγίες για το Aspose.Pdf.Plugins.Html.

Returns

ResultContainer

Ένα αντικείμενο Aspose.Pdf.Plugins.ResultContainer που περιέχει το αποτέλεσμα της λειτουργίας.

 Ελληνικά