CheckDocumentStructure

คุณสมบัติเอกสาร, การปฏิบัติตามมาตรฐาน

คำอธิบาย

รันการเช็คสุขภาพเชิงโครงสร้างบนเอกสารที่เลือกอยู่: วัตถุและสตรีมทุกอันถูกบังคับผ่านตัวถอดรหัสของมัน แล้วคืนผลที่พบเป็นรายงาน

ไวยากรณ์

Delphi

Function TPDFlib.CheckDocumentStructure: Integer;

ค่าที่ส่งคืน

0No document is selected.
IDA string list handle for GetStringListCount and GetStringListItem; release it with ReleaseStringList.

หมายเหตุ

ผลที่พบแต่ละข้อเป็นบรรทัด Level,Code,Object,Message หนึ่งบรรทัด ระดับเป็น error, warning หรือ info, บรรทัดสุดท้ายเป็น summary,... ที่มีจำนวน error กับ warning, จำนวนวัตถุและสตรีมที่ตรวจ และอัตราส่วนการระงับหน้า เงื่อนไขที่รายงานรวมวัตถุที่แยกวิเคราะห์ไม่ได้ (object-decode), สตรีม Flate ธรรมดาที่ถูกตัดขาดหรือเสีย (stream-decode, ตรวจเข้มเทียบ end marker ของ zlib), ทรายเลอร์ที่หายหรือแคตตาล็กเอกสารที่ไล่ไม่ถึง, handler การเข้ารหัสที่ไม่รองรับ, หน้าที่ไล่ไม่ถึง และเอกสารที่ข้อมูล cross-reference ถูกสร้างใหม่จากการสแกนไบต์ (repaired)

Use it as an inexpensive pre-flight gate before archiving or batch processing; CheckFileCompliance covers standards conformance while this call covers structural integrity.

ตัวอย่าง

ListID:= PDF.CheckDocumentStructure;
Last:= PDF.GetStringListItem(ListID, PDF.GetStringListCount(ListID));
if Pos('summary,0 errors', Last)<> 1 then
  ShowMessage('structural problems found');
PDF.ReleaseStringList(ListID);

ดูเพิ่มเติม

CheckFileCompliance, CheckObjects, AuditDocumentSpace, GetDocumentRepaired