[Bug]: always got one page for some pdf in wechat #18377
Unanswered
zhangfanwen2024
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Sorry, but that's not a supported browser; please see https://github.com/mozilla/pdf.js/wiki/Frequently-Asked-Questions#faq-support |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Attach (recommended) or Link to PDF file
https://hzd-charging-file-oss.oss-cn-zhangjiakou.aliyuncs.com/tenant-1_-1/productManual/6313420240703163009.pdf?Expires=1721822799&OSSAccessKeyId=LTAI5tFeEwkr8HtGGBFeNCQQ&Signature=kIVOO%2BU6e04O%2BJrrOlYLBAuYM4M%3D
Web browser and its version
wechat 8.0.49
Operating system and its version
android
PDF.js version
4.4.168
Is the bug present in the latest PDF.js version?
Yes
Is a browser extension
No
Steps to reproduce the problem
const pdf = await getDocument(url).promise;
totalPages = pdf.numPages;
console.log(pdf)
console.log('totalPages:', totalPages)
What is the expected behavior?
totalPages is correct
What went wrong?
totalPages is always 1
Link to a viewer
No response
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions