Contents

PMGetScale(_:_:)

Obtains the scaling factor currently applied to the page and paper rectangles.

Declaration

func PMGetScale(_ pageFormat: PMPageFormat, _ scale: UnsafeMutablePointer<Double>) -> OSStatus

Parameters

  • pageFormat:

    The page format object whose scaling factor you want to obtain.

  • scale:

    A pointer to your double-precision variable. On return, the variable contains the scaling factor expressed as a percentage. For example, a value of 100.0 means 100 percent (that is, no scaling); a value of 50.0 means 50 percent scaling.

Return Value

A result code. See Result Codes.

See Also

Accessing Data in Page Format Objects