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:
--
Wil
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
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
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
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
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
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
Hi Sathiyaseelan,
Thanks for the update. We'll wait.
--
Wil
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
OK. Thanks for the update.
--
Wil
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
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
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
Hi Sathiyaseelan,
OK, we'll wait.
Thank you for keeping us updated.
--
Wil
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
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
Thank you for your update. We are closing this ticket since reported issue is resolved.