Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.postscript > #1258

Re: Filtering problem in GhostScript?

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!nuzba.szn.dk!pnx.dk!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From Don Lancaster <don@tinaja.com>
Newsgroups comp.lang.postscript
Subject Re: Filtering problem in GhostScript?
Date Sun, 10 Feb 2013 18:39:24 -0700
Lines 28
Message-ID <anr0ehFdlj4U1@mid.individual.net> (permalink)
References <ano2b2Fntj2U1@mid.individual.net> <19b43ab2-22b3-4277-bfa8-f8d5223037a0@y4g2000yqa.googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Trace individual.net sjb7izaSLn5U1Bums+5w1gg//SXCHeYLWD/6da/SDlSXpWyyIRlp3YmD743nLL0D+y
Cancel-Lock sha1:ufKNR/41UkSsUrvz6x1n/hbHAT4=
User-Agent Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2
In-Reply-To <19b43ab2-22b3-4277-bfa8-f8d5223037a0@y4g2000yqa.googlegroups.com>
Xref csiph.com comp.lang.postscript:1258

Show key headers only | View raw


On 2/10/2013 2:10 AM, SaGS wrote:
>>     /makestring {dup length string dup    % new string of right size
>>            /NullEncode filter             % make a file out of string
>>            3 -1 roll
>>            {1 index exch write} forall
>>            pop
>>                } def


This works just fine.
Thanks for your help.


     /makestring {dup length string dup    % new string of right size
            /NullEncode filter             % make a file out of string
            3 -1 roll
            {1 index exch write} forall
            closefile
                } def

-- 
Many thanks,

Don Lancaster                          voice phone: (928)428-4073
Synergetics   3860 West First Street   Box 809 Thatcher, AZ 85552
rss: http://www.tinaja.com/whtnu.xml   email: don@tinaja.com

Please visit my GURU's LAIR web site at http://www.tinaja.com

Back to comp.lang.postscript | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Filtering problem in GhostScript? Don Lancaster <don@tinaja.com> - 2013-02-09 15:53 -0700
  Re: Filtering problem in GhostScript? Don Lancaster <don@tinaja.com> - 2013-02-09 16:22 -0700
  Re: Filtering problem in GhostScript? SaGS <sags5495@gmail.com> - 2013-02-10 01:10 -0800
    Re: Filtering problem in GhostScript? Don Lancaster <don@tinaja.com> - 2013-02-10 18:39 -0700

csiph-web