TweetFollow Us on Twitter

LaserWriter Driver 8.5.1

Volume Number: 13 (1997)
Issue Number: 11
Column Tag: develop

Introducing the LaserWriter Driver Version 8.5.1

by Ingrid Kelly, Apple Computer, Inc.

This Article outlines some of the changes and new features that Apple has made with the LaserWriter version 8.5.1 release. It describes new utilities, expanded technology support, and what this means to you, the developer.

Note: This article is a generic overview of the changes in the LaserWriter version 8.5.1 release. There are several more TechNotes on Apple's TechNote web site that provide more detail on how to implement and support some of the new features with your driver or application.

Desktop Printer Utility

In the current LaserWriter 8 driver, the Chooser lists printers which are available on the AppleTalk network (either LocalTalk or AppleTalk) with an NBP type of "LaserWriter." When the user selects one of these printers, LaserWriter 8 creates a desktop printer by sending an Apple Event to the Finder. In the past, this mechanism of setting up printers has served the needs of most users. However, with LaserWriter 8.5.1, Apple is responding to several requests for more flexible desktop printing functionality. To this end, Apple has introduced a new application called Desktop Printer Utility which enables users to create additional types of desktop printers. Users can now create desktop printers which use the Unix lpr protocol for printing, in addition to the regular AppleTalk PAP printers. There are also "hold" printers which represent local print queues and "virtual" printers which represent printers which are not available on the network.

Note: The Desktop Printer Utility will not work on Mac OS 8.0. Due to the parallel development schedules and Finder dependencies, this utility will only work on Mac OS 7.5 through 7.6.1 and Mac OS 8.1 and above.

Types of Desktop Printers Currently Implemented with the Desktop Printer Utility

Virtual- Printer (No Printer Connection):

Many users have asked Apple to provide a mechanism to create desktop printers that save their PostScript output to a file without having to be connected to a network. This is a useful feature for those users who publish or archive PostScript documents as well as for those users preparing to take a document to a service bureau. This can be done with Desktop Printer Utility by having the user set up a 'virtual printer' that saves PostScript files to disk.

Hold- Translator (PostScript):

A type of desktop printer useful for PowerBook users is a "hold" desktop printer. Such a desktop printer is always in hold mode and, as the user prints, the spool files appear in the desktop printer queue but are never printed. When the PowerBook is connected to a network with printers, the user can then copy the spool files from the hold desktop printer queue to a desktop printer that represents a real printer on the network.

TCP/IP/LPR- Printer (LPR):

Many users, especially network administrators at universities, have asked for LPR support for LaserWriter 8. With Desktop Printer Utility, printers that represent TCP/IP printers are supported. When creating a TCP/IP desktop printer, the user provides either the name of the printer or its IP address. When LaserWriter 8.5.1 prints to one of these DTPs, it will send the job using the LPR protocol.

DTP Utility Customization

Along with the expanded capabilities, Desktop Printer Utility is also customizable. LaserWriter 8.5.1 and Desktop Printer Utility (together) support the creation and use of desktop printers known as Custom DTPs. When printed to, Custom DTPs cause the LaserWriter 8.5.1 driver to create a PostScript file and to launch an application that can post-process the PostScript. This post-processing application can do anything it likes with the PostScript file, such as converting the PostScript into another file format, transferring the file to another location using a modem or a network connection, or displaying the PostScript file to the user. Customization simply requires a developer to create a few resources and the LaserWriter 8.5.1 driver will do the rest. Please see "Customizing Desktop Printer Utility" in this issue for more information.

The Extended 'PAPA'

In order to support the new types of desktop printers for Desktop Printer Utility, Apple needed to grow the 'PAPA' resource stored in the driver. It has grown from 103 bytes to 1024 bytes. The new 'PAPA' looks just like an old style 'PAPA'; that is, the 'PAPA' resource begins with three packed Pascal strings representing the printer name, the network type (usually LaserWriter), and the printer's zone. After these strings comes the 4-byte network address. The new DTP data begins at the 104th byte in the resource. The data from byte 104 to 1024 (1-based indices) is a series of tagged values where each value begins with a 4-byte tag, a 2-byte length value, and then the actual data. For more information on the extended 'PAPA' resource, please see Apple's TechNote web site.

