help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FlateDecode, ASCIIHexDecode, ASCII85Decode, and LZWDecode streams


From: bugbear
Subject: Re: FlateDecode, ASCIIHexDecode, ASCII85Decode, and LZWDecode streams
Date: Wed, 08 Dec 2010 15:15:40 -0000
User-agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-GB; rv:1.8.1.23) Gecko/20090908 Fedora/1.1.18-1.fc10 SeaMonkey/1.1.18

Fren Zeee wrote:
Dear All,

I have been playing for a while with files that have small bits of
FlateDecode, ASCIIHexDecode, ASCII85Decode, and LZWDecode streams. My
familiarity with these compression methods is limited to using the
unix uncompress, gunzip and other compiled commands. At one time I was
able to conveniently decode base64 fragments in emacs using the
following commands.

base64-decode-region
  Command: Base64-decode the region between BEG and END.

hexlify-buffer and dehexlify-buffer

Is there a solution within emacs or someone has a method to use
libraries or to translate code from python/ruby etc. I could not find
any (apropos decode) with reference to the above compression methods.

In ruby, FlateDecode and ASCII85Decode can be decompressed with
existing ruby module which are zlib and Ascii85.

The PostScript spec either directly, or via authoritative references,
documents the compression formats.

Further, since PostScript (doh!) supports these formats,
you can simply use the Filter implementations
in PostScript (e.g. GhostScript) to decompress data.

  BugBear


reply via email to

[Prev in Thread] Current Thread [Next in Thread]