PSPDFAESCryptoDataSink

Objective-C


@interface PSPDFAESCryptoDataSink : NSObject <PSPDFDataSink>

Swift

class AESCryptoDataSink : NSObject, DataSink

The data sink that works with PSPDFAESCryptoDataProvider

  • 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 the data sink with a UID. Initialization involves creating a temporary file and if PSPDFDataSinkOptionAppend is specified, copy the original file into it.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithUID:(nonnull NSString *)UID
                     passphraseProvider:
                         (nonnull NSString *_Nonnull (^)(void))passphraseProvider
                                options:(PSPDFDataSinkOptions)options;

    Swift

    init(uid UID: String, passphraseProvider: @escaping () -> String, options: DataSinkOptions = [])
  • Initializes the data sink with a file URL.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithURL:(nonnull NSURL *)fileURL
                     passphraseProvider:
                         (nonnull NSString *_Nonnull (^)(void))passphraseProvider
                                options:(PSPDFDataSinkOptions)options;

    Swift

    init(url fileURL: URL, passphraseProvider: @escaping () -> String, options: DataSinkOptions = [])