Redesigned Custom Page Size Support

With LaserWriter 8.4.x, Apple temporarily removed its custom page size support. However, with LaserWriter 8.5.1, this functionality has been redesigned and returns with a much improved user interface.

When a printer's PPD file has a "*CustomPageSize True:" entry in it, then LaserWriter 8.5.1 displays a "Custom Page Sizes" panel in the Page Setup dialog.

Figure 1.

Each new page size has a width and height as well as margins on the four edges. In addition to these standard paper descriptors, each page has a width and height offset for the sheet it is being printed upon. This new panel allows the user to create and modify named page sizes. You should consult the PPD 4.3 specification from Adobe for more details on PPD files and the parameters for custom page sizes.

Figure 2.

Notes and Limitations

  • Page sizes that are created are shared among all printers that support custom page sizes; the list of custom page sizes is sticky to the driver, not to the PPD.
  • If a print record specifies a custom page size, but the current printer does not support custom page sizes, then the paper pop-up in the 'Page Attributes' panel will specify 'other' as the current paper size.
  • The standard print record places some limitations on the number and sizes of custom page sizes that a user may create. For a given paper size there can only be two custom paper size entries and they must have different imageable areas. If an application uses the extended print record, this restriction no longer applies.

PostScript Level 3- CopyBits/StdPix expanded support

LaserWriter 8.5.1 supports the PostScript Level 3 deep masked image extension. This extension allows Apple to support the QuickDraw transparent CopyBits() mode as well as more fully support the maskRgn parameter.

The support for transparent and clipped images has been placed in LaserWriter 8.5.1's implementation of QuickDraw's CopyBits() call. In particular, LaserWriter 8.5.1 recognizes the maskRgn CopyBits() parameter and honors it (Inside Macintosh: Imaging With QuickDraw, p.3-112). LaserWriter 8.5.1 also respects the transparent transfer mode when passed in the 'mode' parameter for CopyBits() (Inside Macintosh: Imaging With QuickDraw, p. 4-39).

For an in-depth look at LaserWriter 8.5.1's support for CopyBits(), see Apple's TechNote web site.

For more information on PostScript Level 3, please contact Adobe Systems Incorporated.

PrGeneral opcodes

Table 1 lists the current PrGeneral opcodes that are implemented/supported by the LaserWriter 8.5.1 driver. With the LaserWriter 8.5.1 release, the driver added complete support for the enableColorMatchingOp opcode for ColorSync. See the ColorSync 2.1.x Support section for further details.

OpcodeOperation
4getRslDataOp
5setRslOp
6draftBitsOp
7noDraftBitsOp
8getRotnOp
9NoGrayScl (not used by LaserWriter 8)
10getPSInfoOp
11PSIntentionsOp
12enableColorMatchingOp (LaserWriter 8.5.1 and above)
13registerProfileOp (ColorSync 1.x only; not used by LaserWriter 8)
14PSAdobeOp
15PSPrimaryPPDOp
16kLoadCommProcsOp
17kUnloadCommProcsOp
18kExtendPrintRecOp (LaserWriter version 8.4 and above)
19kGetExtendedPrintRecOp (LaserWriter version 8.4 and above)
20kPrinterDirectOpCode (not used by any LaserWriter driver)
21kSetExtendedPrintRecOp (LaserWriter version 8.4 and above)
22kPrVersionOp (LaserWriter version 8.4 and above)

Table 1.

Please refer to "Meet PrGeneral, the Trap that Makes the Most of the Printing Manager" in develop Issue 3 for more information on PrGeneral.

ColorSync 2.1.x Support

New Tag Support- 'dsc2'

ColorSync 2.1.x provides a new profile tag that contains the profile's name in several languages. This tag, 'dsc2,' provides localized names for a given profile. LaserWriter 8.5.1 looks inside of a profile for this tag and tries to match the language of the system font against the list of languages in the 'dsc2' tag. If a match is found, the localized text from the profile is used in the Print Dialog's 'Color Matching' panel. If the scripts can not be matched, then the string from the profile's name tag is used. See the 'Advanced Color Imaging on the Mac OS' book for more information on the 'dsc2' tag.

