Skip to content Skip to sidebar Skip to footer

React And PDF.js Changing Page Doesn't Work When I Render Whole Document

I'm trying to render PDF file in my web application in React using PDF.js library. There is so much different information out there, even in the official git, so I'm stuck with try

Solution 1:

I found where my problem was. I wasn't aware that div element with id viewerContainer has to have position: absolute so that scrollIntoView actually do something. The same goes for the div element mainContainer. Of course it make sense now but I was looking at the wrong places all the time thinking it has to do something with React or services like PDFLinkService.


Post a Comment for "React And PDF.js Changing Page Doesn't Work When I Render Whole Document"