PMGetOrientation(_:_:)
Obtains the current setting for page orientation.
Declaration
func PMGetOrientation(_ pageFormat: PMPageFormat, _ orientation: UnsafeMutablePointer<PMOrientation>) -> OSStatusParameters
- pageFormat:
The page format object whose orientation you want to obtain.
- orientation:
A pointer to your
PMOrientationvariable. On return, the variable contains a constant value indicating the page orientation. Supported values are:kPMPortraitkPMLandscapekPMReversePortrait(supported in macOS 10.5 and later)kPMReverseLandscape
See Pmorientation for a complete description of the page orientation constants.
Return Value
A result code. See Result Codes.
See Also
Accessing Data in Page Format Objects
PMGetPageFormatExtendedData(_:_:_:_:)PMSetPageFormatExtendedData(_:_:_:_:)PMGetPageFormatPaper(_:_:)PMPageFormatGetPrinterID(_:_:)PMSetOrientation(_:_:_:)PMGetScale(_:_:)PMSetScale(_:_:)PMGetAdjustedPageRect(_:_:)PMGetAdjustedPaperRect(_:_:)PMGetUnadjustedPageRect(_:_:)PMGetUnadjustedPaperRect(_:_:)