Hi Nathan,
Thank you for sharing the use case and the reasoning behind your current configuration — your feedback is appreciated. At this point, there are no changes planned regarding support for encapsulation.
If that changes in the future, or if the following item gets scheduled: https://feedback.telerik.com/blazor/1684062-url-parameter-to-allow-loading-cloud-hosted-pdfs, you’ll be notified.
Regards,
Hristian Stefanov
Progress Telerik
Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.
Hi Hristian,
Thanks for your response. The most important feature for using an outside component (or creating my own pdf.js wrapper component) is the fact that the Telerik Blazor PDF viewer component does not support loading pdfs via their url (cloud hosted pdfs) purely on the client side. I need to be able to serve a large dynamic library of pdfs to my client without consuming server memory. Using PDF.js to serve PDFs directly to the client solves that problem. Right now, I'm avoiding the PDF.js version conflict issue by just using an iframe with the PDF url and allowing the clients' browser's native ability to render PDFs in the browser (mostly using PDF.js) to handle it. This works well, but doesn't give the control that I would like over the pdf viewer.
I had originally requested the ability to render cloud hosted PDFs in this feature request here: https://feedback.telerik.com/blazor/1684062-url-parameter-to-allow-loading-cloud-hosted-pdfs
I didn't realize I could build Telerik UI from source. That might be a viable option. Thanks
Hi Nathan,
PDF.js works in such a way, that it does not support encapsulation. Two separate third-party products cannot use two different PDF.js versions.
As a result, you have a few options:
On a side note, which is the most important feature of the other component that references pdf.js, which makes you prefer it over ours?
Regards,
Hristian Stefanov
Progress Telerik
Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.