PdfFileEditor
概要
PdfFileEditor は Aspose.PDF の FOSS における Python 用クラスです。
PDF ファイル編集操作のファサード。
このクラスは、Python プログラムにおける PdfFileEditor オブジェクトを操作するための 9 つのメソッドを提供します。利用可能なメソッドは次のとおりです: __init__, add_page_break, append, close, concatenate, delete, dispose, extract, insert。すべての公開メンバーは、Aspose.PDF の Python 用 FOSS パッケージをインストールした後、任意の Python アプリケーションからアクセス可能です。プロパティ: last_exception。
プロパティ
| 名前 | 型 | アクセス | 説明 |
|---|---|---|---|
last_exception | `BaseException | None` | 読み取り |
メソッド
| シグネチャ | 説明 |
|---|---|
__init__() | Calls init この PdfFileEditor インスタンス上で。 |
close() | エディタを閉じてリソースを解放してください。 |
dispose() | エディタを破棄済みとしてマークする。 |
concatenate(inputs: list[str], output: str) → bool | 複数の PDF ファイルを1つに連結する。 |
| `extract(source: str, destination: str, page_from: int | None, page_to: int |
insert(source: str, insert_file: str, destination: str, position: int) → bool | 1つの 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 に空白ページを追加します。 |