Class PdfHtml
Class PdfHtml
Navne til: Aspose.Pdf.Plugins Anmeldelse af: Aspose.PDF.dll
Det repræsenterer Aspose.Pdf.Plugins.PdfHtml plugin.
public sealed class PdfHtml : IPlugin, IDisposable
Inheritance
Implements
De arvede medlemmer
object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Examples
Eksemplet viser, hvordan man konverterer PDF til 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);
Eksemplet viser, hvordan man konverterer HTML til 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()
Udførelse af IDISPOSIBLE.
public void Dispose()
Process(IPluginoptioner)
Start Aspose.Pdf.Plugins.PdfHtml behandling med de angivne parametre.
public ResultContainer Process(IPluginOptions options)
Parameters
options
IPluginOptions
Et alternativ objekt, der indeholder instruktioner for Aspose.Pdf.Plugins.PdfHtml.
Returns
En Aspose.Pdf.Plugins.ResultContainer objekt, der indeholder resultatet af operationen.