Contents

PMPrinterGetCommInfo(_:_:_:)

Obtains information about the communication channel for a printer.

Declaration

func PMPrinterGetCommInfo(_ printer: PMPrinter, _ supportsControlCharRangeP: UnsafeMutablePointer<DarwinBoolean>?, _ supportsEightBitP: UnsafeMutablePointer<DarwinBoolean>?) -> OSStatus

Parameters

  • printer:

    The printer whose information you want to obtain.

  • supportsTransparentP:

    A pointer to your Boolean variable. On return, true indicates that the communication channel to the specified printer supports bytes in the range 0x0–0x1F; otherwise, false.

  • supportsEightBitP:

    A pointer to your Boolean variable. On return, true indicates that the communication channel to the specified printer supports bytes in the range 0x80–0xFF; otherwise, false.

Return Value

A result code. See Result Codes.

Discussion

This function is typically relevant only to PostScript printers. All PostScript printers, regardless of what communications channel is used to send data to them, support data in the range 0x20–0x7F. Many communications channels can support data outside this range. You can use this function to determine whether the communications channel to the specified printer also supports bytes in the ranges 0x0–0x1F and 0x80–0xFF.

See Also

Accessing Information About a Printer