We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Which event occurs if PdfViewer failed to load a documentPath?

Thread ID:

Created:

Updated:

Platform:

Replies:

130575 May 18,2017 12:00 PM May 22,2017 08:13 AM JavaScript 3
loading
Tags: ejPdfViewer
Nga
Asked On May 18, 2017 12:00 PM

Hi,

When I set documentPath with a Pdf url which no longer exists and the serviceUrl throws error, the PDF viewer shows loading icon forever. How to detect if PdfViewer failed to load a documentPath? I would like to show an information message to end user.

Thanks,
Nga

Akshaya Arivoli [Syncfusion]
Replied On May 19, 2017 05:21 AM

Hi Nga, 
 
Thank you for contacting Syncfusion Support. 
 
We have internally handled the error on loading the PDF document which no longer exists in the provided document path from the latest Essential Studio (15.2.0.40). The “documentUnload” event will be triggered because we have internally called unload method if the loaded PDF document does not exist in the document path. So, we request you to upgrade to our latest Essential Studio (15.2.0.40) to use the above API and you can download the same from the below link. 
 
 
Also, we have provided the sample for your reference in the following location. 
 
 
Please let me know if you have any concerns.  
 
Regards, 
Akshaya 


Nga
Replied On May 20, 2017 02:24 AM

Hi,

I am using npm syncfusion-javascript 15.2.41. It shows error 500 (Internal Server error) on the api/PdfViewer/Load but the documentUnload event did not work.

Regards,
Nga

Sabari Anand Senthamarai Kannan [Syncfusion]
Replied On May 22, 2017 08:13 AM

Hi Nga, 
  
Thank you for your update. 
  
We regret to let you know that we are unable to reproduce the issue "documentUnload event is not triggered" with the script files in npm syncfusion-javascript 15.2.40. Please find the sample in which we have tried to reproduce the issue for your reference. 
  
  
Can you please provide us the replication procedure or modify the above sample for the reproducing the issue? These details will be helpful for us to analyze further and assist you better. 
  
Please let us know if you need any further assistance. 
  
Regards, 
Sabari Anand 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;