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


Groups > comp.lang.postscript > #1249

Filtering problem in GhostScript?

From Don Lancaster <don@tinaja.com>
Newsgroups comp.lang.postscript
Subject Filtering problem in GhostScript?
Date 2013-02-09 15:53 -0700
Message-ID <ano2b2Fntj2U1@mid.individual.net> (permalink)

Show all headers | View raw


I have long used this super elegant array to string converter in 
PostScript...

    /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

Yet it seems to fail in GhostScript, writing all nulls instead.

Does anyone see the problem?


-- 
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 — Next 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