ADC Home > Reference Library > Technical Q&As > Legacy Documents > Printing >

Legacy Documentclose button

Important: This document is part of the Legacy section of the ADC Reference Library. This information should not be used for new development.

Current information on this Reference Library topic can be found here:

Setting GX Paper Types

Important for all Apple Printing and Graphics Developers:

The information in this Technical Q & A is still relevant up to and including Mac OS 7.6 with QuickDraw GX 1.1.5. Beginning with the release of Mac OS 8.0, however, Apple plans to deliver a system which incorporates QuickDraw GX graphics and typography only. QuickDraw GX printer drivers and GX printing extensions will not be supported in Mac OS 8.0 or in future Mac OS releases. Apple's goal is to simplify the user experience of printing by unifying the Macintosh graphic and printing architectures and standardizing on the classic Printing Manager.

For details on Apple's official announcement, refer to </dev/technotes/gxchange.html>

Q: From my application, I need to create a new papertype object on the fly and set the format object for a specific page to use that papertype. I see that there is a GXGetFormatPaperType call but no GXSetFormatPaperType call. Since each page that my user creates could need its own papertype, I need some way to set up the paper type and then set the page size for each page to that new paper type. How do I do this?

A: You are correct: there is no GX API that lets you set the paper type format. However, you can achieve this functionality by following these steps:

  1. Call GXNewPaperType to set up the new paper type that your user has created on the fly.
  2. Call GXGetFormatPaperType to get the currently set paper type.
  3. Call GXCopyPaperType to place the new paper type in instead of the old paper type.
  4. Call GXChangedFormat to let GX know that the format has changed.

[Oct 25 1996]

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.