VikingOSX wrote:
When you receive a password challenge for an encrypted PDF, try the empty string for the password and see if that behaves as the PDFKit framework's PDFDocument class suggests in the following discussion:
Here is a sample document that reproduces the problem: https://www.ssa.gov/forms/ssa-44.pdf. I tried another document from the same site and it caused the same problem.
However, for these two documents, the problem is fixed in Sonoma. There could be other PDFs out there that still exhibit the same problem. Can't test 'em all.
I tried it on a few older versions too. VMs are really nice for this. You can go back in time and watch the bug being slowly introduced.
10.13 High Sierra - No real problem. Can't save to the original PDF so it creates a copy with the fill-in data.
10.14 Mojave - Breakage starts. Can still save a copy with the fill-in data but the fill-in field appears empty until you click it. Seems like it still exports and prints properly.
10.15 Catalina - Same as Mojave.
11 Big Sur - Works perfectly!
12 Monterey - Broken
13 Ventura - Broken
14 Sonoma - Working