Intent Overrides

Added to LaserWriter 8.5.1's 'Color Matching' panel is a pop-up that allows the user to override the system profile's intent for a given print job. The intent pop-up lists the four possible intents (Perceptual, Relative Colorimetric, Saturation, and Absolute Colorimetric) as documented in the ICC Profile Specification.The pop-up also offers an automatic option which will cause the driver to use a Saturation intent when drawing text and line objects but to use the Perceptual intent on images.

PrGeneral

LaserWriter 8.5.1 adds support for the PrGeneral opcode (enableColorMatchingOp) for enabling and disabling color matching as described in 'Advanced Color Imaging on the Mac OS.' This PrGeneral opcode is only supported if the caller passes in an extended print record. If the caller passes in a standard print record, PrGeneral returns an error indicating that the opcode is not implemented. Enabling color matching via this call puts LaserWriter 8.5.1 into PostScript color matching mode with the printer's default Color Rendering Dictionary. This is the only device independent color matching mode available in the driver. If the caller disables color matching using PrGeneral, then the driver uses the Color/Gray scale color mode.

Destination Profile

LaserWriter 8.5.1 allows applications to determine the destination profile set by the user in the Color Matching panel. In order to get this information, an application must use the extended print record. After running the Print dialog, an application can use the PrGeneral kGetExtendedPrintRecOp (opcode 19) to obtain a Collection Manager collection describing the user's job parameters. Once this collection is obtained, the application uses the Collection Manager to obtain tag kHintDestProfileTag ('dprf'), id kHintDestProfileId (1). The data returned by the Collection Manager for this tag is the FSSpec of the user's chosen destination profile. If the tag does not exist in the collection, then the user has requested the printer's default Color Rendering Dictionary. For more information on collections, please see 'Inside Macintosh: QuickDraw GX Environment and Utilities.'

Faster First-Page Out

Today, when printing in two-pass mode with LaserWriter 8.4.x and below, all of a document's fonts are downloaded prior to the PostScript for the first page. In order to improve the printing time of the first page of a document, when printing in two-pass mode directly to a printer, LaserWriter 8.5.1 sacrifices page independence and downloads fonts immediately prior to the first page in the document in which they are used. By distributing the downloading of fonts over a document, Apple has improved the printing time for the first page of a document in most cases.

Collation

With LaserWriter 8.5.1, Apple has added collation to the driver. The general panel of the Print Dialog will add a collate check box if there is no collate option available in the PPD. With LaserWriter 8's collate option, when it is checked, and while printing n copies, the LaserWriter 8.5.1 driver will print the entire document n times in the following order: 1-2-3, 1-2-3, rather than 1-1, 2-2, 3-3. If the printer's PPD states that the printer supports collation itself, then the LaserWriter 8.5.1 driver is prevented from printing the job n times, and the collate option shows up in the 'Printer Specific' panel. In this case, the printer, not LaserWriter 8.5.1, is responsible for collating the output.

Media Selection

With LaserWriter 8.5.1, in order to support printers that use deferred media selection more fully, and to make it easier to print onto multiple media types, if a printer indicates that it supports media types (with the "*MediaType" keyword in the PPD), these types are listed in the Paper pop-ups in the Print Dialog.

Print to PDF

Due to many requests, in order to support the creation of Adobe Acrobat PDF documents, the Save panel of LaserWriter 8.5.1 adds Acrobat PDF as one of the supported formats. When Acrobat PDF is selected the PDF options are displayed in the save panel.

Figure 3.

When the user selects Acrobat PDF as the destination file format, LaserWriter 8.5.1 creates a PostScript file in the user's Temporary Items folder, and then launches Acrobat Distiller passing the location of the PostScript file and the intended location of the PDF file. The driver waits for Distiller to finish making the PDF file and then deletes the temporary PostScript file. This process is referred to as 'local distilling' as it requires Distiller to be run on the user's machine rather than on a remote server.

