PDFKit Checkbox Widget Annotations do not respect their isReadOnly flag

Originator:alex
Number:rdar://FB7732349 Date Originated:2020-06-10
Status:Open Resolved:
Product: Product Version:
Classification: Reproducible:
 
PDFKit Checkbox Widget Annotations do not respect their isReadOnly flag

- Create a PDFDocument instance with a PDF file that includes checkbox annotations
- loop through the annotations on all pages, setting their isReadOnly flags to true
- Save the PDFDocument to another file
- Open the resulting PDF file in a PDFView (or the Files app)
- Notice that the checkboxes can still be toggled by the user (but other types, such as text and choice widgets are not editable)
- Open the same file with a PDF reader that does not use PDFView (eg: Google Chrome), and the checkboxes will not be editable)

Expected Behaviour:
Checkboxes that are set read-only should not be modifiable in a PDFView.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!