Class TableGenerator
معلومات
يمثل ملحق Documentize.TableGenerator. يُستخدم لإضافة جدول إلى مستند PDF.
public sealed class TableGenerator
الوراثة
الأعضاء الموروثة
- object.GetType(),
- object.ToString(),
- object.Equals(object?),
- object.Equals(object?, object?),
- object.ReferenceEquals(object?, object?),
- object.GetHashCode()
أمثلة
توضح هذه الأمثلة كيفية إضافة جدول إلى ملف PDF.
// Initialize the TableGenerator
var plugin = new TableGenerator();
// Configure table options
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");
// Add input file path
options.AddInput(new FileDataSource("path_to_input.pdf"));
// Set output file path
options.AddOutput(new FileDataSource("path_to_output.pdf"));
// Perform the process
plugin.Process(options);
البانيات
TableGenerator()
public TableGenerator()
الطرق
Process(TableOptions)
إضافة جدول إلى مستند PDF.
public ResultContainer Process(TableOptions options)
المعلمات
options
TableOptions: كائن خيارات يحتوي على تعليمات للعملية.
العوائد
ResultContainer : كائن يحتوي على نتيجة العملية.
الاستثناءات
إذا لم يتم تعيين الخيارات.
Namespace: Documentize Assembly: Documentize.dll