รีเคิร์ด THPDFLoadedAnnotationInfo
metadata แบบอ่านอย่างเดียวของ annotation หนึ่งตัวในหน้าที่โหลดแล้ว ดึงมาจากพจนานุกรม annotation ของมัน: subtype, contents, สี่เหลี่ยม, title, flags, การมี appearance, หมายเลขออบเจ็กต์ และ index หน้า
การประกาศ
THPDFLoadedAnnotationInfo= record
Subtype: AnsiString;
Contents: AnsiString;
Rect: THPDFRect;
Title: AnsiString;
Flags: Integer;
HasAppearance: boolean;
ObjectNumber: Integer;
PageIndex: Integer;
end;
ยูนิต
HPDFDoc
ฟิลด์
| ฟิลด์ | วัตถุประสงค์ |
|---|---|
Subtype | ชื่อ /Subtype ของ annotation เช่น Text, Link หรือ RichMedia |
Contents | ข้อความ /Contents ของ annotation |
Rect | อาร์เรย์ /Rect map เป็น THPDFRect ในลำดับ Left, Top, Right, Bottom จะเป็นศูนย์ถ้า entry หายหรือเสีย |
Title | สตริง title (ผู้เขียน) จาก /T ของ annotation |
Flags | ค่า flag จำนวนเต็มจาก /F ของ annotation เป็นศูนย์เมื่อไม่มี entry |
HasAppearance | true เมื่อพจนานุกรม annotation มี entry /AP |
ObjectNumber | หมายเลข indirect object ของพจนานุกรม annotation |
PageIndex | index หน้าเจ้าของ นับจาก 0 สะท้อนกลับหน้าที่ขอมา |
หมายเหตุการใช้งาน
- ไล่รายการ annotation ด้วย
THotPDF.GetLoadedAnnotationCountแล้วดึงทีละตัวด้วยTHotPDF.GetLoadedAnnotationInfoถ้าได้ผลfalseรีเคิร์ดจะยังว่างเปล่าเหมือนเดิม - ใช้
ObjectNumberคู่กับTHotPDF.GetLoadedAnnotationDictเมื่อต้องการ entry ที่มากกว่าฟิลด์สรุปที่มีให้ - ตัวส่งออก FDF interchange ใช้รีเคิร์ดนี้แปลง annotation เป็นข้อมูลอนุกรม ฟิลด์ของมันจึงกำหนดตรง ๆ ว่าอะไรจะรอดไปกลับผ่าน FDF ได้บ้าง