On xamarin forms app one time the document show and other time doesn't show

I use sfpdfviewer to display pdf file the viewer work one time and other time doesn't work and show the pdfviewer background 


5 Replies

MA ManojKumar Arumugasamy Syncfusion Team September 22, 2023 05:05 AM UTC

Hi Adel romany, 

 

Greetings from Syncfusion support, 

 

We were unable to reproduce the issue, “Unable to open a PDF document more than one time” and it is working as expected, we have tried to load documents multiple times. Could you please try the attached sample, which we have used to reproduce the issue on our end and let us know whether we have missed out anything while replicating the issue. 

 

Please share the following details to analyze this issue further and assist you with a better solution.

1.Simple sample/ modify the above sample to reproduce the issue.  

2.Replication video/procedure to reproduce the issue. 

3.PDF document that might cause issues.

 

Regards, 

Manoj Kumar.


Attachment: PdfViewerSample_e3fd4d8c.zip


AR Adel romany replied to ManojKumar Arumugasamy September 22, 2023 05:57 AM UTC

I am sorry for the confusion. But the problem is I have a pdfviewer in a page and adouble_tapped event on it I need when tapped the inputfilestream change in other words the file showed changed when I test the app the first file show correctly but when double tap to change the file one time file show and in other time not show but blank page shown here are the snippet 

Switch 

Case "book 1"

Pdfviewer. Inputfilestream = stream of file 1 ;

How to solve this issue

Case "book 2"

Pdfviewer. Inputfilestream = stream of file 2 ;




MA ManojKumar Arumugasamy Syncfusion Team September 25, 2023 06:45 AM UTC

Hi, Adel romany,

 

We were still unable to reproduce the issue, “Unable to open a PDF document more than one time,” with the loading of PDF on the double-tap event, and it is working as expected. Could you please try the attached sample, which we have modified to reproduce the issue on our end, and let us know whether we have missed out anything while replicating the issue? 

   

Please share the following details to analyze this issue further and assist you with a better solution.

1. Simple sample/ modify the above sample to reproduce the issue.

2. Replication video/procedure to reproduce the issue. 

3.PDF document


Attachment: DoubleTapLoadSample_361adf2a.zip


AR Adel romany September 26, 2023 07:15 AM UTC

First of all, I would like to thank you for your effort and interest,

after trying the attached application, it became clear that the problem was with the property called enablezoompersist which I was set to true but when change it to false the doubletap event work fine and the file change correctly 

Finally, I can only thank you for helping me and wish you a happy life. 



MA ManojKumar Arumugasamy Syncfusion Team September 27, 2023 04:34 AM UTC

Thank you for your reply. I'm glad to hear that the issue you were experiencing has been resolved. We're marking this ticket as solved.

If you have any other questions or concerns, please don't hesitate to contact us.

Thank you.


Loader.
Up arrow icon