PSPDFCompression


@interface PSPDFCompression : PSPDFModel

Define a compression used for image compression.

  • Undocumented

    Declaration

    Objective-C

    
    @interface PSPDFCompression : PSPDFModel
  • Undocumented

    Declaration

    Objective-C

    
    @interface PSPDFCompression : PSPDFModel
  • 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 (readonly, nonatomic) CGFloat compression;

    Swift

    var compression: CGFloat { get }
  • The name for this compression 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 }