Class Merger
Namespace: Aspose.Pdf.Plugins
Assembly: Aspose.PDF.dll
Đại diện cho plugin Aspose.Pdf.Plugins.Merger.
public sealed class Merger : IPlugin
Kế thừa
Triển khai
Các thành viên kế thừa
object.GetType(), 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 hợp nhất hai tài liệu PDF.
// tạo Merger
var merger = new Merger();
// tạo đối tượng MergeOptions để thiết lập hướng dẫn
var opt = new MergeOptions();
// thêm đường dẫn tệp đầu vào
opt.AddInput(new FileDataSource(inputPath1));
opt.AddInput(new FileDataSource(inputPath2));
// thiết lập đường dẫn tệp đầu ra
opt.AddOutput(new FileDataSource(outputPath));
// thực hiện quá trình
merger.Process(opt);
Các hàm khởi tạo
Merger()
public Merger()
Các phương thức
Process(IPluginOptions)
Bắt đầu quá trình Aspose.Pdf.Plugins.Merger 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 các hướng dẫn cho Aspose.Pdf.Plugins.Merger.
Trả về
Một đối tượng ResultContainer chứa kết quả của thao tác.