Merge pull request #18974 from Snuffleupagus/issue-18973
Allow `StreamsSequenceStream` to skip sub-streams that are not actual Streams (issue 18973)
This commit is contained in:
commit
3a85479c67
@ -132,6 +132,8 @@ class DecodeStream extends BaseStream {
|
|||||||
|
|
||||||
class StreamsSequenceStream extends DecodeStream {
|
class StreamsSequenceStream extends DecodeStream {
|
||||||
constructor(streams, onError = null) {
|
constructor(streams, onError = null) {
|
||||||
|
streams = streams.filter(s => s instanceof BaseStream);
|
||||||
|
|
||||||
let maybeLength = 0;
|
let maybeLength = 0;
|
||||||
for (const stream of streams) {
|
for (const stream of streams) {
|
||||||
maybeLength +=
|
maybeLength +=
|
||||||
|
|||||||
1
test/pdfs/issue18973.pdf.link
Normal file
1
test/pdfs/issue18973.pdf.link
Normal file
@ -0,0 +1 @@
|
|||||||
|
https://github.com/user-attachments/files/17550758/doc1520828609.pdf
|
||||||
@ -2057,6 +2057,15 @@
|
|||||||
"firstPage": 3,
|
"firstPage": 3,
|
||||||
"type": "eq"
|
"type": "eq"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"id": "issue18973",
|
||||||
|
"file": "pdfs/issue18973.pdf",
|
||||||
|
"md5": "b9bbd312269862bf39bb2a31023a9d02",
|
||||||
|
"link": true,
|
||||||
|
"rounds": 1,
|
||||||
|
"firstPage": 45,
|
||||||
|
"type": "eq"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"id": "issue9262",
|
"id": "issue9262",
|
||||||
"file": "pdfs/issue9262_reduced.pdf",
|
"file": "pdfs/issue9262_reduced.pdf",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user