IncrementalUpdate

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_databytes읽기/쓰기원본 데이터를 가져오거나 설정합니다.
limits`PdfLoadLimitsNone`읽기/쓰기
budget`_LoadBudgetNone`읽기/쓰기
original_eof_offsetint읽기/쓰기원본 eof 오프셋을 가져오거나 설정합니다.
next_obj_numint읽기/쓰기다음 obj 번호를 가져오거나 설정합니다.
modified_objectsdict[int, bytes]읽기/쓰기수정된 객체를 가져오거나 설정합니다.
xref_entrieslist[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전체 증분 업데이트 바이트를 반환합니다.

참조

 한국어