Unload PDF

Hello,

I can't delete/rename/move a directory contening a pdf that is rendered in the pdf viewer.

I'm using the webapi with pdfviewercontroller.

Before deleting the folder, I try to unload the document in javascript by doing :
var pdfviewerObj = $("#viewer").data("ejPdfViewer");
pdfviewerObj.unload();
pdfviewerObj.destroy();

But It doesn't seems to work, the file is locked.

When I load the file, In Fiddler, I see the call to /api/PdfViewer/Load

but on the unload nothing seems to be done, is it normal? no call to a /api/PdfViewer/Unload ?

How can I really unlock the file from javascript?

thanks



1 Reply

SA Sabari Anand Senthamarai Kannan Syncfusion Team November 3, 2017 06:54 AM UTC

Hi Didier, 
  
Thank you for using Syncfusion products. 
  
We have already fixed the issue “File handle is not released when the unload() API of the PDF viewer is called”. The fix for this issue will be available in our 2017 Volume 4 release which is expected to available in the month of November 2017. 
  
Please let us know if you need any further assistance. 
  
Regards, 
Sabari Anand 


Loader.
Up arrow icon