Class PdfHtml
Class PdfHtml
Numele spaţiului: Aspose.Pdf.Plugins Etichetă: ASPOSE.PDF.dll
Representează Aspose.Pdf.Plugins.PdfHtml plugin.
public sealed class PdfHtml : IPlugin, IDisposable
Inheritance
Implements
Membrii moștenitori
object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Examples
Exemplul arată cum să convertiți PDF în document HTML.
// 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);
Exemplul demonstrează modul de convertire a documentului HTML în PDF.
// 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()
Implementarea unui IDISPOSIBIL.
public void Dispose()
Process(Opțiuni IPlugin)
Începe procesarea Aspose.Pdf.Plugins.PdfHtml cu parametrii specificați.
public ResultContainer Process(IPluginOptions options)
Parameters
options
IPluginOptions
Un obiect de opțiuni care conține instrucțiuni pentru Aspose.Pdf.Plugins.PdfHtml.
Returns
Un obiect Aspose.Pdf.Plugins.ResultContainer care conține rezultatul operațiunii.