PdfFileEditor
PdfFileEditor
Gambaran Umum
PdfFileEditor adalah kelas dalam Aspose.PDF FOSS untuk Python.
Facade untuk operasi penyuntingan berkas PDF.
Kelas ini menyediakan 9 metode untuk bekerja dengan objek PdfFileEditor dalam program Python. Metode yang tersedia meliputi: __init__, add_page_break, append, close, concatenate, delete, dispose, extract, insert. Semua anggota publik dapat diakses oleh aplikasi Python mana pun setelah memasang paket Aspose.PDF FOSS untuk Python. Properti: last_exception.
Properti
| Nama | Jenis | Akses | Deskripsi |
|---|---|---|---|
last_exception | `BaseException | None` | Baca |
Metode
| Tanda tangan | Deskripsi |
|---|---|
__init__() | Calls init pada instance PdfFileEditor ini. |
close() | Tutup editor dan bebaskan sumber daya. |
dispose() | Tandai editor sebagai dibuang. |
concatenate(inputs: list[str], output: str) → bool | Gabungkan beberapa file PDF menjadi satu. |
| `extract(source: str, destination: str, page_from: int | None, page_to: int |
insert(source: str, insert_file: str, destination: str, position: int) → bool | Sisipkan halaman dari satu PDF ke PDF lainnya. |
| `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 | Tambahkan halaman dari satu PDF ke PDF lainnya. |
add_page_break(input_path: str, output_path: str) → bool | Tambahkan halaman kosong ke PDF. |