PROBLEM IN VISOR PDF IN VERSION 29.1.38.

I have the following problems in my code when using the library's PDF viewer with the latest version, which is 29.1.38.

It takes a long time to compose or doesn't load anything, and only reloading the page composes.

I get errors and they don't let me advance. I can only advance by removing them from my view, but with page indexing, it's a stopper because it doesn't display the document.

Problem 1

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'getBoundingClientRect')

pdfviewer-base.js:7144 

Problem 2

Uncaught Error: Invalid page index

Error 1.png

I am sharing the document to the library as a blob to be able to read it and I have already validated that the blob exists before


Code.png


1 Reply

VS Venkada Subramanian Durai Syncfusion Team April 25, 2025 02:08 PM UTC

Hi Brayan Rodriguez,


Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'getBoundingClientRect')

pdfviewer-base.js:7144

This issue generally occurs when the PDFium resources are not loaded properly then trying to load the PDF documents. To avoid this, please load the PDF document inside the resourcesLoaded event, which is triggered after the PDFium resources are fully loaded into the PDF Viewer.

We have prepared a sample demonstrating how to load the PDF document in the resourcesLoaded event.

 

Check if this addresses the issue on your end, and reach out to us if you need any further assistance.

 

Sample with Load PDF document in resourcesLoaded event

Uncaught Error: Invalid page index

 

Kindly upgrade to the latest version, 29.1.39, and check whether the issue is resolved. If you still encounter any issues, please share the document in which the problem occurs. This will help us provide an appropriate solution.


Regards,

Venkada Subramanian Durai


Loader.
Up arrow icon