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

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 »
Summon your guild and prepare for war in...
Netmarble is making some pretty big moves with their latest update for Seven Knights Idle Adventure, with a bunch of interesting additions. Two new heroes enter the battle, there are events and bosses abound, and perhaps most interesting, a huge... | Read more »
Make the passage of time your plaything...
While some of us are still waiting for a chance to get our hands on Ash Prime - yes, don’t remind me I could currently buy him this month I’m barely hanging on - Digital Extremes has announced its next anticipated Prime Form for Warframe. Starting... | Read more »
If you can find it and fit through the d...
The holy trinity of amazing company names have come together, to release their equally amazing and adorable mobile game, Hamster Inn. Published by HyperBeard Games, and co-developed by Mum Not Proud and Little Sasquatch Studios, it's time to... | Read more »
Amikin Survival opens for pre-orders on...
Join me on the wonderful trip down the inspiration rabbit hole; much as Palworld seemingly “borrowed” many aspects from the hit Pokemon franchise, it is time for the heavily armed animal survival to also spawn some illegitimate children as Helio... | Read more »
PUBG Mobile teams up with global phenome...
Since launching in 2019, SpyxFamily has exploded to damn near catastrophic popularity, so it was only a matter of time before a mobile game snapped up a collaboration. Enter PUBG Mobile. Until May 12th, players will be able to collect a host of... | Read more »

Price Scanner via MacPrices.net

Apple is offering significant discounts on 16...
Apple has a full line of 16″ M3 Pro and M3 Max MacBook Pros available, Certified Refurbished, starting at $2119 and ranging up to $600 off MSRP. Each model features a new outer case, shipping is free... Read more
Apple HomePods on sale for $30-$50 off MSRP t...
Best Buy is offering a $30-$50 discount on Apple HomePods this weekend on their online store. The HomePod mini is on sale for $69.99, $30 off MSRP, while Best Buy has the full-size HomePod on sale... Read more
Limited-time sale: 13-inch M3 MacBook Airs fo...
Amazon has the base 13″ M3 MacBook Air (8GB/256GB) in stock and on sale for a limited time for $989 shipped. That’s $110 off MSRP, and it’s the lowest price we’ve seen so far for an M3-powered... Read more
13-inch M2 MacBook Airs in stock today at App...
Apple has 13″ M2 MacBook Airs available for only $849 today in their Certified Refurbished store. These are the cheapest M2-powered MacBooks for sale at Apple. Apple’s one-year warranty is included,... Read more
New today at Apple: Series 9 Watches availabl...
Apple is now offering Certified Refurbished Apple Watch Series 9 models on their online store for up to $80 off MSRP, starting at $339. Each Watch includes Apple’s standard one-year warranty, a new... Read more
The latest Apple iPhone deals from wireless c...
We’ve updated our iPhone Price Tracker with the latest carrier deals on Apple’s iPhone 15 family of smartphones as well as previous models including the iPhone 14, 13, 12, 11, and SE. Use our price... Read more
Boost Mobile will sell you an iPhone 11 for $...
Boost Mobile, an MVNO using AT&T and T-Mobile’s networks, is offering an iPhone 11 for $149.99 when purchased with their $40 Unlimited service plan (12GB of premium data). No trade-in is required... Read more
Free iPhone 15 plus Unlimited service for $60...
Boost Infinite, part of MVNO Boost Mobile using AT&T and T-Mobile’s networks, is offering a free 128GB iPhone 15 for $60 per month including their Unlimited service plan (30GB of premium data).... Read more
$300 off any new iPhone with service at Red P...
Red Pocket Mobile has new Apple iPhones on sale for $300 off MSRP when you switch and open up a new line of service. Red Pocket Mobile is a nationwide MVNO using all the major wireless carrier... Read more
Clearance 13-inch M1 MacBook Airs available a...
Apple has clearance 13″ M1 MacBook Airs, Certified Refurbished, available for $759 for 8-Core CPU/7-Core GPU/256GB models and $929 for 8-Core CPU/8-Core GPU/512GB models. Apple’s one-year warranty is... Read more

Jobs Board

Operating Room Assistant - *Apple* Hill Sur...
Operating Room Assistant - Apple Hill Surgical Center - Day Location: WellSpan Health, York, PA Schedule: Full Time Sign-On Bonus Eligible Remote/Hybrid Regular 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
DMR Technician - *Apple* /iOS Systems - Haml...
…relevant point-of-need technology self-help aids are available as appropriate. ** Apple Systems Administration** **:** Develops solutions for supporting, deploying, 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
All contents are Copyright 1984-2011 by Xplain Corporation. All rights reserved. Theme designed by Icreon.