PSPDFUnitFrom
Objective-C
enum PSPDFUnitFrom : NSInteger {}
Swift
@frozen enum UnitFrom : Int, @unchecked Sendable
Possible units for distances on a document page. These are used with the from
value in a MeasurementScale
object.
-
Inches (default). 1 inch is 72 PDF points.
Declaration
Objective-C
PSPDFUnitFromInch
Swift
case inch = 0
-
Millimeters
Declaration
Objective-C
PSPDFUnitFromMillimeter
Swift
case millimeter = 1
-
Centimeters
Declaration
Objective-C
PSPDFUnitFromCentimeter
Swift
case centimeter = 2
-
PDF points. A PDF point is 1/72 inch. All values in a PDF page coordinate space (e.g. an annotation’s bounding box) are specified in PDF points.
Declaration
Objective-C
PSPDFUnitFromPoint
Swift
case point = 3