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 ได้
groupCountNumber of duplicate groups
crossPageGroupCountกลุ่มที่ถูกใช้โดยหลายหน้า
reclaimableBytesTotal duplicate encoded payload bytes
groupsdigest, ขนาด payload, สถานะข้ามหน้า และวัตถุสมาชิกพร้อมอาร์เรย์หน้าแบบนับจาก 1

Remarks

การสแกนไม่เขียนการอ้างใหม่หรือลบวัตถุเด็ดขาด ลำดับคีย์พจนานุกรมกับ

/Length storage do not create false differences, while decoding parameters, colour spaces, masks, interpolation, and other semantic dictionary differences remain distinct

ดูเพิ่มเติม

DeduplicateResources, FindImages, GetImageInfoJSON