PSPDFMeasurementScale

Objective-C


@interface PSPDFMeasurementScale : PSPDFModel

Swift

class MeasurementScale : ModelObject

A ratio of a distance on a document page to a corresponding real world distance.

  • Unavailable

    Not the designated initializer

    Undocumented

    Declaration

    Objective-C

    PSPDF_EMPTY_INIT_UNAVAILABLE
  • Unavailable

    Not the designated initializer

    Undocumented

    Declaration

    Objective-C

    PSPDF_EMPTY_INIT_UNAVAILABLE
  • Creates a MeasurementScale object.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithFrom:(double)from
                                unitFrom:(PSPDFUnitFrom)unitFrom
                                      to:(double)to
                                  unitTo:(PSPDFUnitTo)unitTo;

    Swift

    init(from: Double, unitFrom: UnitFrom, to: Double, unitTo: UnitTo)

    Parameters

    from

    A distance on a document page. The unit of this value is given by unitFrom.

    unitFrom

    The unit for the distance on a document page.

    to

    A real world distance. The unit of this value is given by unitTo.

    unitTo

    The unit for the real world distance.

  • A distance on a document page. The unit of this value is given by unitFrom.

    Declaration

    Objective-C

    @property (nonatomic, readonly) double from;

    Swift

    var from: Double { get }
  • The unit for the distance on a document page.

    Declaration

    Objective-C

    @property (nonatomic, readonly) PSPDFUnitFrom unitFrom;

    Swift

    var unitFrom: UnitFrom { get }
  • to

    A real world distance. The unit of this value is given by unitTo.

    Declaration

    Objective-C

    @property (nonatomic, readonly) double to;

    Swift

    var to: Double { get }
  • The unit for the real world distance.

    Declaration

    Objective-C

    @property (nonatomic, readonly) PSPDFUnitTo unitTo;

    Swift

    var unitTo: UnitTo { get }