Carbon


PMSessionSetDocumentFormatGeneration

Header: PMCore.h Carbon status: Supported

Requests a specified spool file format and identifies the graphics contexts that will be used to draw pages within the print loop.

OSStatus PMSessionSetDocumentFormatGeneration (
    PMPrintSession printSession, 
    CFStringRef docFormat, 
    CFArrayRef graphicsContexts, 
    CFTypeRef options
);
Parameter descriptions
printSession

A PMPrintSession object.

docFormat

Your desired spool file format, specified as a MIME type in a CFString. See “Document Format Strings” for a description of the constants you can use to specify the document format.

graphicsContexts

An array of graphics contexts that will be used to draw pages within the print loop.

options

Reserved for future use.

function result

A result code. A result code. See “Result Codes”.

DISCUSSION

The only graphics context currently available to Carbon applications is QuickDraw (kPMGraphicsContextQuickdraw). Before requesting a spool file format using this function, you should call the function PMSessionGetDocumentFormatGeneration to get the list of supported formats.

SPECIAL CONSIDERATIONS

Valid within the context of a printing session.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.1 and later when CarbonLib 1.1 or later is present.


© 2000 Apple Computer, Inc. (Last Updated 7/17/2000)