GetImageDeduplicationReportJSON
Image handling, optimisation, diagnostics
คำอธิบาย
สร้าง manifest อ่านอย่างเดียวของ image XObject ที่ไบต์เหมือนกันเป๊ะ ซึ่ง DeduplicateResources รวมกันได้manifest จัดกลุ่มรูปด้วย digest SHA-256 บนพจนานุกรมรูป canonical กับ payload ที่เข้ารหัส, จดทุกวัตถุ indirect กับ generation, รายงานหน้าที่ไล่ถึงรูปแต่ละรูปผ่าน Form XObject ซ้อน และประมาณไบต์ payload ที่เข้ารหัสซึ่งเก็บกู้ได้
ไวยากรณ์
Delphi
Function TPDFlib.GetImageDeduplicationReportJSON(Out Report: WideString): Integer;DLL
const wchar_t* DLGetImageDeduplicationReportJSON(int InstanceID);ActiveX
Function PDFlib::GetImageDeduplicationReportJSON() As Stringค่าที่ส่งคืน
เมธอด Delphi คืนค่าจำนวนกลุ่มซ้ำและเขียนเอกสาร JSON ลง Reportเมธอด DLL กับ ActiveX คืนเอกสาร JSON ตรงๆ
JSON fields
| candidateImages | จำนวนสตรีมรูป indirect ที่ถูกแฮชใน dry run |
|---|---|
| duplicateImages | จำนวนวัตถุรูปที่เปลี่ยนทางไปชี้วัตถุ canonical ได้ |
| groupCount | Number of duplicate groups |
| crossPageGroupCount | กลุ่มที่ถูกใช้โดยหลายหน้า |
| reclaimableBytes | Total duplicate encoded payload bytes |
| groups | digest, ขนาด payload, สถานะข้ามหน้า และวัตถุสมาชิกพร้อมอาร์เรย์หน้าแบบนับจาก 1 |
Remarks
การสแกนไม่เขียนการอ้างใหม่หรือลบวัตถุเด็ดขาด ลำดับคีย์พจนานุกรมกับ
/Length storage do not create false differences, while decoding parameters, colour spaces, masks, interpolation, and other semantic dictionary differences remain distinct