We need to open AES256 Encrypted pdf in pdfViewer and all of that (decryption part) needs to be done in memory only and after updating(adding annotation etc) the PDF we have to store the updated PDF locally in encrypted form.
Document_openStream() opens filestream, but for that we first have to create a decrypted file and write it on disk.
Document_openMem() opens pdf in readonly mode only.
Can you suggest something here?
Is there any way here so that we can pass AES encrypted stream to viewer with key?
Is there any way we can create writable stream directly from decrypted NSData(dataWithContentsOfFile)?