Class Html

Class Html

Nazwa przestrzeń: Aspose.Pdf.Plugins Zgromadzenie: Aspose.PDF.dll (25.4.0)

Przedstawia się wtyczka Aspose.Pdf.Plugins.Html.

public sealed class Html : IPlugin, IDisposable

Inheritance

object Html

Implements

IPlugin , IDisposable

Dziedziczeni członkowie

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

Examples

Przykład pokazuje, jak konwertować PDF do dokumentu 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);

Przykład pokazuje, jak konwertować HTML do dokumentu 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()

Wdrożenie niemożliwej.

public void Dispose()

Process(Opcje IPlugin)

Rozpoczyna się przetwarzanie Aspose.Pdf.Plugins.Html z określonymi parametrami.

public ResultContainer Process(IPluginOptions options)

Parameters

options IPluginOptions

Obiekt opcji zawierający instrukcje dla Aspose.Pdf.Plugins.Html.

Returns

ResultContainer

Obiekt Aspose.Pdf.Plugins.ResultContainer zawierający wynik operacji.

 Polski