Class Splitter
Class Splitter
Namespace: Aspose.Pdf.Plugins
Assembly: Aspose.PDF.dll
แทนที่ Aspose.Pdf.Plugins.Splitter plugin.
public class Splitter : IPlugin
การสืบทอด
การนำไปใช้
สมาชิกที่สืบทอด
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
ตัวอย่าง
ตัวอย่างนี้แสดงวิธีการแบ่งเอกสาร PDF.
// สร้าง Splitter
var splitter = new Splitter();
// สร้างอ็อบเจ็กต์ SplitOptions เพื่อตั้งคำสั่ง
var opt = new SplitOptions();
// เพิ่มเส้นทางไฟล์นำเข้า
opt.AddInput(new FileDataSource(inputPath));
// ตั้งค่าเส้นทางไฟล์ส่งออก
opt.AddOutput(new FileDataSource(outputPath1));
opt.AddOutput(new FileDataSource(outputPath2));
// ทำการประมวลผล
splitter.Process(opt);
ตัวสร้าง
Splitter()
public Splitter()
วิธีการ
Process(IPluginOptions)
เริ่มการประมวลผล Aspose.Pdf.Plugins.Splitter ด้วยพารามิเตอร์ที่ระบุ.
public ResultContainer Process(IPluginOptions options)
พารามิเตอร์
options
IPluginOptions
อ็อบเจ็กต์ตัวเลือกที่มีคำสั่งสำหรับ Aspose.Pdf.Plugins.Splitter.
คืนค่า
อ็อบเจ็กต์ ResultContainer ที่มีผลลัพธ์ของการดำเนินการ.