รีเคิร์ด THPDFXRefIntegrityInfo
สุขภาพตาราง cross-reference: จำนวนรายการ สภาพ free chain ชนิดที่ไม่ถูกต้อง รายการซ้ำ และนิยามที่ถูกบัง
การประกาศ
THPDFXRefIntegrityInfo= record
EntryCount: Integer;
FreeEntryCount: Integer;
FreeChainLength: Integer;
UnlinkedFreeEntryCount: Integer;
InvalidFreeLinkCount: Integer;
FreeCycleCount: Integer;
InvalidEntryTypeCount: Integer;
GenerationTransitionErrorCount: Integer;
DuplicateDefinitionCount: Integer;
ShadowedDefinitionCount: Integer;
DroppedShadowedDetailCount: Integer;
Valid: boolean;
Diagnostic: AnsiString;
ShadowedEntries: THPDFXRefShadowedEntryArray;
end;
ยูนิต
HPDFDoc
ฟิลด์
| ฟิลด์ | วัตถุประสงค์ |
|---|---|
EntryCount | จำนวนรายการรวมทุก section ของ cross-reference ที่ merge แล้ว ถ้าเป็นศูนย์แปลว่าไม่มีข้อมูล integrity ให้ดู |
FreeEntryCount | รายการที่ mark ว่า free (ชนิด f) |
FreeChainLength | ความยาวของ free-list chain ที่เดินไปถึงได้จาก object ศูนย์ |
UnlinkedFreeEntryCount | รายการ free ที่มีอยู่แต่เดินผ่าน free chain ไปไม่ถึง |
InvalidFreeLinkCount | รายการ free ที่ลิงก์แบบ /Next ชี้ไปหารายการที่ไม่ free |
FreeCycleCount | วงจรที่ตรวจพบระหว่างเดิน free chain |
InvalidEntryTypeCount | รายการที่ type byte ไม่ใช่ทั้ง in-use และ free |
GenerationTransitionErrorCount | การเปลี่ยนจาก in-use เป็น free ที่เลข generation ละเมิดกฎ mod-65536 |
DuplicateDefinitionCount | เลข object ที่ถูกนิยามมากกว่าหนึ่งครั้งข้าม revision |
ShadowedDefinitionCount | นิยามซ้ำที่สำเนาเก่าแพ้ให้ revision ใหม่สุด |
DroppedShadowedDetailCount | รายการที่ถูกบังซึ่งเก็บรายละเอียดเต็มไว้ใน ShadowedEntries ไม่ได้ |
Valid | เป็น True เมื่อตารางที่ merge แล้วผ่านการเช็คเชิงโครงสร้างครบทุกข้อ |
Diagnostic | ข้อความบรรยายหมวดปัญหาแรกที่พบ |
ShadowedEntries | รายละเอียดรายรายการของนิยามที่ถูกบัง ทั้งชนิด active กับชนิดที่ถูกบัง, offset, generation และ revision |
หมายเหตุการใช้งาน
- เติมค่าด้วย
GetLoadedXRefIntegrityInfoซึ่งคืน false เมื่อเอกสารที่โหลดไว้ไม่มีผลสแกน integrity ให้ FreeCycleCountกับInvalidFreeLinkCountมากกว่าศูนย์แปลว่าควรซ่อม free list ก่อน incremental save ใด ๆShadowedEntriesเป็นหลักฐานเบื้องหลังของShadowedDefinitionCountจับคู่กับTHPDFXRefMergeInfoเพื่อดูว่าลำดับความสำคัญของ revision ไหนทำให้ฝ่ายไหนชนะ