Class PdfHtml
Class PdfHtml
nazivni prostor: Aspose.Pdf.Plugins Sastanak: Aspose.PDF.dll
Predstavlja Aspose.Pdf.Plugins.PdfHtml plugin.
public sealed class PdfHtml : IPlugin, IDisposable
Inheritance
Implements
naslijeđeni članovi
object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Examples
Primjer pokazuje kako pretvoriti PDF u 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);
Primjer pokazuje kako pretvoriti HTML u 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()
Uvođenje neprihvatljivih.
public void Dispose()
Process(IPluginopcije)
Početak obrade Aspose.Pdf.Plugins.PdfHtml s određenim parametrima.
public ResultContainer Process(IPluginOptions options)
Parameters
options
IPluginOptions
Objekt opcija koji sadrži upute za Aspose.Pdf.Plugins.PdfHtml.
Returns
Aspose.Pdf.Plugins.ResultContainer objekt koji sadrži rezultat operacije.