PSPDFCryptoInputStream

Undocumented

  • Returns nil if the encryption feature is not enabled.

    Declaration

    Objective-C

    - (nullable instancetype)
    initWithInputStream:(nonnull NSInputStream *)stream
        decryptionBlock:(nullable NSInteger (^)(PSPDFCryptoInputStream *_Nonnull,
                                                uint8_t *_Nonnull,
                                                NSInteger))decryptionBlock;

    Swift

    init?(inputStream stream: InputStream, decryptionBlock: ((PSPDFCryptoInputStream, UnsafeMutablePointer
  • Set the decryption handler. If no decryption block is called, this input stream will simply pass the data through. Return the length of the decrypted buffer. This block is assuming you are decrypting inline. - note: Set this property before the input stream is being used.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic) NSInteger (^_Nonnull)
        (PSPDFCryptoInputStream *_Nonnull, uint8_t *_Nonnull, NSInteger)
            decryptionBlock;

    Swift

    var decryptionBlock: (PSPDFCryptoInputStream, UnsafeMutablePointer