commit 5010a4dc4459f9d3cc94dcf635285b317085b578 from: Sven M. Hallberg date: Tue Aug 09 19:00:20 2022 UTC support indirect references in streams' /Type entry I can't find the spec saying this has to be a direct object, so we have to call resolve() on the value. commit - 982ac17f53024b2288b07cd95e5c4c451d04ab19 commit + 5010a4dc4459f9d3cc94dcf635285b317085b578 blob - 0dede9503e05c3b056c5b4dcd5578159db574aa1 blob + 4c8803047ec8b12e70a961b92abc801055c852e8 --- pdf.c +++ pdf.c @@ -4802,6 +4802,7 @@ p_stream_data__m(HAllocator *mm__, const Dict *dict, s const HParsedToken *v; v = dictentry(dict, "Type"); + v = resolve(aux, v); if (v == NULL || v->token_type != TT_BYTES) // XXX -> custom type return NULL; /* no /Type field */