Setting documentPath before load no longer lets you load the pdf

Hi,

See the following stackBlitz:
https://stackblitz.com/edit/qnss5r-ps8j91?file=index.html,index.js

In the past you could still set documentPath before the load.
This no longer works as then the pdf no longer loads.
Not sure if this is by intent, so figured to report it.
Currently the workaround is to not set the documentPath anymore and only use the load instead.


Steps to reproduce:

  • open the stackblitz above
  • it will show the initial pdf just fine
  • Now click on button Pdf1 to switch to another pdf.
  • The viewer will load forever without showing a pdf.
  • Now you can also click on Pdf2 and it will also load forever
  • Comment out the line that sets the documentPath for Pdf2.. and try again.. now it will load.

--
Wil


16 Replies

SK Sathiyaseelan Kannigaraj Syncfusion Team March 14, 2024 02:21 PM UTC

Hi Wil Van,


We were able to reproduce the reported issue  "When switch with different PDF's the Viewer get hanged” and suspect this to be a defect. We will analyze further on this and update you with more details on March 18th, 2024.


Regards,

Sathiyaseelan K




WV Wil van Antwerpen March 14, 2024 05:09 PM UTC

Hi Sathiyaseelan ,

Thank you!

One additional remark I have is that the workaround (not setting documentPath before load) does not fix the issue in my production code. That apparently only worked in the example above.

Hope this helps,

--
Wil




SK Sathiyaseelan Kannigaraj Syncfusion Team March 15, 2024 12:56 PM UTC

Hi Win Van,

Workaround means that the issue arises when attempting to load the PDF only using the Load() method without specifying the DocumentPath. Also, in production, is our project operating in standalone mode or server mode. If it is in server mode, please ensure that both the client and server sides are using the same latest version.


Regards,
Sathiyaseelan K



WV Wil van Antwerpen March 15, 2024 01:12 PM UTC

Hi,

We're using the component in server mode.

Where can I find the latest source for the server side component?

Also I take it that the DocumentPath still also has to contain the filename and not just the path?
Same for Load?

Thanks,

--
Wil



SK Sathiyaseelan Kannigaraj Syncfusion Team March 18, 2024 02:23 PM UTC

Hi Win Van,

You can't able to load the PDF document without the file name because it was the default behavior.

We have confirmed the issue 
"When switch with different PDF Viewer get hanged" and logged it as a defect. The fix for the issue will be available in our upcoming weekly NuGet release on April 10th , 2024. You can track the status of the issue through the following link.

Feedback link
: When Switch with different PDF's Viewer get hanged | Issue Feedback

Disclaimer:
 "Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization."


Regards,
Sathiyaseelan K



SK Sathiyaseelan Kannigaraj Syncfusion Team April 10, 2024 04:31 PM UTC

Hi Win Van,

Sorry for the inconvenience. We did not include the fix for the reported issue “
When switch with different PDF Viewer get hanged” in our recent weekly release due to the complexity of the issue the fix will be available in the upcoming weekly release on April 17, 2024.


Regards,
Sathiyaseelan K



WV Wil van Antwerpen April 10, 2024 04:44 PM UTC

Hi Sathiyaseelan,

Thanks for the update. We'll wait.

--
Wil



SK Sathiyaseelan Kannigaraj Syncfusion Team April 17, 2024 03:23 PM UTC

Hi wil Van,


Sorry for the inconvenience. We did not include the fix for the reported issue “When switch with different PDF Viewer get hanged” in our recent weekly release due to the complexity in finding precise root cause of the issue the fix will be available in the upcoming weekly release on April 24th, 2024.


Regards,
Sathiyaseelan K



WV Wil van Antwerpen April 17, 2024 03:43 PM UTC

OK. Thanks for the update.

--
Wil



SK Sathiyaseelan Kannigaraj Syncfusion Team April 22, 2024 12:20 PM UTC

Hi Wil van,

Could you please share your specific requirements and the scenario where you are activating the button across multiple instances. Additionally, could you explain why you are loading different documents with the same button click. This information will help us provide a more accurate solution.


Regards,k
Sathiyaseelan 



WV Wil van Antwerpen April 22, 2024 12:57 PM UTC

Hi Sathiyaseelan,


There's a drop down with a list of PDF’s and the ability to select a PDF from that list with a button.

That feature is broken in the latest version of the SyncFusion library.

Thanks,

--
Wil




SK Sathiyaseelan Kannigaraj Syncfusion Team April 24, 2024 03:24 PM UTC

Hi Wil Van,

Sorry for the inconvenience. We did not include the fix for the reported issue “
When switch with different PDF Viewer get hanged” in our recent weekly release due to the complexity in finding precise root cause of the issue the fix will be available in the upcoming weekly release on May 2nd, 2024.


Regards,
Sathiyaseelan K



WV Wil van Antwerpen April 24, 2024 04:31 PM UTC

Hi Sathiyaseelan,

OK, we'll wait.
Thank you for keeping us updated.

--
Wil



SK Sathiyaseelan Kannigaraj Syncfusion Team May 13, 2024 11:41 AM UTC

Hi Wil Van,

Sorry for inconvenience. We've adjusted a sample to dynamically load a PDF document through the drop-down menu. Please review this option to see if it meets your requirements.

Sample
https://stackblitz.com/edit/qnss5r-bormkd?file=index.html,index.js 

Regards,

Sathiyaseelan K



WV Wil van Antwerpen May 16, 2024 04:06 PM UTC

Hello Sathiyaseelan,

Sorry it took me a little bit before I had the time to get back to this.

We've upgraded to SyncFusion 25.2.4 and applied the suggested fix and that appears to work.

--
Wil



VV Visvesvar Venkatesan Syncfusion Team May 17, 2024 07:18 AM UTC

Thank you for your update. We are closing this ticket since reported issue is resolved.


Loader.
Up arrow icon