Class Html
Class Html
Numele spaţiului: Aspose.Pdf.Plugins Asamblare: Aspose.PDF.dll (25.4.0)
Representează Aspose.Pdf.Plugins.Html plugin.
public sealed class Html : 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 Html
var converter = new Html();
// 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 Html
var converter = new Html();
// 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
Html()
public Html()
Methods
Dispose()
Implementarea unui IDISPOSIBIL.
public void Dispose()
Process(Opțiuni IPlugin)
Începe procesarea Aspose.Pdf.Plugins.Html 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.Html.
Returns
Un obiect Aspose.Pdf.Plugins.ResultContainer care conține rezultatul operațiunii.