对于包含注释,其中widgetFieldType
为PDFAnnotationWidgetSubtype.text
和PDFAnnotationWidgetSubtype.button
的PDFDocument
,是否可以禁用这些注释的用户交互(即单击复选框不会导致它切换)?
You can try this (for first page):
pdfView.document?.page(at: 0)?.annotations.filter {
$0.widgetFieldType == PDFAnnotationWidgetSubtype.button
}.forEach {
$0.shouldDisplay = false
}
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.