Path: utzoo!mnetor!uunet!husc6!cmcl2!beta!hc!ames!claris!apple!lsr From: lsr@Apple.COM (Larry Rosenstein) Newsgroups: comp.sys.mac.programmer Subject: Re: Sending PostScript through the printer driver Message-ID: <7843@apple.Apple.Com> Date: 6 Apr 88 02:14:49 GMT References: <1344@ut-emx.UUCP> Reply-To: lsr@apple.UUCP (Larry Rosenstein) Organization: Advanced Technology Group, Apple Computer Lines: 24 In article <1344@ut-emx.UUCP> rick@ut-emx.UUCP (Rick Watson) writes: >The following code fragment for sending a PostScript job to a laser printer >works under LaserWriter v3.2, but not 5.0. Can anyone tell me why not? This is covered in Tech Note #192. In LaserWriter 5.0 the low level printer driver calls are converted into corresponding high-level calls. One of the results is exactly the problem you described. The solution given in the Tech Note is as follows (in Pascal): PrDrvrOpen; PrCtlCall(iPrDevCtl, lPrDocOpen, 0, 0); PrCtlCall(iPrDevCtl, lPrPageOpen, 0, 0); { send data } PrCtlCall(iPrDevCtl, lPrPageClose, 0, 0); PrCtlCall(iPrDevCtl, lPrDocClose, 0, 0); PrDrvrClose; -- Larry Rosenstein, Object Specialist Apple Computer, Inc. 20525 Mariani Ave, MS 27-AJ Cupertino, CA 95014 AppleLink:Rosenstein1 domain:lsr@Apple.COM UUCP:{sun,voder,nsc,decwrl}!apple!lsr