Because LaserWriter 8.5.1 uses Apple Events to communicate with Distiller, there is a requirement that the application running the driver's converter must be high-level event aware. In practice, this means that if an application is not high-level event aware, then foreground printing will be disabled if save to PDF is requested. In order to create PDF files from non-high level event aware applications, the user must print in the background.

Note: If Distiller is not available on the user's mounted hard drive, then the Acrobat Distiller option is disabled.

Summary

This article has described all of the new features of LaserWriter 8.5.1. We encourage users and developers to explore the new printing capabilities with their printer.

Further References

  • Apple's TechNote web site http://devworld.apple.com/dev/articles.shtml.
  • TN #5003: PPD 4.3 Specification from Adobe Systems Incorporated.
  • PostScript Level 3 documentation from Adobe Systems Incorporated.
  • Inside Macintosh: Imaging With QuickDraw.
  • Inside Macintosh: Advanced Color Imaging on the Mac OS.
  • Inside Macintosh: QuickDraw GX Environment and Utilities.
  • ICC Profile Specification from http://www.colororg.com.

Acknowledgements

Thanks to Leticia Alarcon, John Blanchard, Richard Blanchard, Paul Danbold and David Gelphman.


Ingrid Kelly works in Developer Technical Support (DTS) at Apple. Having lived on the East coast for a few years, Ingrid is happy to be back in California where she doesn't have to dig her car out in the wintertime, nor does she have to trudge to school in the snow... uphill both ways! At least she'll have a story to tell her children though!

 

Community Search:
MacTech Search:

Software Updates via MacUpdate

Latest Forum Discussions

See All

Fresh From the Land Down Under – The Tou...
After a two week hiatus, we are back with another episode of The TouchArcade Show. Eli is fresh off his trip to Australia, which according to him is very similar to America but more upside down. Also kangaroos all over. Other topics this week... | Read more »
TouchArcade Game of the Week: ‘Dungeon T...
I’m a little conflicted on this week’s pick. Pretty much everyone knows the legend of Dungeon Raid, the match-3 RPG hybrid that took the world by storm way back in 2011. Everyone at the time was obsessed with it, but for whatever reason the... | Read more »
SwitchArcade Round-Up: Reviews Featuring...
Hello gentle readers, and welcome to the SwitchArcade Round-Up for July 19th, 2024. In today’s article, we finish up the week with the unusual appearance of a review. I’ve spent my time with Hot Lap Racing, and I’m ready to give my verdict. After... | Read more »
Draknek Interview: Alan Hazelden on Thin...
Ever since I played my first release from Draknek & Friends years ago, I knew I wanted to sit down with Alan Hazelden and chat about the team, puzzle games, and much more. | Read more »
The Latest ‘Marvel Snap’ OTA Update Buff...
I don’t know about all of you, my fellow Marvel Snap (Free) players, but these days when I see a balance update I find myself clenching my… teeth and bracing for the impact to my decks. They’ve been pretty spicy of late, after all. How will the... | Read more »
‘Honkai Star Rail’ Version 2.4 “Finest D...
HoYoverse just announced the Honkai Star Rail (Free) version 2.4 “Finest Duel Under the Pristine Blue" update alongside a surprising collaboration. Honkai Star Rail 2.4 follows the 2.3 “Farewell, Penacony" update. Read about that here. | Read more »
‘Vampire Survivors+’ on Apple Arcade Wil...
Earlier this month, Apple revealed that poncle’s excellent Vampire Survivors+ () would be heading to Apple Arcade as a new App Store Great. I reached out to poncle to check in on the DLC for Vampire Survivors+ because only the first two DLCs were... | Read more »
Homerun Clash 2: Legends Derby opens for...
Since launching in 2018, Homerun Clash has performed admirably for HAEGIN, racking up 12 million players all eager to prove they could be the next baseball champions. Well, the title will soon be up for grabs again, as Homerun Clash 2: Legends... | Read more »
‘Neverness to Everness’ Is a Free To Pla...
Perfect World Games and Hotta Studio (Tower of Fantasy) announced a new free to play open world RPG in the form of Neverness to Everness a few days ago (via Gematsu). Neverness to Everness has an urban setting, and the two reveal trailers for it... | Read more »
Meditative Puzzler ‘Ouros’ Coming to iOS...
Ouros is a mediative puzzle game from developer Michael Kamm that launched on PC just a couple of months back, and today it has been revealed that the title is now heading to iOS and Android devices next month. Which is good news I say because this... | Read more »

