TweetFollow Us on Twitter

Aug 97 Dialog Box

Volume Number: 13 (1997)
Issue Number: 8
Column Tag: Dialog Box

The Future of MacOS Printing

by MacTech Editorial Staff

An Open Letter To Apple Computer

Apple has announced an end to its current situation of supporting two completely different printing architectures under MacOS. This much seems sensible. However, they have decided to keep the old, rickety QuickDraw architecture that has been hacked and patched and tweaked and munged and generally abused over the past thirteen years into doing things it was never designed to do. Therefore, dumping the next-generation QuickDraw GX architecture that would have taken MacOS printing into the next century. This letter explains why I think Apple's choice was the wrong one.

Let's get one thing straight: I'm no fan of a technology, no matter how cool it sounds, no matter how many years of work were put into it, if it doesn't actually help people get their work done. QuickDraw GX printing solves real problems for real users.

Every few days without fail on the USENET newsgroups I frequent, somebody asks how to do double-sided printing on a single-sided printer. The easiest solution I'm aware of is my own freeware Duplex Helper. Tell it how your printer prints (on the upper or lower surface of the paper, output face up or down), and it automatically works out which pages to print (odd or even) and in which order (forward or reverse) so you don't have to shuffle any pages around. It works with both PostScript and non-PostScript printers, and with just about any application that can print.

The only way to provide equivalent functionality without GX would be to reinvent this feature in every printer driver, or in every application, or both. Why do you think so few of them bother? I even see Microsoft Windows users asking for a solution to this problem, and not finding one!

I recently did a development job for a company that sells print server software - they needed an extension to install for their Macintosh clients that would obtain information about the print job from the user, and include it in the print job data where the server would collect it for accounting purposes. Without GX printing, I would have to come up with a driver-specific solution. I would have to work out how to patch into, say, the LaserWriter 8.3 driver to get the dialogs to pop up at the start of the print job, append my own information to the generated PostScript, and so on. And my solution would probably have needed to be redone for LaserWriter 8.4. And it would have to work in a completely different way for any other driver. Instead of going to all this trouble, I did the Macintosh client as a QuickDraw GX printing extension. This allowed me to hook into the printing process in a clean, well-behaved way that should work with any application, and any GX printer driver.

Incidentally, the company didn't have too much trouble implementing their Windows client, since Windows supports print queue processors that can modify the output of printer drivers in various ways, without requiring you to replace the drivers. Old QuickDraw printing is one part of the MacOS that makes Windows look good!

GX printing not only solves existing problems, it also makes new things possible that are difficult or impossible to do any other way. For example, I published a proposal for attaching URL tags to GX graphics. I have even released a version of SimpleView, my GX graphics viewer, that supports clicking on these hot links. Now, there is no way that everybody on the Web is going to buy a Mac and install GX just to view these graphics, but through the GX printing architecture, it would be possible to write custom printer drivers that would output these graphics to cross-platform formats such as HTML or Acrobat PDF, translating the URL links accordingly. You could use a small, purpose-built application for attaching these links to particular graphics, then simply paste or drag them into existing word-processing or other applications that need know nothing about GX, after which generating the final, Web-ready output is as simple as using the "Print" command. This is Web authoring, the "component software" way!

Sure, you could define new QuickDraw picture comments to try to provide equivalent functionality under the old QuickDraw printing architecture. However, even ignoring the fact that it is harder to write a QuickDraw printer driver than a GX one, you'd still be stuck with the low quality of QuickDraw graphics, which is particularly embarrassing when you're trying to output to a high-quality format like Acrobat PDF.

GX printing offers full programmatic control over the print job - any option the user can set in the Page Setup and Print dialogs can also be directly queried and changed by the application. Imagine using this to improve the smartness of document formatting - if the user pastes a very wide graphic into a portrait-oriented document, you could automatically reformat just that page in landscape orientation, or using some other wide paper type that you know is available. (Perhaps first putting up a confirmation dialog to let the user know what is going on.) Also, think of vertical market applications like check printing, which can automatically use their own custom paper types with minimal requirement for the user to stuff around in print dialogs.

Apple (and other vendors) may very well try to provide features like these in future versions of their old QuickDraw printer drivers. However, given that you would have to reinvent these features for every driver, what guarantee do you have that they will work the same way from one driver to another? Look at the mess of inconsistencies in the support of existing QuickDraw picture comments between different drivers, and imagine that multiplied tenfold.

One excuse given for canning GX printing has been its limited acceptance among developers and users. This is entirely Apple's fault. Many people were put off installing GX printing because it caused incompatibilities printing with some applications. Most of these incompatibilities came about because GX printing broke so many old hacks that were needed precisely to get around frustrating limitations in the old QuickDraw printing architecture.

