PSPDFPageSize


@interface PSPDFPageSize : PSPDFModel

Represents a page size option for new pages.

  • Undocumented

    Declaration

    Objective-C

    
    @interface PSPDFPageSize : PSPDFModel
  • Undocumented

    Declaration

    Objective-C

    
    @interface PSPDFPageSize : PSPDFModel
  • Returns a new save directory with a size and name. - see: initWithSize:name

    Declaration

    Objective-C

    + (nonnull instancetype)size:(CGSize)size name:(nonnull NSString *)name;

    Swift

    convenience init(_ size: CGSize, name: String)
  • Initializes a new page size with the given size and (non-localized) name.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithSize:(CGSize)size name:(nonnull NSString *)name;

    Swift

    init(size: CGSize, name: String)
  • The size in pdf points.

    Declaration

    Objective-C

    @property (readonly, nonatomic) CGSize size;

    Swift

    var size: CGSize { get }
  • The name for this size configuration.

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSString *_Nonnull name;

    Swift

    var name: String { get }
  • Localized version of name, suitable for display.

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSString *_Nonnull localizedName;

    Swift

    var localizedName: String { get }
  • A localized string representation of the size.

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSString *_Nonnull localizedSize;

    Swift

    var localizedSize: String { get }
  • The size adjusted for the given orientation. Makes sure that either the height or width is the larger dimension.

    Declaration

    Objective-C

    - (CGSize)sizeForOrientation:(PSPDFDocumentOrientation)orientation;

    Swift

    func size(for orientation: PSPDFDocumentOrientation) -> CGSize