PdfFileEditor
PdfFileEditor
ภาพรวม
PdfFileEditor เป็นคลาสใน Aspose.PDF FOSS สำหรับ Python.
ส่วนห่อสำหรับการดำเนินการแก้ไขไฟล์ PDF.
คลาสนี้ให้ 9 เมธอดสำหรับทำงานกับอ็อบเจ็กต์ PdfFileEditor ในโปรแกรม Python. วิธีการที่มีรวมถึง: __init__, add_page_break, append, close, concatenate, delete, dispose, extract, insert. สมาชิกสาธารณะทั้งหมดสามารถเข้าถึงได้จากแอปพลิเคชัน Python ใด ๆ หลังจากติดตั้งแพคเกจ Aspose.PDF FOSS สำหรับ Python. คุณสมบัติ: last_exception.
คุณสมบัติ
| ชื่อ | ประเภท | การเข้าถึง | คำอธิบาย |
|---|---|---|---|
last_exception | `BaseException | None` | อ่าน |
วิธีการ
| ลายเซ็น | คำอธิบาย |
|---|---|
__init__() | Calls init บนอินสแตนซ์ PdfFileEditor นี้. |
close() | ปิดโปรแกรมแก้ไขและปล่อยทรัพยากร. |
dispose() | ทำเครื่องหมายว่า editor ถูกทำลายแล้ว. |
concatenate(inputs: list[str], output: str) → bool | รวมไฟล์ PDF หลายไฟล์เป็นไฟล์เดียว. |
| `extract(source: str, destination: str, page_from: int | None, page_to: int |
insert(source: str, insert_file: str, destination: str, position: int) → bool | แทรกหน้าจาก PDF หนึ่งไปยังอีก PDF หนึ่ง. |
| `delete(source: str, destination: str, pages_to_delete: Any, page_to: int | None, page_from: int |
append(source: str, append_source: str, destination: str) → bool | ต่อหน้าจาก PDF หนึ่งไปยังอีก PDF หนึ่ง. |
add_page_break(input_path: str, output_path: str) → bool | เพิ่มหน้าว่างลงในไฟล์ PDF. |