From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/14188 Path: news.gmane.org!not-for-mail From: bugbear Newsgroups: gmane.emacs.gnus.user Subject: Re: FlateDecode, ASCIIHexDecode, ASCII85Decode, and LZWDecode streams Date: Thu, 24 Jun 2010 08:53:50 +0100 Message-ID: References: <01ea2f28-1bcd-4149-b8c5-3f58dfeb9b81@j4g2000yqh.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1291956090 10422 80.91.229.12 (10 Dec 2010 04:41:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 10 Dec 2010 04:41:30 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Fri Dec 10 05:41:27 2010 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PQunO-0001Hj-5L for gegu-info-gnus-english@m.gmane.org; Fri, 10 Dec 2010 05:41:26 +0100 Original-Received: from localhost ([127.0.0.1]:56723 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQudU-0007U4-Bk for gegu-info-gnus-english@m.gmane.org; Thu, 09 Dec 2010 23:31:12 -0500 Original-Path: usenet.stanford.edu!news.glorb.com!news2.glorb.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.brightview.co.uk!news.brightview.co.uk.POSTED!not-for-mail Original-NNTP-Posting-Date: Thu, 24 Jun 2010 02:53:50 -0500 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 Original-Newsgroups: gnu.emacs.help,gnu.emacs.sources,gnu.emacs.gnus,comp.text.pdf In-Reply-To: <01ea2f28-1bcd-4149-b8c5-3f58dfeb9b81@j4g2000yqh.googlegroups.com> Original-Lines: 30 X-Usenet-Provider: http://www.giganews.com Original-X-Trace: sv3-htp5uArBUB493qY9GSUzzMkdVPbRPrTVNfXQBfVop2Xo+6gJwaUpDXlusTL+9aFKkEVjrf0soz5ulbF!tbgpPubktHHWhyFN6lwzehroQ5Q0cm69yI8Q+JsWz1Ggggg4X8fktp0/4lbV2AZnjhn4das1/2D8!JZjj2zQXIPjCaD5IvXBehfFohQ== X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 Original-Xref: usenet.stanford.edu gnu.emacs.help:179228 gnu.emacs.sources:13235 gnu.emacs.gnus:84486 comp.text.pdf:88113 X-Mailman-Approved-At: Thu, 09 Dec 2010 20:27:55 -0500 X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:14188 Archived-At: 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