Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* FlateDecode, ASCIIHexDecode, ASCII85Decode, and LZWDecode streams
@ 2010-06-24  5:39 Fren Zeee
  0 siblings, 0 replies; 2+ messages in thread
From: Fren Zeee @ 2010-06-24  5:39 UTC (permalink / raw)
  To: info-gnus-english; +Cc: Fren Zeee

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.

Thank You.

P.S. I am including links that may help anyone interested.

http://www.frugalcorner.com/lzw/lzwfree.html
http://groups.google.com/group/comp.compression/browse_thread/thread/2d88635982a60b54/15fc41f6e3556d9?q=Decompressing+LZW+compression+from+PDF#015fc41f6e3556d9

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: FlateDecode, ASCIIHexDecode, ASCII85Decode, and LZWDecode streams
       [not found] <01ea2f28-1bcd-4149-b8c5-3f58dfeb9b81@j4g2000yqh.googlegroups.com>
@ 2010-06-24  7:53 ` bugbear
  0 siblings, 0 replies; 2+ messages in thread
From: bugbear @ 2010-06-24  7:53 UTC (permalink / raw)
  To: info-gnus-english

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-06-24  7:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-24  5:39 FlateDecode, ASCIIHexDecode, ASCII85Decode, and LZWDecode streams Fren Zeee
     [not found] <01ea2f28-1bcd-4149-b8c5-3f58dfeb9b81@j4g2000yqh.googlegroups.com>
2010-06-24  7:53 ` bugbear

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).