Description
Some PDFs contain Form XObjects with astronomically large BBox values (e.g. ±8.988e76 ≈ Number.MAX_VALUE / 20), used to express "no clipping / cover the entire page". When pdf.js renders such a PDF in a Chromium-based browser, the entire page is blank white.
Steps to reproduce
- Open a PDF containing a Form XObject with BBox
[-8.988e76, -8.988e76, 8.988e76, 8.988e76] in a Chromium-based browser
- The page renders as entirely blank white
This does not affect Firefox (Gecko uses double precision for path coordinates).
Expected behavior
The page renders normally. An extreme BBox intended as "no clipping" should be treated as covering the full page.
Environment
- pdf.js version: 5.5.207
- Browser: Chromium-based (Chrome, Edge, Electron, etc.)