1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 22:58:07 +02:00
pdf.js/src
Jonas Jenwald 10a99ea0a7 Let SMask/Mask images fallback to the parent image dimensions (issue 19611)
One of the images have a corrupt SMask, where the /Height-entry is bogus; see the excerpt below (via https://brendandahl.github.io/pdf.js.utils/browser/).
```
SMask (stream) [id: 17, gen: 0]

    ColorSpace = /DeviceGray
    Height = /Length
    Subtype = /Image
    Filter = /FlateDecode
    Type = /XObject
    Width = 157
    Matte (array)
    BitsPerComponent = 8
    Length = 3893
    <view contents> download
```

Hence we enable SMask/Mask images to fallback to the parent image dimensions, and also add more validation of the width/height to get a better error message when that data is wrong.
2025-03-10 12:37:44 +01:00
..
core Let SMask/Mask images fallback to the parent image dimensions (issue 19611) 2025-03-10 12:37:44 +01:00
display Merge pull request #19617 from Snuffleupagus/MathClamp 2025-03-06 15:48:14 +01:00
images Vectorize the logo. 2012-10-29 14:08:52 -04:00
scripting_api [JS] Skip throwing actions 2025-02-17 21:58:20 +01:00
shared Introduce a helper function for clamping a value to a range 2025-03-06 14:05:26 +01:00
interfaces.js Ensure that the response-origin of range requests match the full request (issue 12744) 2024-11-24 10:08:29 +01:00
license_header.js Update the year in the license_header files 2024-07-02 14:34:59 +02:00
license_header_libre.js Update the year in the license_header files 2024-07-02 14:34:59 +02:00
pdf.image_decoders.js [api-minor] Remove the image-related error message prefixes 2024-04-20 12:51:45 +02:00
pdf.js Introduce a helper function for clamping a value to a range 2025-03-06 14:05:26 +01:00
pdf.sandbox.external.js Avoid to call a function in the js sandbox when it has been destroyed 2024-06-18 22:30:21 +02:00
pdf.sandbox.js Enable the ESLint no-console rule in parts of the code-base 2024-11-14 12:41:39 +01:00
pdf.scripting.js Output pdf.scripting.js as a JavaScript module (PR 17055 follow-up) 2023-10-07 15:27:26 +02:00
pdf.worker.js Allow, optionally, using worker-modules during local development 2023-01-31 12:09:44 +01:00