+ # Yeah, we can have references to an object containing a literal.
+ # Oops, broken reference. use FlateDecode since it's the most popular.
if f in LITERALS_FLATE_DECODE:
# will get errors if the document is encrypted.
data = asciihexdecode(data)
elif f in LITERALS_RUNLENGTH_DECODE:
+ elif f in LITERALS_DCT_DECODE:
+ # /DCTDecode is essentially a jpeg image. There's nothing to "decode" per se, simply
+ # use the data as jpeg data.
elif f in LITERALS_CCITTFAX_DECODE:
#data = ccittfaxdecode(data)
raise PDFNotImplementedError('Unsupported filter: %r' % f)