IncrementalUpdate
개요
IncrementalUpdate은 Aspose.PDF FOSS에서 Python용 클래스입니다.
기존 PDF에 대한 증분 업데이트 섹션을 생성합니다.
이 클래스는 Python 프로그램에서 IncrementalUpdate 객체를 다루기 위한 8개의 메서드를 제공합니다. 사용 가능한 메서드에는 add_new_object, add_object, build_incremental_trailer, build_incremental_xref, find_last_eof, find_startxref, generate, get_next_object_number이(가) 포함됩니다. 모든 공용 멤버는 Aspose.PDF FOSS for Python 패키지를 설치한 후 Python 애플리케이션에서 접근할 수 있습니다. 속성: budget, limits, modified_objects, next_obj_num, original_data, original_eof_offset, 및 1개가 더 있습니다.
속성
| 이름 | 유형 | 액세스 | 설명 |
|---|---|---|---|
original_data | bytes | 읽기/쓰기 | 원본 데이터를 가져오거나 설정합니다. |
limits | `PdfLoadLimits | None` | 읽기/쓰기 |
budget | `_LoadBudget | None` | 읽기/쓰기 |
original_eof_offset | int | 읽기/쓰기 | 원본 eof 오프셋을 가져오거나 설정합니다. |
next_obj_num | int | 읽기/쓰기 | 다음 obj 번호를 가져오거나 설정합니다. |
modified_objects | dict[int, bytes] | 읽기/쓰기 | 수정된 객체를 가져오거나 설정합니다. |
xref_entries | list[tuple[int, int, int]] | 읽기/쓰기 | xref 항목을 가져오거나 설정합니다. |
메서드
| 시그니처 | 설명 |
|---|---|
find_last_eof() → int | 마지막 %%EOF 마커의 시작 인덱스를 반환합니다. |
find_startxref() → int | 마지막 startxref 키워드 뒤에 오는 정수 값을 반환합니다. |
get_next_object_number() → int | 다음 사용 가능한 객체 번호를 반환하고 예약합니다. |
add_object(obj_num: int, obj_bytes: bytes) | 증분 업데이트에서 객체를 추가하거나 교체합니다. |
add_new_object(obj_bytes: bytes) → int | 새로운 객체를 추가하고 할당된 번호를 반환합니다. |
build_incremental_xref(base_offset: int) → bytes | 추가된 개체에 대한 xref 섹션을 생성합니다. |
build_incremental_trailer(prev_xref: int, new_size: int, xref_offset: int) → bytes | 이전 xref 테이블을 참조하는 트레일러를 생성합니다. |
generate() → bytes | 전체 증분 업데이트 바이트를 반환합니다. |