Example: GX breaks the "space hack". Old QuickDraw printing offers no public API call to ask for a font to be downloaded to a PostScript printer so you can make use of it in your own PostScript code, which is embedded in the document. However, there is a way to force this to happen. Simply use standard QuickDraw calls to draw a single space character, using that font, somewhere on the page. The dumb LaserWriter driver will obligingly load the entire font into the printer, and leave it there for you to use.

GX printing is much smarter than this. It will load only the minimum subset of the font necessary to print the character, and it will delete it from the printer's memory immediately afterwards! The good news is that GX printing is so resource-efficient that it can successfully print complex documents on elderly, memory-limited PostScript printers that LaserWriter 8 cannot handle. The bad news is that trying to trick the printer driver into downloading the entire font by printing a single character no longer works.

On the other hand, GX offers a powerful function called GXFlattenFont, that allows you to do the font downloading yourself. It will convert any font to a PostScript data stream that you can embed in a print job (or do something else entirely) giving you control over encoding and subsetting, automatically converting TrueType to PostScript - just about anything you might want to do.

Eureka! At last we can consign the space hack to the dustbin of history, where it belongs, right? But there is just one problem - GXFlattenFont is not documented in any of the GX volumes of Inside Macintosh. So, how were developers supposed to find out how to use it?

This is the general problem. GX offers new, better, cleaner ways of doing all the things that you needed those old hacks for, and much more besides, but Apple has done a lousy job of explaining this to developers (and users). The result - people were left to discover GX printing on their own, without any clear idea of what its benefits were about; then as they hit the predictable problems, and little or no help was forthcoming from Apple on what to do about them, GX was allowed to acquire a bad reputation, and people gradually gave up trying to use it.

Compare the situation with the transition from MacTCP to Open Transport. In spite of all the bugs and incompatibilities that users had to suffer in that transition, Apple took pains to keep articulating the benefits to both users and developers, which encouraged them to stick with the new technology, and the end result was positive for everybody.

Apple's efforts seems to be going largely into Rhapsody these days. It's unclear to me how Rhapsody printing will work - it looks like the whole architecture is going to be PostScript-centric. This seems to me to be unwise in the current market. PostScript is admittedly still dominant in publishing, but its presence is tiny (and dwindling) everywhere else. For instance, the vast majority of printers being sold in the mass market these days are inkjets, and very few of those speak PostScript. This is a fact that Adobe seems quite aware of, even if Apple is not. GX printing would be a way to hedge one's bets, since it allows applications to treat PostScript and non-PostScript printers on an absolutely equal basis.

The MacOS has always been, to me, a forward-looking operating system, pioneering features in areas (device-independent graphics and printing, multimedia) which were not traditionally considered to be the domain of the operating system, but which turned out to be important in supporting the innovative, new applications. This case of dropping an important next-generation technology, and going back to an old one, is not the Macintosh Way.

Sure, Apple has had its share of failures that were technologically poor and deserved to fail. Unlike some other companies, Apple cannot afford to keep throwing money at mediocre solutions to force them to succeed. But the problems that GX printing solves are not going to go away. Apple is foolish to squander their resources in this way, by throwing away such a well-thought-out, painstakingly-built solution, and trying to develop another one.

Lawrence D'Oliveiro
ldo@waikato.ac.nz

Relevant URLs

  1. Apple Press Release: http://product.info.apple.com/pr/press.releases/1997/q2/970303.pr.rel.print.html.
  2. Freeware Duplex Helper: http://www2.waikato.ac.nz/ldo/sw/index.html#DuplexHelper.
  3. Proposal for attaching URL tags to GX graphics: http://www2.waikato.ac.nz/ldo/gx/URLTags.html.
  4. SimpleView: http://www2.waikato.ac.nz/ldo/sw/index.html#SimpleView.
 

Community Search:
MacTech Search:

Software Updates via MacUpdate

Latest Forum Discussions

See All

