Class TableGenerator
Class TableGenerator
Namespace: Aspose.Pdf.Plugins
Assembly: Aspose.PDF.dll
表示 Aspose.PDF TableGenerator 插件。
public sealed class TableGenerator : IPlugin, IDisposable
继承
实现
继承成员
object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
示例
该示例演示如何向 PDF 文件添加表格。
// 创建 TableGenerator
var generator = new TableGenerator();
// 创建 TableOptions 对象以设置指令
var opt = new TableOptions();
// 添加输入文件路径
opt.AddInput(new FileDataSource(inputPath1));
opt.AddInput(new FileDataSource(inputPath2));
// 设置输出文件路径
opt.AddOutput(new FileDataSource(outputPath));
// 执行提取过程
generator.Process(opt);
构造函数
TableGenerator()
public TableGenerator()
方法
Dispose()
IDisposable 的实现。实际上,TableGenerator 并不需要此功能。
public void Dispose()
Process(IPluginOptions)
使用指定的参数开始 PdfGenerator 处理。
public ResultContainer Process(IPluginOptions options)
参数
options
IPluginOptions
一个选项对象,包含 PdfGenerator 的指令。
返回
一个 ResultContainer 对象,包含操作的结果。