Class Merger

Class Merger

Namespace: Aspose.Pdf.Plugins
Assembly: Aspose.PDF.dll

แสดงถึงปลั๊กอิน Aspose.Pdf.Plugins.Merger

public sealed class Merger : IPlugin

การสืบทอด

objectMerger

การนำไปใช้

IPlugin

สมาชิกที่สืบทอด

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

ตัวอย่าง

ตัวอย่างนี้แสดงวิธีการรวมเอกสาร PDF สองฉบับ

// สร้าง Merger
var merger = new Merger();
// สร้าง MergeOptions object เพื่อตั้งคำสั่ง
var opt = new MergeOptions();
// เพิ่มที่อยู่ไฟล์นำเข้า
opt.AddInput(new FileDataSource(inputPath1));
opt.AddInput(new FileDataSource(inputPath2));
// ตั้งที่อยู่ไฟล์ส่งออก
opt.AddOutput(new FileDataSource(outputPath));
// ดำเนินการ
merger.Process(opt);

ตัวสร้าง

Merger()

public Merger()

วิธีการ

Process(IPluginOptions)

เริ่มต้นการประมวลผล Aspose.Pdf.Plugins.Merger ด้วยพารามิเตอร์ที่กำหนด

public ResultContainer Process(IPluginOptions options)

พารามิเตอร์

options IPluginOptions

อ็อบเจ็กต์ตัวเลือกที่มีคำสั่งสำหรับ Aspose.Pdf.Plugins.Merger

คืนค่า

ResultContainer

อ็อบเจ็กต์ ResultContainer ที่มีผลลัพธ์ของการดำเนินการ

ข้อยกเว้น

InvalidOperationException

 แบบไทย