v25.2

تم إضافة ملحق جديد: TOC Generator

  • Class TocGenerator: يمثل ملحق Documentize.TocGenerator. يُستخدم لإضافة جدول محتويات إلى مستندات PDF.
  • Class TocOptions: يمثل خيارات إضافة جدول المحتويات إلى المستند باستخدام ملحق Documentize.TocGenerator.
  • Class TocHeading: يمثل خيارات العناوين أو العناوين الفرعية لجدول المحتويات في المستند باستخدام ملحق Documentize.TocGenerator.

مثال على الاستخدام:

// The example demonstrates how to add Table of Contents to PDF file.
var options = new TocOptions();
// Set the Title
options.Title = "My Table of Contents";
// Generate links in bookmarks
options.GenerateBookmarks = true;
// Design Headings
options.Headings.Add(new TocHeading("Introduction", 2, false, 1));
options.Headings.Add(new TocHeading("Chapter I", 3, true, 1));
options.Headings.Add(new TocHeading("Chapter II", 4, true, 1));
options.Headings.Add(new TocHeading("Example A", 4, true, 2));
options.Headings.Add(new TocHeading("Example B", 4, true, 2));
options.Headings.Add(new TocHeading("Example C", 4, true, 2));
options.Headings.Add(new TocHeading("Example D", 4, true, 2));
options.Headings.Add(new TocHeading("Chapter III", 5, true, 1));
// Add input file path
options.AddInput(new FileDataSource("path_to_your_pdf_file.pdf"));
// Set output file path
options.AddOutput(new FileDataSource("path_to_result_pdf_file.pdf"));
// Perform the process
TocGenerator.Process(options);

إصلاحات طفيفة

  • تحسين التلميحات في الفئات والأمثلة.
  • تحديث العلامات المائية.
  • تحسين تحويل PDF إلى XSLX.
  • تحسين تحويل PDF إلى PDF/A-1a.
 عربي