PSPDFAESCryptoDataSink


@interface PSPDFAESCryptoDataSink : NSObject <PSPDFDataSink>

The data sink that works with PSPDFAESCryptoDataProvider

  • Unavailable

    Undocumented

    Declaration

    Objective-C

    PSPDF_EMPTY_INIT_UNAVAILABLE
  • Unavailable

    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: PSPDFDataSinkOptions = [])
  • 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: PSPDFDataSinkOptions = [])