🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.postscript.programming
Article #919

Reusable stream with ASCII85Decode and DCTDecode

#919
From: Tony Lima
Date: Wed, 30 Jul 2003 18:31
20 lines
1756 bytes
Hello, this is my first post here. I am new to PS programming and need some help with this filter. Namely, to figure out how to use both the ASCII85Decode and DCTDecode filters with the ReusableStreamDecode filter. Here's part of my script:

%!PS-Adobe-3.0
%%Creator: TJL
%%Title: sauce_25
%%CreationDate: ()
%%LanguageLevel: 3

/TemplateData currentfile
<< /Filter [ /ASCII85Decode /DCTDecode ]
   /DecodeParms [ null << >> ] >> /ReusableStreamDecode filter
s4IA0!" <...lots of ASCII85 JPEG data...> ~>
%%EOF
def

Just sending this to a PS L3 printer generates a Postscript Error. Removing the /DecodeParms because these filters do not require params makes no difference. If I remove the /DCTDecode filter and params, it is received ok, but "image" fails to image it properly since it is still compressed. My goal is to reuse this stream on multiple pages without having to decompress it each time.

Any help would be appreciated...thx

-Tony Lima
Technical Details
Message-ID: <1dea21da.-1@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!62.132.236.44.MISMATCH!ecngs!feeder.ecngs.de!npeer.de.kpn-eurorings.net!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10c61a,918167dada2079e,start
X-Google-Attributes: gid10c61a,public
X-Google-ArrivalTime: 2003-07-30 11:38:07 PST
From: "Tony Lima" <tlima@astromed.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!62.132.236.44.MISMATCH!ecngs!feeder.ecngs.de!npeer.de.kpn-eurorings.net!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.postscript.programming
Subject: Reusable stream with ASCII85Decode and DCTDecode
Message-ID: <1dea21da.-1@WebX.la2eafNXanI>
Date: Wed, 30 Jul 2003 11:31:48 -0700
Lines: 28
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit