Class PdfHtml
Class PdfHtml
Nom dels espais: Aspose.Pdf.Plugins Assemblea: Aspose.PDF.dll
Representa el plugin Aspose.Pdf.Plugins.PdfHtml.
public sealed class PdfHtml : IPlugin, IDisposableInheritance
Implements
Membres heretats
object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Examples
L’exemple demostra com convertir PDF a un 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);L’exemple demostra com convertir HTML en un document 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()
Implementació de l’Idispossible.
public void Dispose()Process(Opcions IPlugin)
Comença el tractament Aspose.Pdf.Plugins.PdfHtml amb els paràmetres especificats.
public ResultContainer Process(IPluginOptions options)Parameters
options IPluginOptions
Un objecte d’opcions que conté instruccions per a Aspose.Pdf.Plugins.PdfHtml.
Returns
Un objecte Aspose.Pdf.Plugins.ResultContainer que conté el resultat de l’operaci.