Class Splitter

Thông tin

Đại diện cho plugin Documentize.Splitter. Sử dụng để chia tách tài liệu PDF thành các trang riêng biệt.

public static class Splitter

Kế thừa

objectSplitter

Các thành viên kế thừa

Ví dụ

Ví dụ này mô tả cách chia tách tài liệu PDF.

// Tạo đối tượng SplitOptions để thiết lập chỉ dẫn
var options = new SplitOptions();
// Thêm đường dẫn file đầu vào
options.AddInput(new FileDataSource("path_to_your_pdf_file.pdf"));
// Thiết lập đường dẫn file đầu ra
options.AddOutput(new FileDataSource("path_to_result_pdf_file_1.pdf"));
options.AddOutput(new FileDataSource("path_to_result_pdf_file_2.pdf"));
// Thực hiện quá trình
Splitter.Process(options);

Phương thức

Process(SplitOptions)

Chia tách tài liệu PDF theo trang.

public static ResultContainer Process(SplitOptions options)

Tham số

  • options SplitOptions: Một đối tượng tùy chọn chứa hướng dẫn cho thao tác.

Trả về

ResultContainer : Một đối tượng chứa kết quả của thao tác.

Ngoại lệ

ArgumentException

Nếu tùy chọn không được thiết lập.

Namespace: Documentize Assembly: Documentize.dll

 Tiếng Việt