Class PdfHtml
Class PdfHtml
名称: Aspose.Pdf.Plugins 编辑: Aspose.PDF.dll
代表 Aspose.Pdf.Plugins.PdfHtml 插件。
public sealed class PdfHtml : 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 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);
例子表明如何将 HTML 转换为 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()
不可能的实施。
public void Dispose()
Process(IPlugin 选项)
启动 Aspose.Pdf.Plugins.PdfHtml 处理与指定的参数。
public ResultContainer Process(IPluginOptions options)
Parameters
options
IPluginOptions
包含 Aspose.Pdf.Plugins.PdfHtml 的指示的选项对象。
Returns
包含操作结果的 Aspose.Pdf.Plugins.ResultContainer 对象。