PDFDocument unlock in iOS 14

Hello, in iOS I used to unlock a PDF with PDFDocument.unlock() than save to a file with write(to:) or view in a WKWebView taking data with dataRepresentation().

This worked quite fine from iOS 11.x to 13.x; now in iOS 14.0 both write and dataRepresentation results in a still locked PDF.

I searched around but found nothing in release notes related to this; is this a bug?

Replies

Bug (?) still present on iOS 14.0.1; I resolved by copying pages from protected PDFDocument to a new PDFDocument and using the new one