Personal Laserwriter 320 Printer
Total Page:16
File Type:pdf, Size:1020Kb
Developer Note Personal LaserWriter 320 Printer Developer Note 12/8/93 Developer Press © Apple Computer, Inc. 1993 Apple Computer, Inc. LIMITED WARRANTY ON MEDIA © 1993, Apple Computer, Inc. AND REPLACEMENT All rights reserved. If you discover physical defects in the No part of this publication may be manual or in the media on which a software reproduced, stored in a retrieval product is distributed, APDA will replace system, or transmitted, in any form or the media or manual at no charge to you by any means, mechanical, electronic, provided you return the item to be replaced photocopying, recording, or otherwise, with proof of purchase to APDA. without prior written permission of ALL IMPLIED WARRANTIES ON THIS Apple Computer, Inc. Printed in the MANUAL, INCLUDING IMPLIED United States of America. WARRANTIES OF MERCHANTABILITY The Apple logo is a registered AND FITNESS FOR A PARTICULAR trademark of Apple Computer, Inc. PURPOSE, ARE LIMITED IN DURATION Use of the “keyboard” Apple logo TO NINETY (90) DAYS FROM THE DATE (Option-Shift-K) for commercial OF THE ORIGINAL RETAIL PURCHASE purposes without the prior written OF THIS PRODUCT. consent of Apple may constitute trademark infringement and unfair Even though Apple has reviewed this competition in violation of federal and manual, APPLE MAKES NO WARRANTY state laws. OR REPRESENTATION, EITHER EXPRESS OR IMPLIED, WITH RESPECT TO THIS No licenses, express or implied, are MANUAL, ITS QUALITY, ACCURACY, granted with respect to any of the MERCHANTABILITY, OR FITNESS FOR A technology described in this book. PARTICULAR PURPOSE. AS A RESULT, Apple retains all intellectual property THIS MANUAL IS SOLD “AS IS,” AND rights associated with the technology YOU, THE PURCHASER, ARE ASSUMING described in this book. This book is THE ENTIRE RISK AS TO ITS QUALITY intended to assist application AND ACCURACY. developers to develop applications only for Apple Macintosh computers. IN NO EVENT WILL APPLE BE LIABLE FOR DIRECT, INDIRECT, SPECIAL, Apple Computer, Inc. INCIDENTAL, OR CONSEQUENTIAL 20525 Mariani Avenue DAMAGES RESULTING FROM ANY Cupertino, CA 95014 DEFECT OR INACCURACY IN THIS 408-996-1010 MANUAL, even if advised of the possibility Apple, the Apple logo, APDA, of such damages. AppleLink, AppleTalk, LaserWriter, THE WARRANTY AND REMEDIES SET LocalTalk, and Macintosh are FORTH ABOVE ARE EXCLUSIVE AND IN trademarks of Apple Computer, Inc., LIEU OF ALL OTHERS, ORAL OR registered in the United States and WRITTEN, EXPRESS OR IMPLIED. No other countries. Apple dealer, agent, or employee is FinePrint, PhotoGrade, and TrueType authorized to make any modification, are trademarks of Apple Computer, Inc. extension, or addition to this warranty. Adobe Illustrator and PostScript are Some states do not allow the exclusion or trademarks of Adobe Systems limitation of implied warranties or liability Incorporated, which may be registered for incidental or consequential damages, so in certain jurisdictions. the above limitation or exclusion may not America Online is a service mark of apply to you. This warranty gives you Quantum Computer Services, Inc. specific legal rights, and you may also have CompuServe is a registered trademark other rights which vary from state to state. of CompuServe, Inc. FrameMaker is a registered trademark of Frame Technology Corporation. Helvetica, Palatino, and Times are registered trademarks of Linotype Company. Internet is a trademark of Digital Equipment Corporation. ITC Zapf Dingbats is a registered trademark of International Typeface Corporation. Simultaneously published in the United States and Canada. Contents Figures and Tables v Preface About This Note vii What This Note Contains vii Conventions and Abbreviations viii Typographical Conventions viii Standard Abbreviations viii Other Reference Material ix For More Information ix Introduction to the Chapter 1 Personal LaserWriter 320 Printer 1 Features of the Printer 2 Communication Port for LocalTalk 4 Status Lights 4 Memory Capabilities 5 Basic Operation 6 Batch Mode 6 Interactive Mode 6 Page Types 7 Paper Handling 8 Chapter 2 PostScript Software 9 Software Overview 10 Adobe PostScript Programming Language 10 PostScript Interpreter 10 Printer Driver 10 Printer Utility Program 11 Page and Envelope Types 11 Device Setup 12 Page Device Parameters 13 Details Dictionary 16 Product Strings 17 Interpreter Parameters 17 User Parameters 18 System Parameters 19 Device Parameters 25 iii Thi d t t d ith F M k 4 0 4 Communication Device Parameters 25 Engine Device Parameters 27 Resource Categories 27 Chapter 3 PostScript Level 1 Compatibility Operators 33 Overview of Compatibility Operators 34 Page Size Compatibility Operators 35 Paper Tray Compatibility Operators 36 Setting System Parameters 37 Setting Page Device Parameters 41 Setting User Parameters 43 Setting Device Parameters 44 Setting Communication Parameters 45 Chapter 4 Communication Channels 47 LocalTalk 48 Communication Protocols 48 Communication Dynamics 48 Status Queries and Spontaneous Messages 49 Index 51 iv Figures and Tables Chapter 1 Introduction to the Personal LaserWriter 320 Printer 1 Figure 1-1 The 8-pin mini-DIN connector for LocalTalk 4 Table 1-1 Personal LaserWriter 320 printer features 3 Table 1-2 Signal descriptions for LocalTalk 4 Table 1-3 Status light messages 5 Table 1-4 Available page types 7 Chapter 2 PostScript Software 9 Table 2-1 Paper size and corresponding paper size name 12 Table 2-2 Page device parameters 13 Table 2-3 Paper sizes 16 Table 2-4 Paper tray slot number and input source 16 Table 2-5 Product string values 17 Table 2-6 User parameters in the Personal LaserWriter 320 printer 18 Table 2-7 System parameters in the Personal LaserWriter 320 printer 20 Table 2-8 Parameters for %LocalTalk%, %LocalTalk_NV%, and %LocalTalk_Pending% 26 Table 2-9 %Engine% communication parameters 27 Table 2-10 Regular resource categories 28 Table 2-11 Resources with implicit instances 29 Table 2-12 Resources to define new categories 31 Chapter 3 PostScript Level 1 Compatibility Operators 33 Table 3-1 Compatibility operators 35 Table 3-2 Page size compatibility operators 36 Table 3-3 Paper tray compatibilty operators 37 v Thi d t t d ith F M k 4 0 4 PREFACE About This Note The Personal LaserWriter 320 printer is a new member of the Apple Computer LaserWriter printer family. This developer note describes the features and capabilities of the printer, and it is intended for use by software and hardware developers. To use this note, you need to understand the Adobe PostScript Level 2 programming language and printer terminology commonly referred to in PostScript programming documentation. You should also be familiar with the computer for which you intend to develop software. You do not need to use this note if you are simply running packaged programs for your Apple computer. However, the note is useful if you are writing or modifying a program that is used with the Personal LaserWriter 320 printer. Your owner’s guide provides instructions for connecting the printer to your computer, inserting paper, and performing other routine operating tasks. This note does not provide that type of information. This preface describes the contents of the note, explains visual cues and conventions used in the note, and lists other books to which you can refer. What This Note Contains 0 This note consists of four chapters and an index. ■ Chapter 1, “Introduction to the Personal LaserWriter 320 Printer,” describes the hardware features of the Personal LaserWriter 320 printer, including the built-in communication port and the printer’s paper-handling capabilities. ■ Chapter 2, “PostScript Software,” provides general information about the PostScript Level 2 programming language, the Personal LaserWriter 320 driver, the utility program, and page types. ■ Chapter 3, “PostScript Level 1 Compatibility Operators,” explains how to set the different software parameters using the Personal LaserWriter 320 printer’s compatibility operators. They enable the Personal LaserWriter 320 printer, which uses PostScript Level 2, to maintain compatibility with printers that use PostScript Level 1. ■ Chapter 4, “Communication Channels,” describes the software support provided for the Personal LaserWriter 320 printer’s communication channel. vii Thi d t t d ith F M k 4 0 4 PREFACE Conventions and Abbreviations 0 This developer note uses the following typographical conventions and abbreviations. Typographical Conventions 0 Computer-language text—any text that is literally the same as it appears in computer input or output—appears in Courier font. Certain terms used in this note may appear in different typographical formats—for example, BuildTime and buildtime. BuildTime is the format used for the system parameter, and buildtime is the format used for the operator buildtime. Note A note like this contains information that is interesting but not essential for an understanding of the text. ◆ IMPORTANT A note like this contains important information that you should read before proceeding. ▲ ▲ WARNING A note like this directs your attention to something that could cause damage or result in a loss of data. ▲ Standard Abbreviations 0 When unusual abbreviations appear in this developer note, the corresponding terms are also spelled out. Standard units of measure and other widely used abbreviations are not spelled out. The following abbreviations are used in this note: AMD Advanced Micro Devices dpi dots per inch DRAM dynamic RAM EEPROM electronically erasable and programmable ROM EPROM electronically programmable ROM I/O input/output KB kilobyte MB megabyte MHz megahertz viii PREFACE PDL page-description language ppm pages per minute RAM random-access memory ROM read-only memory VM virtual memory Other Reference Material 0 This developer note assumes that you are familiar with printer technology and know how to operate and program Apple LaserWriter printers. Additional information is available in the following publications: ■ The owner’s guide that is shipped with every Apple printer explains how to set up the printer in the standard configuration. The guide gives basic operating information on how to load toner cartridges, load the paper tray, and set up an external hard disk for fonts.