Reputation: 1145
We are writing an app and I have written the code to export our data in a PDF format.
The problem is the data is sensitive and needs to be protected, is there a way to password protect a PDF exported from an app using the apple libraries?
If not then any other suggestions?
Upvotes: 2
Views: 818
Reputation: 89509
CGPDFContextCreate takes a dictionary in which you can send a password as one of the attributes.
The details for CGPDFContxtCreate you'll find in Apple's reference documents at:
And the password setting information you'll find in Apple's docs here:
Upvotes: 1