Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!bbn!rochester!pt.cs.cmu.edu!PROOF.ERGO.CS.CMU.EDU!tsf From: tsf@PROOF.ERGO.CS.CMU.EDU (Timothy Freeman) Newsgroups: comp.lang.postscript Subject: Re: Compact data representations? Message-ID: <4876@pt.cs.cmu.edu> Date: 2 May 89 05:56:31 GMT References: <1708@husc6.harvard.edu> Distribution: usa Organization: Carnegie-Mellon University, CS/RI Lines: 23 In article <1708@husc6.harvard.edu> nowlin@gramian.harvard.edu (Bill Nowlin) writes: >I would like to draw many, many lines in PostScript. ... > >However, the resulting PostScript file is huge. ... > >Does PostScript allow the sending and unpacking of packed data arrays? Well, you could use the same trick that the postscript text-printing programs use. If a postscript program reads from its standard input, the text comes from the file that's being printed. Your files could look like this: /interpreter {...} def interpreter ... encoded bytes ... Where the {...} is code that reads the encoded bytes from the standard input and draws the appropriate lines. For an example, see the Postscript cookbook or any of the Postscript text-printing programs. -- Tim Freeman Arpanet: tsf@cs.cmu.edu Uucp: ...!seismo.css.gov!cs.cmu.edu!tsf --