Fallout Shelter pulls in ten times its u...
When the Fallout TV series was announced I, like I assume many others, assumed it was going to be an utter pile of garbage. Well, as we now know that couldn't be further from the truth. It was a smash hit, and this success has of course given the... | Read more »
Recruit two powerful-sounding students t...
I am a fan of anime, and I hear about a lot that comes through, but one that escaped my attention until now is A Certain Scientific Railgun T, and that name is very enticing. If it's new to you too, then players of Blue Archive can get a hands-on... | Read more »
Top Hat Studios unveils a new gameplay t...
There are a lot of big games coming that you might be excited about, but one of those I am most interested in is Athenian Rhapsody because it looks delightfully silly. The developers behind this project, the rather fancy-sounding Top Hat Studios,... | Read more »
Bound through time on the hunt for sneak...
Have you ever sat down and wondered what would happen if Dr Who and Sherlock Holmes went on an adventure? Well, besides probably being the best mash-up of English fiction, you'd get the Hidden Through Time series, and now Rogueside has announced... | Read more »
The secrets of Penacony might soon come...
Version 2.2 of Honkai: Star Rail is on the horizon and brings the culmination of the Penacony adventure after quite the escalation in the latest story quests. To help you through this new expansion is the introduction of two powerful new... | Read more »
The Legend of Heroes: Trails of Cold Ste...
I adore game series that have connecting lore and stories, which of course means the Legend of Heroes is very dear to me, Trails lore has been building for two decades. Excitedly, the next stage is upon us as Userjoy has announced the upcoming... | Read more »
Go from lowly lizard to wicked Wyvern in...
Do you like questing, and do you like dragons? If not then boy is this not the announcement for you, as Loongcheer Game has unveiled Quest Dragon: Idle Mobile Game. Yes, it is amazing Square Enix hasn’t sued them for copyright infringement, but... | Read more »
Aether Gazer unveils Chapter 16 of its m...
After a bit of maintenance, Aether Gazer has released Chapter 16 of its main storyline, titled Night Parade of the Beasts. This big update brings a new character, a special outfit, some special limited-time events, and, of course, an engaging... | Read more »
Challenge those pesky wyverns to a dance...
After recently having you do battle against your foes by wildly flailing Hello Kitty and friends at them, GungHo Online has whipped out another surprising collaboration for Puzzle & Dragons. It is now time to beat your opponents by cha-cha... | Read more »
Pack a magnifying glass and practice you...
Somehow it has already been a year since Torchlight: Infinite launched, and XD Games is celebrating by blending in what sounds like a truly fantastic new update. Fans of Cthulhu rejoice, as Whispering Mist brings some horror elements, and tests... | Read more »

Price Scanner via MacPrices.net

Sunday Sale: Take $150 off every 15-inch M3 M...
Amazon is now offering a $150 discount on every configuration and color of Apple’s M3-powered 15″ MacBook Airs. Prices start at $1149 for models with 8GB of RAM and 256GB of storage: – 15″ M3 MacBook... Read more
Apple’s 24-inch M3 iMacs are on sale for $150...
Amazon is offering a $150 discount on Apple’s new M3-powered 24″ iMacs. Prices start at $1149 for models with 8GB of RAM and 256GB of storage: – 24″ M3 iMac/8-core GPU/8GB/256GB: $1149.99, $150 off... Read more
Verizon has Apple AirPods on sale this weeken...
Verizon has Apple AirPods on sale for up to 31% off MSRP on their online store this weekend. Their prices are the lowest price available for AirPods from any Apple retailer. Verizon service is not... Read more
Apple has 15-inch M2 MacBook Airs available s...
Apple has clearance, Certified Refurbished, 15″ M2 MacBook Airs available starting at $1019 and ranging up to $300 off original MSRP. These are the cheapest 15″ MacBook Airs for sale today at Apple.... Read more
May 2024 Apple Education discounts on MacBook...
If you’re a student, teacher, or staff member at any educational institution, you can use your .edu email address when ordering at Apple Education to take up to $300 off the purchase of a new MacBook... Read more
Clearance 16-inch M2 Pro MacBook Pros in stoc...
Apple has clearance 16″ M2 Pro MacBook Pros available in their Certified Refurbished store starting at $2049 and ranging up to $450 off original MSRP. Each model features a new outer case, shipping... Read more
Save $300 at Apple on 14-inch M3 MacBook Pros...
Apple has 14″ M3 MacBook Pros with 16GB of RAM, Certified Refurbished, available for $270-$300 off MSRP. Each model features a new outer case, shipping is free, and an Apple 1-year warranty is... Read more
Apple continues to offer 14-inch M3 MacBook P...
Apple has 14″ M3 MacBook Pros, Certified Refurbished, available starting at only $1359 and ranging up to $270 off MSRP. Each model features a new outer case, shipping is free, and an Apple 1-year... Read more
Apple AirPods Pro with USB-C return to all-ti...
Amazon has Apple’s AirPods Pro with USB-C in stock and on sale for $179.99 including free shipping. Their price is $70 (28%) off MSRP, and it’s currently the lowest price available for new AirPods... Read more
Apple Magic Keyboards for iPads are on sale f...
Amazon has Apple Magic Keyboards for iPads on sale today for up to $70 off MSRP, shipping included: – Magic Keyboard for 10th-generation Apple iPad: $199, save $50 – Magic Keyboard for 11″ iPad Pro/... Read more

Jobs Board

Liquor Stock Clerk - S. *Apple* St. - Idaho...
Liquor Stock Clerk - S. Apple St. Boise Posting Begin Date: 2023/10/10 Posting End Date: 2024/10/14 Category: Retail Sub Category: Customer Service Work Type: Part Read more
*Apple* App Developer - Datrose (United Stat...
…year experiencein programming and have computer knowledge with SWIFT. Job Responsibilites: Apple App Developer is expected to support essential tasks for the RxASL Read more
Omnichannel Associate - *Apple* Blossom Mal...
Omnichannel Associate - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) - Apple 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.