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:

PPDs


Q: I know where the PPDs are located (System Folder:Extensions:Printer Descriptions), but how can I know what file reflects the current printer?

A: To find the PPD associated with the current printer, you should use the PrGeneral call with the PSPrimaryPPDOp opcode as documented in the LaserWriter 8 API. Full documentation can be found on the Toolchest CD in the Developer CD series.

The relevant portions of the header file follow:


enum {		/* new PrGeneral selectors */
	getPSInfoOp = 10,
	PSIntentionsOp = 11,
	PSAdobeOp = 14,
	PSPrimaryPPDOp = 15
};
struct TPSPrimaryPPD{
	short	iOpCode;
	short	iError;
	long	lReserved;
	short	ppdIsRealFile;
	FFSpec	ppdFile;
};
typedef struct TPSPrimaryPPD TPSPrimaryPPD;

[May 01 1995]


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.