Price Scanner via MacPrices.net

Amazon is still selling 16-inch MacBook Pros...
Prime Day in July is over, but Amazon is still selling 16-inch Apple MacBook Pros for $500-$600 off MSRP. Shipping is free. These are the lowest prices available this weekend for new 16″ Apple... Read more
Walmart continues to sell clearance 13-inch M...
Walmart continues to offer clearance, but new, Apple 13″ M1 MacBook Airs (8GB RAM, 256GB SSD) online for $699, $300 off original MSRP, in Space Gray, Silver, and Gold colors. These are new MacBooks... Read more
Apple is offering steep discounts, up to $600...
Apple has standard-configuration 16″ M3 Max MacBook Pros available, Certified Refurbished, starting at $2969 and ranging up to $600 off MSRP. Each model features a new outer case, shipping is free,... Read more
Save up to $480 with these 14-inch M3 Pro/M3...
Apple has 14″ M3 Pro and M3 Max MacBook Pros in stock today and available, Certified Refurbished, starting at $1699 and ranging up to $480 off MSRP. Each model features a new outer case, shipping is... Read more
Amazon has clearance 9th-generation WiFi iPad...
Amazon has Apple’s 9th generation 10.2″ WiFi iPads on sale for $80-$100 off MSRP, starting only $249. Their prices are the lowest available for new iPads anywhere: – 10″ 64GB WiFi iPad (Space Gray or... Read more
Apple is offering a $50 discount on 2nd-gener...
Apple has Certified Refurbished White and Midnight HomePods available for $249, Certified Refurbished. That’s $50 off MSRP and the lowest price currently available for a full-size Apple HomePod today... Read more
The latest MacBook Pro sale at Amazon: 16-inc...
Amazon is offering instant discounts on 16″ M3 Pro and 16″ M3 Max MacBook Pros ranging up to $400 off MSRP as part of their early July 4th sale. Shipping is free. These are the lowest prices... Read more
14-inch M3 Pro MacBook Pros with 36GB of RAM...
B&H Photo has 14″ M3 Pro MacBook Pros with 36GB of RAM and 512GB or 1TB SSDs in stock today and on sale for $200 off Apple’s MSRP, each including free 1-2 day shipping: – 14″ M3 Pro MacBook Pro (... Read more
14-inch M3 MacBook Pros with 16GB of RAM on s...
B&H Photo has 14″ M3 MacBook Pros with 16GB of RAM and 512GB or 1TB SSDs in stock today and on sale for $150-$200 off Apple’s MSRP, each including free 1-2 day shipping: – 14″ M3 MacBook Pro (... Read more
Amazon is offering $170-$200 discounts on new...
Amazon is offering a $170-$200 discount on every configuration and color of Apple’s M3-powered 15″ MacBook Airs. Prices start at $1129 for models with 8GB of RAM and 256GB of storage: – 15″ M3... Read more

Jobs Board

*Apple* Systems Engineer - Chenega Corporati...
…LLC,** a **Chenega Professional Services** ' company, is looking for a ** Apple Systems Engineer** to support the Information Technology Operations and Maintenance Read more
Solutions Engineer - *Apple* - SHI (United...
**Job Summary** An Apple Solution Engineer's primary role is tosupport SHI customers in their efforts to select, deploy, and manage Apple operating systems and Read more
*Apple* / Mac Administrator - JAMF Pro - Ame...
Amentum is seeking an ** Apple / Mac Administrator - JAMF Pro** to provide support with the Apple Ecosystem to include hardware and software to join our team and Read more
Operations Associate - *Apple* Blossom Mall...
Operations Associate - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) - Apple Read more
Cashier - *Apple* Blossom Mall - JCPenney (...
Cashier - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) - Apple Blossom Mall Read more
All contents are Copyright 1984-2011 by Xplain Corporation. All rights reserved. Theme designed by Icreon.