You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Error message instead of pdf.
Error in console: **Error while reading the pages ! TypeError: Cannot read property 'getPage' of null **
Env
Package version: 2.2.3
OS: Mac Big Sur 11.4
All browsers.
It appears that whenever a re-render runs because of the document prop constantly being a new reference, something breaks inside. So if you memoize the object that is being passed to the document prop, it works.
HI I try to implement pdf-viewer-reactjs to Load PDF from base64 string. But, I am getting the below error,
Error while reading the pages !
TypeError: Cannot set properties of null (setting 'height').
This is my code:
<PDFViewer
document={{ base64: source.base64 }}
/>
Please help me to resolve.
Please refer any documentation to explore pdf-viewer-reactjs.
Describe the bug
Error message instead of pdf.
Error in console: **Error while reading the pages ! TypeError: Cannot read property 'getPage' of null **
Env
Package version: 2.2.3
OS: Mac Big Sur 11.4
All browsers.
Screenshots
PDF File
Any pdf file. For instance: http://www.africau.edu/images/default/sample.pdf
Details (please complete the following information):
**package.json: **
** code **
// import routes from '@config/api-routes.json';
// import { Router as Routing } from 'symfony-ts-router';
// const router = new Routing();
// router.setRoutingData(routes);
//
// export default function Router(): Routing {
// return router;
// }
The text was updated successfully, but these errors were encountered: