简体   繁体   中英

PDFKit Watermark Annotation Issue

I'm playing around with Apple's PDFKit and I'm using their sample app for adding a watermark to a pdf document.

The code works as expected apart from one pdf that I have. This particular pdf will not allow the annotation of the watermark to occur.

I have edited the pdf so that it no longer has an owner but still no annotation. The only thing I can think of is that the version of this pdf is 1.7 all other versions of pdf that I tried were previous to 1.7.

Has anyone else had this problem when working with the latest PDFKit framework?

Check the properties of PDF if changes are permitted and document is not locked

You can check the properties by

Print(document.islocked), Print(document.ischangesallowed) Etc

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