THPDFLinearizedPageRangeOptions Record
점진적 선형화 범위 플래너의 예산과 스위치입니다. bootstrap·크로스 레퍼런스 범위 포함, row-aligned 힌트, 갭 병합, 페이지·그룹·범위·메모리 하드 상한을 다룹니다
선언
THPDFLinearizedPageRangeOptions= record
IncludeBootstrapRanges: boolean;
IncludeCrossReferenceRanges: boolean;
AllowRowAlignedHints: boolean;
MergeGapBytes: Int64;
MaximumHintBytes: Int64;
MaximumPageCount: Integer;
MaximumSharedGroups: Integer;
MaximumSharedReferences: Integer;
MaximumRanges: Integer;
MaximumPlannedBytes: Int64;
MaximumPlannerMemoryBytes: Int64;
class function Default: THPDFLinearizedPageRangeOptions; static;
end;
유닛
HPDFDoc
필드
| 필드 | 목적 |
|---|---|
IncludeBootstrapRanges | 어떤 페이지도 디코딩되기 전에 필요한 헤더와 bootstrap 바이트 범위를 추가. 기본값 true |
IncludeCrossReferenceRanges | 메인 크로스 레퍼런스 섹션의 바이트 범위를 플랜에 추가. 기본값 true |
AllowRowAlignedHints | 디코딩 중 상호 운용 가능한 row-aligned 힌트 레이아웃을 받아들임. 기본값 true |
MergeGapBytes | 두 계획 범위 사이의 갭이 이 바이트 이하면 병합. 기본값 0(병합 안 함) |
MaximumHintBytes | 이보다 큰 힌트 스트림은 거부. 기본값 67108864(64 MiB) |
MaximumPageCount | 이보다 많은 페이지를 가진 문서는 거부. 기본값 1000000 |
MaximumSharedGroups | 계획하는 shared-object 그룹 수 상한. 기본값 1000000 |
MaximumSharedReferences | 계획하는 shared-object 참조 수 상한. 기본값 4000000 |
MaximumRanges | 플랜별로 내보내는 바이트 범위 수 상한. 기본값 65536 |
MaximumPlannedBytes | 총 바이트 커버리지가 이를 넘는 플랜은 거부. 기본값 536870912(512 MiB) |
MaximumPlannerMemoryBytes | 플래너 작업 메모리 상한. 기본값 268435456(256 MiB) |
Default | 위에 나열한 값을 돌려주는 클래스 함수 |
사용 참고 사항
THPDFLinearizedPageRangeOptions.Default에서 시작합니다.PlanProgressiveLinearizedPageRanges의 옵션 없는 오버로드가 정확히 이 값들을 적용합니다IncludeBootstrapRanges와IncludeCrossReferenceRanges를 끄면 페이지 전용 범위만 계획합니다. 점진적 로드 probe가 헤더 읽기 크기를 정할 때 쓰는 방식입니다- 메모리가 부족한 호스트에서는
MaximumPlannerMemoryBytes를 낮춥니다. 플래너는 과도한 약속 대신 상태와 diagnostic으로 fail closed합니다