Class TableGenerator
情報
Documentize.TableGenerator プラグインを表します。PDF ドキュメントに表を追加するために使用されます。
[Obsolete("The class will be deleted soon. Please use PdfManager class.")]
public static class TableGeneratorInheritance
Inherited Members
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object?)
- object.Equals(object?, object?)
- object.ReferenceEquals(object?, object?)
- object.GetHashCode()
Examples
この例は、PDF ファイルに表を追加する方法を示しています。
// Configure table options
var options = new TableOptions().InsertPageBefore(1)
.AddTable()
.AddRow()
.AddCell().AddParagraph("Name")
.AddCell().AddParagraph("Age")
.AddRow()
.AddCell().AddParagraph("Bob")
.AddCell().AddParagraph("12")
.AddRow()
.AddCell().AddParagraph("Sam")
.AddCell().AddParagraph("20")
.AddRow()
.AddCell().AddParagraph("Sandy")
.AddCell().AddParagraph("26")
.AddRow()
.AddCell().AddParagraph("Tom")
.AddCell().AddParagraph("12")
.AddRow()
.AddCell().AddParagraph("Jim")
.AddCell().AddParagraph("27");
// Add input file path
options.AddInput(new FileData("path_to_input.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_output.pdf"));
// Perform the process
TableGenerator.Process(options);Methods
Process(TableOptions)
PDF ドキュメントに表を追加します。
public static ResultContainer Process(TableOptions options)Parameters
options– TableOptions: 操作の指示を含むオプション オブジェクト。
Returns
ResultContainer – 操作の結果を格納したオブジェクト。
Exceptions
- ArgumentException – オプションが設定されていない場合。
Namespace: Documentize
Assembly: Documentize.dll