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`BaseExceptionNone`อ่าน

วิธีการ

ลายเซ็นคำอธิบาย
__init__()Calls init บนอินสแตนซ์ PdfFileEditor นี้.
close()ปิดโปรแกรมแก้ไขและปล่อยทรัพยากร.
dispose()ทำเครื่องหมายว่า editor ถูกทำลายแล้ว.
concatenate(inputs: list[str], output: str) → boolรวมไฟล์ PDF หลายไฟล์เป็นไฟล์เดียว.
`extract(source: str, destination: str, page_from: intNone, 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: intNone, 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.

ดูเพิ่มเติม

 ภาษาไทย