[Bug]: Unexpected behavior with Range requests #19679
-
Attach (recommended) or Link to PDF file
Web browser and its versionFirefox 136.0.1 (64 bit) Operating system and its versionWindows 11 64bit professional edition PDF.js version5.0.375 Is the bug present in the latest PDF.js version?Yes Is a browser extensionNo Steps to reproduce the problemSteps to Reproduce the Problem
What is the expected behavior?
What went wrong?Since the PDF is linearized (Fast Web View enabled), only the necessary metadata should be fetched first to allow incremental loading. Link to a viewerAdditional contextNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Lines 203 to 212 in e37236e |
Beta Was this translation helpful? Give feedback.
The extra range-requests are caused by the "bad" internal structure of your PDF document, since all /Page-objects are placed directly at the top-level of the /Pages-tree and trying to improve this one (bad case) case would thus break many other documents.