|Subject:||BUGs in PDF-API2/Filter.pm|
|Date:||Wed, 2 Mar 2011 20:54:35 -0500|
|From:||John McGowan <email@example.com>|
Filter.pm is pretty bad. The Run Length Encoder does no run length encoding (wrong back reference). The Run Length Encoder does no run length decoding (misinterprets the counter byte). The Base85 encoder outputs the base85 digits in the wrong order. The Base85 decoder has problems cleaning up the end for padded data. The LZW decompressor is set for NO early-change (the default in many ADOBE files is WITH early-change). There is an infilt2 filter (early-change) not mentioned in the doc but it expects a 13 bit reset when the dictionary is full instead of a 12 bit reset. It can handle a very short early-change file but quite quickly gets out of sync. Etc. In short ... Filter.pm is pretty bad. I had sent a report and my working version before but apparently it was not noticed.