Class PdfHtml

Class PdfHtml

Pôvodný názov: Aspose.Pdf.Plugins Spoločnosť: Aspose.PDF.dll

Predstavuje Aspose.Pdf.Plugins.PdfHtml plugin.

public sealed class PdfHtml : IPlugin, IDisposable

Inheritance

object PdfHtml

Implements

IPlugin , IDisposable

Z dedičných členov

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

Examples

Príklad ukazuje, ako premeniť PDF na HTML dokument.

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

Príklad ukazuje, ako premeniť HTML na PDF dokument.

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

Vykonávanie IDISPOSIBLE.

public void Dispose()

Process(IPluginopcie)

Začína sa spracovanie Aspose.Pdf.Plugins.PdfHtml so špecifikovanými parametrami.

public ResultContainer Process(IPluginOptions options)

Parameters

options IPluginOptions

Objekt možností, ktorý obsahuje pokyny pre Aspose.Pdf.Plugins.PdfHtml.

Returns

ResultContainer

Aspose.Pdf.Plugins.ResultContainer objekt obsahujúci výsledok operácie.

 Slovenčina