Class Splitter
Class Splitter
Namespace: Aspose.Pdf.Plugins
Assembly: Aspose.PDF.dll
Đại diện cho plugin Aspose.Pdf.Plugins.Splitter.
public class Splitter : IPlugin
Kế thừa
Thực hiện
Thành viên kế thừa
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Ví dụ
Ví dụ này minh họa cách chia tài liệu PDF.
// tạo Splitter
var splitter = new Splitter();
// tạo đối tượng SplitOptions để thiết lập hướng dẫn
var opt = new SplitOptions();
// 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(outputPath1));
opt.AddOutput(new FileDataSource(outputPath2));
// thực hiện quá trình
splitter.Process(opt);
Các hàm khởi tạo
Splitter()
public Splitter()
Các phương thức
Process(IPluginOptions)
Bắt đầu quá trình Aspose.Pdf.Plugins.Splitter với các tham số được chỉ định.
public ResultContainer Process(IPluginOptions options)
Tham số
options
IPluginOptions
Một đối tượng tùy chọn chứa hướng dẫn cho Aspose.Pdf.Plugins.Splitter.
Trả về
Một đối tượng ResultContainer chứa kết quả của thao tác.