Class Html
Class Html
Името на пространството: Aspose.Pdf.Plugins Асамблея: Aspose.PDF.dll (25.4.0)
Aspose.Pdf.Plugins.Html.
public sealed class Html : IPlugin, IDisposable
Inheritance
Implements
наследници
object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Examples
Примерът показва как да конвертирате PDF в 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);
Примерът показва как да конвертирате HTML в 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()
Изпълнение на невъзможни.
public void Dispose()
Process(IPlugin опции)
Aspose.Pdf.Plugins.Html.
public ResultContainer Process(IPluginOptions options)
Parameters
options
IPluginOptions
Aspose.Pdf.Plugins.Html.
Returns
Aspose.Pdf.Plugins.ResultContainer.