PdfFileEditor
개요
PdfFileEditor은 Aspose.PDF FOSS에서 Python용 클래스입니다.
PDF 파일 편집 작업을 위한 파사드.
이 클래스는 Python 프로그램에서 PdfFileEditor 객체를 다루기 위한 9개의 메서드를 제공합니다. 사용 가능한 메서드에는 __init__, add_page_break, append, close, concatenate, delete, dispose, extract, insert이 포함됩니다. 모든 공개 멤버는 Aspose.PDF FOSS for Python 패키지를 설치한 후 모든 Python 애플리케이션에서 접근할 수 있습니다. 속성: last_exception.
속성
| 이름 | 유형 | 액세스 | 설명 |
|---|---|---|---|
last_exception | `BaseException | None` | 읽기 |
메서드
| 시그니처 | 설명 |
|---|---|
__init__() | Calls init 이 PdfFileEditor 인스턴스에서. |
close() | 편집기를 닫고 리소스를 해제합니다. |
dispose() | 편집기를 폐기된 것으로 표시합니다. |
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에 빈 페이지를 추가합니다. |