Contents

PMSetPageFormatExtendedData(_:_:_:_:)

Stores your application-specific data in a page format object.

Declaration

func PMSetPageFormatExtendedData(_ pageFormat: PMPageFormat, _ dataID: OSType, _ size: UInt32, _ extendedData: UnsafeMutableRawPointer) -> OSStatus

Parameters

  • pageFormat:

    The page format object in which to store your extended data.

  • dataID:

    A 4-character code that identifies your data. This is typically your application’s creator code. If your creator code is outside the ASCII 7-bit character range 0x20–0x7F, you need to use a different 4-character code.

  • size:

    The size, in bytes, of the data to be stored in the page format object.

  • extendedData:

    A pointer to the application-specific data you want to store in the page format object.

Return Value

A result code. See Result Codes.

Discussion

You can retrieve the data you store with the function PMSetPageFormatExtendedData by calling the function PMGetPageFormatExtendedData.

See Also

Accessing Data in Page Format Objects