Kendo React PDFViewer not loading data

0 Answers 148 Views
PDF Viewer
John
Top achievements
Rank 1
John asked on 01 May 2024, 11:45 PM | edited on 01 May 2024, 11:59 PM

I am trying to run the example code from here https://www.telerik.com/kendo-react-ui/components/pdfviewer/ with the same exact file but the PDFViewer is just not loading any document. It component appears in the page, there's no error in the console, but no matter what I do I can't see any data loaded (also checked the onLoad event - it's not triggered). I've also tried to supply an url instead of base64 data and the result is the same 

Wissam
Telerik team
commented on 03 May 2024, 12:20 PM

Hello, John,

I tested the component with the data in the provided link on VSCode and with CodeSandBox, but I could not reproduce the faced issue. Therefore, can you please provide me a runnable example where this issue is reproduced so that I can test it further?

Looking forward for your reply.

Regards,
Wissam
Progress Telerik
Dide
Top achievements
Rank 2
Iron
Iron
commented on 03 Jul 2024, 01:23 PM

I'm having the same issue. We added the PDF viewer a while back (maybe a year or so) and it was working fine, but right now I see the same as above screenshot. I tried it with a local file, and it doesn't load it either. I'm using React version 17 and Next 12. The version of the kendo-react-pdf-viewer is 8.0.0

Wissam
Telerik team
commented on 04 Jul 2024, 01:44 PM

Hi, Dide,

Can you please provide me a runnable project where the issue is reproduced? If not, sending at least the `package.json` may help.

This is because there might be specifics related to this issue like using a specific KendoReact version, an issue from the `kendo-themes` package, or something caused by the nextjs setup in `next.config.js`, and the list goes on. I will be really glad to help in resolving this issue once you get back to me with more information.

I can also suggest checking the following specific related to using the PDFViewer in Nextjs:

Regards,
Wissam
Progress Telerik

No answers yet. Maybe you can help?

Tags
PDF Viewer
Asked by
John
Top achievements
Rank 1
Share this question
or