Files
Jonas Jenwald a30646be03 [api-major] Remove the maxImageSize option from getDocument
This option is removed now, since:
 - It was originally added for the Boot to Gecko (B2G) project, later renamed to Firefox OS, which was discontinued in 2016.
   This option was needed then, since B2G was intended to also run on low-end hardware.

 - Outside of one example, which is a left-over from the B2G viewer, this option has been unused in the PDF.js project itself for a decade.

 - This option has never been covered by *any* tests.

 - The result of setting this option to a non-default value is that some images will not renderer, with only a console warning, which could easily make PDF.js appear "broken" to an end-user.

 - Image decoding performance, in particular for large and/or complex images, has been significantly improved compared to a decade ago.

 - If such an option was requested today, it seems unlikely that we'd actually consider adding it.
2026-11-07 17:02:45 +01:00
..