PSPDFCompression
Objective-C
@interface PSPDFCompression : PSPDFModel <NSSecureCoding>
Swift
class Compression : ModelObject, NSSecureCoding
Define a compression used for image compression.
-
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
-
Create a new compression instance.
Declaration
Objective-C
+ (nonnull instancetype)compression:(CGFloat)compression name:(nonnull NSString *)name;
Swift
convenience init(_ compression: CGFloat, name: String)
Parameters
compression
Used compression value.
name
Name of this compression configuration.
-
Create a new compression instance.
Declaration
Objective-C
- (nonnull instancetype)initWithCompression:(CGFloat)compression name:(nonnull NSString *)name;
Swift
init(compression: CGFloat, name: String)
Parameters
compression
Used compression value.
name
Name of the compression.
-
Used compression value.
Declaration
Objective-C
@property (nonatomic, readonly) CGFloat compression;
Swift
var compression: CGFloat { get }
-
The name for this compression 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 }