GSKPDFSize

@interface GSKPDFSize : NSObject

Physical size of a PDF page in inches. If the aspect ratio doesn’t match the aspect ratio of the page in pixels, margins will be added on both sides of the page image. If 0 is provided for the width or height, it is computed to match the aspect ratio of the image. Eg, for a receipt, we usually use width = 3.54f and height = 0.

  • Undocumented

    Declaration

    Objective-C

    - (nonnull instancetype)initWithWidth:(double)width
                                   height:(double)height;

    Swift

    init(width: Double, height: Double)
  • Undocumented

    Declaration

    Objective-C

    + (nonnull instancetype)PDFSizeWithWidth:(double)width
                                      height:(double)height;
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly) double width

    Swift

    var width: Double { get }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly) double height

    Swift

    var height: Double { get }