1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 22:58:07 +02:00
pdf.js/test
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
..
chromium Enable the import/no-commonjs ESLint plugin rule 2023-10-14 12:49:17 +02:00
font Use arrow function with various Array methods 2025-03-02 15:19:04 +01:00
images [Editor] Avoid to have a selected stamp annotation on top of the secondary toolbar (bug 1911980) 2024-09-26 17:48:02 +02:00
integration [Editor] In edit mode, a non-editable stamp must be visible after the page is rendered 2025-03-06 15:37:27 +01:00
pdfs Let SMask/Mask images fallback to the parent image dimensions (issue 19611) 2025-03-10 12:37:44 +01:00
resources Update the page title/favicon of the test runner HTML files 2024-12-22 14:08:56 +01:00
stats Use arrow function with various Array methods 2025-03-02 15:19:04 +01:00
types Disable the loading of node types in the type tests 2025-02-21 14:10:35 +01:00
unit Move the calculateSHA384 and calculateSHA512 functions into their own file 2025-03-08 15:56:22 +01:00
.gitignore Ignore test snapshots directory. 2013-03-15 11:24:08 -07:00
add_test.mjs [ESM] Convert *most* of test-folder to use standard modules 2023-07-08 13:13:04 +02:00
annotation_layer_builder_overrides.css Use CSS nesting in the annotationLayer 2023-10-27 18:46:47 +02:00
downloadutils.mjs Merge pull request #19582 from dhdaines/consume_response 2025-03-02 15:48:26 +01:00
draw_layer_test.css [Editor] Add a way to extract the outlines of a union of rectangles 2023-11-20 18:45:19 +01:00
driver.js [api-minor] Re-factor how the useWorkerFetch option is used internally 2025-02-22 09:56:53 +01:00
reporter.js Move the reporter file to the test root folder 2024-12-22 14:08:56 +01:00
test.mjs Use arrow function with various Array methods 2025-03-02 15:19:04 +01:00
test_manifest.json Let SMask/Mask images fallback to the parent image dimensions (issue 19611) 2025-03-10 12:37:44 +01:00
test_slave.html [api-minor] Move to Fluent for the localization (bug 1858715) 2023-10-19 11:20:41 +02:00
testutils.mjs Remove the rimraf dependency in favor of the built-in Node.js fs.rmSync in the test folder 2024-04-14 16:41:59 +02:00
text_layer_test.css Use CSS nesting in the textLayer 2023-10-27 17:38:01 +02:00
webserver.mjs [api-major] Add openjpeg.wasm to pdf.js (bug 1935076) 2025-01-16 21:09:50 +01:00
xfa_layer_builder_overrides.css Remove unnecessary alpha-value from CSS rgb colors 2023-10-06 09:50:03 +02:00