Type Alias

CGPSConverterMessageCallback

Passes messages generated during a PostScript conversion process.

Declaration

typedef void (*CGPSConverterMessageCallback)(void *info, CFStringRef message);

Parameters

info

A generic pointer to private data shared among your callback functions. This is the same pointer you supplied to CGPSConverterCreate.

message

A string containing the message from the PostScript conversion process.

Discussion

There are several kinds of message that might be sent during a conversion process. The most likely are font substitution messages, and any messages that the PostScript code itself generates. Any PostScript messages written to stdout are routed through this callback—typically these are debugging or status messages and, although uncommon, can be useful in debugging. In addition, there may be error messages if the document is malformed.

See Also

Callbacks

CGPSConverterBeginDocumentCallback

Performs custom tasks at the beginning of a PostScript conversion process.

CGPSConverterEndDocumentCallback

Performs custom tasks at the end of a PostScript conversion process.

CGPSConverterBeginPageCallback

Performs custom tasks at the beginning of each page in a PostScript conversion process.

CGPSConverterEndPageCallback

Performs custom tasks at the end of each page of a PostScript conversion process.

CGPSConverterProgressCallback

Reports progress periodically during a PostScript conversion process.

CGPSConverterReleaseInfoCallback

Performs custom tasks when a PostScript converter is released.