ชนิด THPDFNameTree
เลือกว่าจะให้คำสั่งสอบถามบนเอกสารที่โหลดแล้วมอง sub-tree ใดใต้ /Names ของ catalog ที่รู้จักกันดี (X17 v2.414.0; ISO 32000-1 §7.9.6)
การประกาศ
THPDFNameTreeType= (nttDests, nttJavaScript, nttEmbeddedFiles, nttPages,
nttTemplates, nttIDs, nttURLs, nttAlternatePresentations, nttRenditions);
ยูนิต
HPDFDoc
ค่า
| ค่า | ความหมาย |
|---|---|
nttDests | tree /Dests ของชื่อปลายทาง |
nttJavaScript | tree /JavaScript ของชื่อ JavaScript ระดับเอกสาร |
nttEmbeddedFiles | tree /EmbeddedFiles ของชื่อไฟล์ที่ฝังไว้ |
nttPages | tree /Pages ของชื่อหน้า |
nttTemplates | tree /Templates ของชื่อ template |
nttIDs | tree /IDs ของชื่อ identifier |
nttURLs | tree /URLs ของนามแฝง URL |
nttAlternatePresentations | tree /AlternatePresentations |
nttRenditions | tree /Renditions ของชื่อ rendition |
หมายเหตุการใช้งาน
- แต่ละค่าตรงกับ key ของพจนานุกรมที่ใช้ค้น tree นั้นใต้พจนานุกรม /Names ของ catalog (Dests, JavaScript, EmbeddedFiles, Pages, Templates, IDs, URLs, AlternatePresentations, Renditions)
- ส่งค่าชนิดนี้ให้ THotPDF.GetLoadedNameTreeRootCount ซึ่งคืนจำนวน entry name-value ใน tree นั้น หรือ 0 ถ้าเอกสารไม่มี tree ดังกล่าว
- name tree เก็บ entry ของมันเป็นอาร์เรย์ /Names ที่สลับกันระหว่าง key กับ value จำนวน entry จึงเท่ากับความยาวอาร์เรย์หารสอง