v24.12

Đã thêm Plugin mới: Chuyển đổi PDF sang PNG

  • Lớp PngConverter: Đại diện cho plugin Documentize.PngConverter. Được sử dụng để chuyển đổi tài liệu PDF thành định dạng PNG.
  • Lớp PdfToPngOptions: Đại diện cho các tùy chọn chuyển đổi PDF sang PNG cho plugin Documentize.PngConverter.

Ví dụ sử dụng:

// tạo PngConverter
var plugin = new PngConverter();
// tạo đối tượng PdfToPngOptions để thiết lập hướng dẫn
var opt = new PdfToPngOptions();
// thêm đường dẫn tệp đầu vào
opt.AddInput(new FileDataSource("path_to_your_pdf_file.pdf"));
// thiết lập đường dẫn tệp đầu ra
opt.AddOutput(new DirectoryDataSource("path_to_results_directory"));
// thực hiện quá trình
plugin.Process(opt);

Đã thêm Plugin mới: Chuyển đổi PDF sang TIFF

  • Lớp TiffConverter: Đại diện cho plugin Documentize.TiffConverter. Được sử dụng để chuyển đổi tài liệu PDF thành định dạng TIFF.
  • Lớp PdfToTiffOptions: Đại diện cho các tùy chọn chuyển đổi PDF sang TIFF cho plugin Documentize.TiffConverter.

Ví dụ sử dụng:

// tạo TiffConverter
var plugin = new TiffConverter();
// tạo đối tượng PdfToTiffOptions để thiết lập hướng dẫn
var opt = new PdfToTiffOptions();
// thêm đường dẫn tệp đầu vào
opt.AddInput(new FileDataSource("path_to_your_pdf_file.pdf"));
// thiết lập đường dẫn tệp đầu ra
opt.AddOutput(new DirectoryDataSource("path_to_results_directory"));
// thực hiện quá trình
plugin.Process(opt);

Đã thêm Plugin mới: Tạo bảng PDF

  • Lớp TableGenerator: Đại diện cho plugin Documentize.TableGenerator. Được sử dụng để thêm một bảng vào tài liệu PDF.
  • Lớp TableBuilder: Lớp đại diện cho trình tạo bảng trong trang pdf.
  • Lớp TableRowBuilder: Lớp đại diện cho trình tạo hàng bảng.
  • Lớp TableCellBuilder: Lớp đại diện cho trình tạo ô bảng.

Ví dụ sử dụng:

// tạo TableGenerator
var plugin = new TableGenerator();
// tạo đối tượng TableOptions để thiết lập hướng dẫn
TableOptions opt = new TableOptions().InsertPageBefore(1)
   .AddTable()
        .AddRow()
            .AddCell().AddParagraph("Tên")
            .AddCell().AddParagraph("Tuổi")
        .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");
// thêm đường dẫn tệp đầu vào
opt.AddInput(new FileDataSource("path_to_your_pdf_file.pdf"));
// thiết lập đường dẫn tệp đầu ra
opt.AddOutput(new FileDataSource("path_to_the_converted_file.pdf"));
// thực hiện quá trình
plugin.Process(opt);

Đã đổi tên Lớp PdfDoc thành DocConverter

  • Lớp DocConverter: Đại diện cho plugin Documentize.DocConverter. Được sử dụng để chuyển đổi tài liệu PDF thành định dạng DOC/DOCX.

Ví dụ sử dụng:

// tạo DocConverter
var plugin = new DocConverter();
// tạo đối tượng PdfToDocOptions để thiết lập hướng dẫn
var opt = new PdfToDocOptions();
// thêm đường dẫn tệp đầu vào
opt.AddInput(new FileDataSource(inputPath));
// thiết lập đường dẫn tệp đầu ra
opt.AddOutput(new FileDataSource(outputPath));
// thực hiện quá trình
plugin.Process(opt);
10 thg 7, 2025
 Tiếng Việt