1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 15:18:08 +02:00

Update the current stride before composing when decoding a text region

Fixes #17871.

We do something similar to:
https://source.chromium.org/chromium/chromium/src/+/main:third_party/pdfium/core/fxcodec/jbig2/JBig2_TrdProc.cpp;l=373-379;drc=24c6be6924df3ff585bb63f6aed4e2c81e791fb2
This commit is contained in:
Calixte Denizet 2024-04-03 11:18:41 +02:00
parent d8331e3100
commit 3f2f98336e
5 changed files with 31 additions and 3 deletions

View file

@ -637,3 +637,5 @@
!issue17730.pdf
!bug1883609.pdf
!issue17808.pdf
!issue17871_bottom_right.pdf
!issue17871_top_right.pdf

Binary file not shown.

Binary file not shown.

View file

@ -9801,5 +9801,19 @@
"md5": "dd66194bdaa0f62bc96c760384f2e098",
"rounds": 1,
"type": "eq"
},
{
"id": "issue17871_bottom_right",
"file": "pdfs/issue17871_bottom_right.pdf",
"md5": "664807166c5279224abfbf259f701958",
"rounds": 1,
"type": "eq"
},
{
"id": "issue17871_top_right",
"file": "pdfs/issue17871_top_right.pdf",
"md5": "07d95eabf18aee0cf38f09eb7b1390ec",
"rounds": 1,
"type": "eq"
}
]