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
I followed instructions in documentation written for my React-PDF version
I have checked if this bug is not already reported
I have checked if an issue is not listed in Known issues
If I have a problem with PDF rendering, I checked if my PDF renders properly in PDF.js demo
Description
Following code gives nan for page.width
Steps to reproduce
Following code gives nan for page.width const page = await document.getPage(1); setPageWidth(page.width); setPageHeight(page.height); console.log("initial setting of the page heights and widths") console.log("pageheight", pageHeight) console.log("pagewidth", pageWidth)
Expected behavior
some number
Actual behavior
initial setting of the page heights and widths
pdfviewer2.tsx:76 pageheight 1418.0625
pdfviewer2.tsx:77 pagewidth NaN
Additional information
No response
Environment
Browser (if applicable):
React-PDF version:
React version:
Bundler name and version (if applicable):
The text was updated successfully, but these errors were encountered:
Before you start - checklist
Description
Following code gives nan for page.width
Steps to reproduce
Following code gives nan for page.width
const page = await document.getPage(1); setPageWidth(page.width); setPageHeight(page.height); console.log("initial setting of the page heights and widths") console.log("pageheight", pageHeight) console.log("pagewidth", pageWidth)
Expected behavior
some number
Actual behavior
initial setting of the page heights and widths
pdfviewer2.tsx:76 pageheight 1418.0625
pdfviewer2.tsx:77 pagewidth NaN
Additional information
No response
Environment
The text was updated successfully, but these errors were encountered: