Class Merger

Class Merger

Tên không gian: Aspose.Pdf.Plugins Tổng hợp: Aspose.PDF.dll (25.4.0)

Hiển thị Aspose.Pdf.Plugins.Merger plugin.

public sealed class Merger : IPlugin

Inheritance

object Merger

Implements

IPlugin

Thành viên thừa kế

object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Examples

Ví dụ này cho thấy cách kết hợp hai tài liệu PDF.

// create Merger
var merger = new Merger();
// create MergeOptions object to set instructions
var opt = new MergeOptions();
// add input file paths
opt.AddInput(new FileDataSource(inputPath1));
opt.AddInput(new FileDataSource(inputPath2));
// set output file path
opt.AddOutput(new FileDataSource(outputPath));
// perform the process
merger.Process(opt);

Constructors

Merger()

public Merger()

Methods

Process(IPluginTùy chọn)

Bắt đầu xử lý Aspose.Pdf.Plugins.Merger với các thông số được chỉ định.

public ResultContainer Process(IPluginOptions options)

Parameters

options IPluginOptions

Một đối tượng tùy chọn chứa hướng dẫn cho Aspose.Pdf.Plugins.Merger.

Returns

ResultContainer

Một đối tượng ResultContainer chứa kết quả hoạt động.

Exceptions

InvalidOperationException

 Tiếng Việt