I am creating a PDF using UIGraphicsBeginPDFContextToData( pdfData, self.rect, dictionary);
I set dictionary=[[NSDictionary alloc] initWithObjectsAndKeys:masterPassword,kCGPDFContextOwnerPassword,password, kCGPDFContextUserPassword, kCFBooleanFalse, kCGPDFContextAllowsCopying, kCFBooleanTrue, kCGPDFContextAllowsPrinting, nil];
When i give kCGPDFContextUserPassword with more than five characters, the kCGPDFContextOwnerPassword is not working. Please someone help me with this issue.
You can find a pdf example here.
This pdf contains: kCGPDFContextOwnerPassword as "admin", kCGPDFContextUserPassword as "qwerty".