Loading pdf document twice fails (asks for password)

Hi,

I'm having an issue with SfPdfViewer component (weekly release : v18.4.0.44).
When I try to load a PDF document from a Stream, the document is displayed correctly.
If I try to load the exact same PDF, I'm getting an error (same behavior if I try to load a different PDF).

Firstly, the component asks for a password. then, if I press "Cancel" button, an error message is shown : see screenshots attached below
Sometimes, when I wait 1 or 2 minutes, the loading process will work again... but if I try to reload a PDF, same errors appears.







I've tried different ways to load and unload PDF documents (with bindings, with code-behind, by disposing streams, by creating memroystreams etc...) 
But I'm always having this issue.

Can you please help me ?

PS : I saw some related tickets in your support center but no clue to fix this issue.

3 Replies 1 reply marked as answer

MK Muralitharan Karikalan Syncfusion Team March 2, 2021 11:13 AM UTC

Hi  Lopes,  
  
Greetings from Syncfusion support,  
  
We were unable to reproduce the issue, “Error occurring while loading the document multiple times” and it is working as expected. Could you please try the below-provided sample and let us know whether we have missed out anything while replicating the issue.  
   
Please find the sample in the below link, which we have used to reproduce the issue in our end  
  
Kindly share the following details to analyze more on this issue and assist you with the better solution    
1.Simple sample/ modify the above sample to reproduce the issue.   
2.Replication video/procedure to reproduce the issue.  
3.PDF document   
  
Regards,  
Muralitharan K  


Marked as answer

LO LOPES March 2, 2021 01:55 PM UTC

Hello,

Thank you for your support.
Thanks to your project sample, we finaly found the issue that was not linked with SfPdfViewer but with our cache management.
My apologize for the inconvenience.

Regards


MK Muralitharan Karikalan Syncfusion Team March 3, 2021 06:28 AM UTC

Hi Lopes, 
 
Thanks for your update. Please feel free to contact us incase of any further assistance on this. 
 
Regards, 
Muralitharan K  


Loader.
Up arrow icon