Skip to content

Form XObject with extreme BBox values causes blank white page in Chromium-based browsers #20872

@pengkunbin

Description

@pengkunbin

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

  1. Open a PDF containing a Form XObject with BBox [-8.988e76, -8.988e76, 8.988e76, 8.988e76] in a Chromium-based browser
  2. 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.)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions