function IsAnnotationObjectSubtypeSupported(Subtype: TPdfAnnotationSubtype): Boolean;
| Subtype | TPdfAnnotationSubtype. 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 |
| Result | Boolean. เป็น True เมื่อโมดูลรองรับ subtype นั้นสำหรับการจัดการระดับ object |
เป็นคู่ในระดับ object ของ IsAnnotationSubtypeSupported โดยที่การเรียกนั้นรายงานว่าสร้าง subtype ด้วย CreateAnnotation ได้หรือไม่ ส่วนการเรียกนี้ถามโมดูลว่ารองรับการจัดการ object ของ subtype นั้นหรือไม่ — เป็นคำถามที่กำกับ API กลุ่ม annotation object อย่าง AnnotationObjectInfo และ AnnotationObjectCount ซึ่งอ่านและแก้ไข page object ที่วาดอยู่ในคำอธิบายประกอบ
คำตอบแตกต่างกันไปตาม build ของ PDFium การทดสอบก่อนทำให้แอปเปิดหรือปิดฟีเจอร์แก้ไขระดับ object ตั้งแต่ต้น แทนที่จะปล่อยให้พังภายหลังตอนเรียกใช้จริง
ถ้า build PDFium ที่โหลดไว้ไม่ได้ export คำถามระดับ native (FPDFAnnot_IsObjectSupportedSubtype) ผลลัพธ์จะเป็น False เพื่อให้ผู้เรียกเดินตามฝั่งที่ปลอดภัย
if Pdf1.IsAnnotationObjectSubtypeSupported(anStamp) then
BtnEditStampObjects.Enabled := True
else
// no object-level stamp editing on this PDFium build
BtnEditStampObjects.Enabled := False;