Our app is using SfPdfViewer to display secure documents. The documents are stored locally, in encrypted files. When it is time to display a document, the app reads the file and decrypts into a memory stream that we feed to pdf viewer. It works as expected. However, I noticed that when a document is loaded, it creates a copy in the temp directory. This copy is never cleaned up, nor is it encrypted. This poses a severe security risk for the content our app displays.
Is there anyway to disable the temp file creation?
If not, is there a way to encrypt the temporary files?
If not, is there a way for it to be opened with the "delete on close" flag set?
Thanks,
John