Class TableGenerator
情報
Documentize.TableGeneratorプラグインを表します。PDFドキュメントにテーブルを追加するために使用されます。
[Obsolete("このクラスはまもなく削除されます。PdfManagerクラスを使用してください。")]
public static class TableGenerator継承
継承されたメンバー
- object.GetType(),
- object.MemberwiseClone(),
- object.ToString(),
- object.Equals(object?),
- object.Equals(object?, object?),
- object.ReferenceEquals(object?, object?),
- object.GetHashCode()
例
この例では、PDFファイルにテーブルを追加する方法を示します。
// テーブルオプションを設定
var options = new TableOptions().InsertPageBefore(1)
.AddTable()
.AddRow()
.AddCell().AddParagraph("名前")
.AddCell().AddParagraph("年齢")
.AddRow()
.AddCell().AddParagraph("ボブ")
.AddCell().AddParagraph("12")
.AddRow()
.AddCell().AddParagraph("サム")
.AddCell().AddParagraph("20")
.AddRow()
.AddCell().AddParagraph("サンディ")
.AddCell().AddParagraph("26")
.AddRow()
.AddCell().AddParagraph("トム")
.AddCell().AddParagraph("12")
.AddRow()
.AddCell().AddParagraph("ジム")
.AddCell().AddParagraph("27");
// 入力ファイルパスを追加
options.AddInput(new FileDataSource("path_to_input.pdf"));
// 出力ファイルパスを設定
options.AddOutput(new FileDataSource("path_to_output.pdf"));
// プロセスを実行
TableGenerator.Process(options);メソッド
Process(TableOptions)
PDFドキュメントにテーブルを追加します。
public static ResultContainer Process(TableOptions options)パラメータ
optionsTableOptions: 操作のための指示を含むオプションオブジェクト。
戻り値
ResultContainer : 操作の結果を含むオブジェクト。
例外
オプションが設定されていない場合。
名前空間: Documentize アセンブリ: Documentize.dll