简体   繁体   中英

PDFKit / PDFView Disable Interaction with Form Annotation

对于包含注释,其中widgetFieldTypePDFAnnotationWidgetSubtype.textPDFAnnotationWidgetSubtype.buttonPDFDocument ,是否可以禁用这些注释的用户交互(即单击复选框不会导致它切换)?

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM