v24.12

إضافة مكوّن إضافي جديد: محول PDF إلى PNG

  • Class PngConverter: يمثل مكوّن Documentize.PngConverter. يُستخدم لتحويل مستندات PDF إلى صيغة PNG.
  • Class PdfToPngOptions: يمثل خيارات محول PDF إلى PNG للمكوّن Documentize.PngConverter.

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

// create PngConverter
var plugin = new PngConverter();
// create PdfToPngOptions object to set instructions
var opt = new PdfToPngOptions();
// add input file path
opt.AddInput(new FileDataSource("path_to_your_pdf_file.pdf"));
// set output file path
opt.AddOutput(new DirectoryDataSource("path_to_results_directory"));
// perform the process
plugin.Process(opt);

إضافة مكوّن إضافي جديد: محول PDF إلى TIFF

  • Class TiffConverter: يمثل مكوّن Documentize.TiffConverter. يُستخدم لتحويل مستندات PDF إلى صيغة TIFF.
  • Class PdfToTiffOptions: يمثل خيارات محول PDF إلى TIFF للمكوّن Documentize.TiffConverter.

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

// create TiffConverter
var plugin = new TiffConverter();
// create PdfToTiffOptions object to set instructions
var opt = new PdfToTiffOptions();
// add input file path
opt.AddInput(new FileDataSource("path_to_your_pdf_file.pdf"));
// set output file path
opt.AddOutput(new DirectoryDataSource("path_to_results_directory"));
// perform the process
plugin.Process(opt);

إضافة مكوّن إضافي جديد: مولّد جداول PDF

  • Class TableGenerator: يمثل مكوّن Documentize.TableGenerator. يُستخدم لإضافة جدول إلى مستند PDF.
  • Class TableBuilder: يمثل مُنشئ الجدول في صفحة PDF.
  • Class TableRowBuilder: يمثل مُنشئ صف الجدول.
  • Class TableCellBuilder: يمثل مُنشئ خلية الجدول.

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

// create TableGenerator
var plugin = new TableGenerator();
// create TableOptions object to set instructions
TableOptions opt = 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
opt.AddInput(new FileDataSource("path_to_your_pdf_file.pdf"));
/* set output file path */
opt.AddOutput(new FileDataSource("path_to_the_converted_file.pdf"));
// perform the process
plugin.Process(opt);

إعادة تسمية الفئة PdfDoc إلى DocConverter

  • Class DocConverter: يمثل مكوّن Documentize.DocConverter. يُستخدم لتحويل مستندات PDF إلى صيغة DOC/DOCX.

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

// create DocConverter
var plugin = new DocConverter();
// create PdfToDocOptions object to set instructions
var opt = new PdfToDocOptions();
// add input file path
opt.AddInput(new FileDataSource(inputPath));
// set output file path
opt.AddOutput(new FileDataSource(outputPath));
// perform the process
plugin.Process(opt);
 عربي