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 对象。