PSPDFPageSize
Objective-C
@interface PSPDFPageSize : PSPDFModel <NSSecureCoding>
Swift
class PageSize : ModelObject, NSSecureCoding
Represents a page size option for new pages.
-
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
-
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 (nonatomic, readonly) CGSize size;
Swift
var size: CGSize { get }
-
The name for this size configuration.
Declaration
Objective-C
@property (nonatomic, readonly) NSString *_Nonnull name;
Swift
var name: String { get }
-
Localized version of
name
, suitable for display.Declaration
Objective-C
@property (nonatomic, readonly) NSString *_Nonnull localizedName;
Swift
var localizedName: String { get }
-
A localized string representation of the
size
.Declaration
Objective-C
@property (nonatomic, readonly) NSString *_Nonnull localizedSize;
Swift
var localizedSize: String { get }
-
The
size
adjusted for the givenorientation
. Makes sure that either the height or width is the larger dimension.Declaration
Objective-C
- (CGSize)sizeForOrientation:(PSPDFDocumentOrientation)orientation;
Swift
func size(for orientation: PDFDocumentOrientation) -> CGSize