PDF Viewer temp files are not cleaned up and are not secure

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

1 Reply

JP Jhansi Priya Ramesh Syncfusion Team March 17, 2020 07:20 AM UTC

Hi John, 
 
Greetings from Syncfusion support.   
  
We confirm that the issue “PDF files generated in the application's TEMP folder are not cleared properly” is a defect. The fix for this issue has been included in the latest version of our control. Please find the latest NuGet packages from below link,   
  
  
In the latest NuGet, the copy of the PDF file in the TEMP folder will be cleared while closing the application. Kindly try the above suggestion and please let us know if any further assistance required.   
 
Regards, 
Jhansi Priya Ramesh 


Loader.
Up arrow icon