Commit Diff
- Commit:
57347e732fd186b907726dd9a27fc2011390e145
- From:
- Sven M. Hallberg <pesco@khjk.org>
- Date:
- Message:
- remove misplaced TT_ObjStm case from kcontentstream Similar to kbyteostream, kcontentstream is a specialized version of kstream that replaces the generic switch on /Type for the data parser. This version uses either p_textstream (the parser for content streams) or p_objstm__m. I think the latter case must have been the result of some confusion. Object streams are something completely different than content streams and cannot appear in place of one. That leaves kcontentstream identical to kbyteostream except that it uses p_textstream (parsing the stream data directly) instead of p_bytes (leaving the stream data to be parsed in parse_pagenode)...
- Actions:
- Patch | Tree
--- pdf.c +++ pdf.c @@ -3860,8 +3860,6 @@ kcontentstream(HAllocator *mm__, const HParsedToken *x v = dictentry(dict, "Type"); if (v == NULL) // XXX -> custom type spec->parser = p_textstream; - else if ( (v->token_type == TT_BYTES) && bytes_eq(v->bytes, "ObjStm") ) - spec->parser = p_objstm__m(mm__, dict); else { fprintf(stdout, "kcontentstream: Not a text or object stream!\n"); return p_fail;