PDFium Delphi Component Docs

เมธอด IsAnnotationSubtypeSupported

Component: TPdf  ·  Unit: PDFium
สอบถามว่าโมดูล PDFium ที่โหลดอยู่สร้างคำอธิบายประกอบ subtype ที่กำหนดได้หรือไม่

Syntax

function IsAnnotationSubtypeSupported(Subtype: TPdfAnnotationSubtype): Boolean;

SubtypeTPdfAnnotationSubtype Subtype ที่จะทดสอบ: anUnknown, anText, anLink, anFreeText, anLine, anSquare, anCircle, anPolygon, anPolyLine, anHighlight, anUnderline, anSquiggly, anStrikeout, anStamp, anCaret, anInk, anPopup, anFileAttachment, anSound, anMovie, anWidget, anScreen, anPrinterMark, anTrapNet, anWaterMark, anThreed, anRichMedia, anXfaWidget, anRedact
ResultBoolean คืน True เมื่อโมดูลรองรับการสร้าง subtype นั้น

Description

PDFium สร้างคำอธิบายประกอบได้เพียงบาง subtype เท่านั้นจากทั้งหมดที่ข้อกำหนด PDF กำหนดไว้ และชุดที่รองรับก็ต่างกันไปในแต่ละบิลด์ การสอบถามก่อนช่วยให้แอปพลิเคชันปิดเครื่องมือ markup ตั้งแต่แรก แทนที่จะปล่อยให้ CreateAnnotation ล้มเหลวในภายหลัง

คำตอบหมายถึงการรองรับการสร้างเท่านั้น คำอธิบายประกอบที่มีอยู่เดิมซึ่งเป็น subtype ที่ไม่รองรับยังถูกอ่านและเรนเดอร์ได้ตามปกติ

บนบิลด์ที่ไม่ export ฟังก์ชันสอบถามความสามารถ ผลลัพธ์จะเป็น False ซึ่งทำให้ผู้เรียกอยู่ในฝั่งที่ระมัดระวังเสมอ

See Also

CreateAnnotation, Annotation, AnnotationCount, DeleteAnnotation