Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!samsung!munnari.oz.au!ditmela!agi.oz!shn From: shn@allgfx.agi.oz (Si-Hanh Nguyen) Newsgroups: comp.lang.postscript Subject: Re: how to send binary images to LaserWriter ? Message-ID: <1990May8.065455.23290@allgfx.agi.oz> Date: 8 May 90 06:54:55 GMT References: <7788@latcs1.oz.au> Reply-To: shn@allgfx.oz.au (Si-Hanh Nguyen) Organization: All Graphic Industries. Melbourne Australia. Lines: 40 In article <7788@latcs1.oz.au> nguyensh@latcs1.oz.au (Si-Hanh Nguyen) writes: > Does anybody know how to send images in binary (instead of hex) > ... > The printer is Apple LaserWriter, serial, 9600 bauds. > ... > Si-Hanh Nguyen I would like to add some more info. to my yesterday posting. I am trying to find a way to send 8-bit transparent data over the serial line, from a Sun 3/50 to an Apple LaserWriter. The reason is I would like to send image in binary instead of in hexadecimal. The problem is images in binary form contains control characters such as ^D, ^C, ^T which have special meanings to the LaserWriter. The "transparent" boolean is mentioned in "Inside PostScript, Frank Merritt Braswell, Systems of Merit & Peachpit Press 1989", page 13-5. If its value is TRUE then the serial chanel is opened in transparent mode. I test the folllowing code, it does not work, ^T is still intepreted as a query : % begin test serverdict begin 0 exitserver % have to exit server serverdict /transparent true put % to modify serverdict 300 400 translate 72 72 scale % 8 8 1 [8 0 0 8 0 0] { (^T0) } % image in binary image showpage %end test Has anybody tried that /transparent before ? And any help in 8-bit transparent data will be greatly appreciated. Si-Hanh Nguyen ---------------------------------------------------- nguyensh@lastcs1.oz OR shn@allgfx.agi.oz.au ----------------------------------------------------