PSPDFFileDataSink

Objective-C


@interface PSPDFFileDataSink : NSObject <PSPDFDataSink>

Swift

class FileDataSink : NSObject, DataSink

A data sink backed by a file on disk

  • 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
  • Opens the given file URL for writing. If it can’t be opened, returns nil and sets error.

    Declaration

    Objective-C

    - (nullable instancetype)initWithFileURL:(nonnull NSURL *)fileURL
                                     options:(PSPDFDataSinkOptions)options
                                       error:(NSError *_Nullable *_Nullable)error;

    Swift

    init(fileURL: URL, options: DataSinkOptions = []) throws
  • The options set in the constructor.

    Declaration

    Objective-C

    @property (nonatomic, readonly) PSPDFDataSinkOptions options;

    Swift

    var options: DataSinkOptions { get }
  • The file url.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSURL *_Nonnull fileURL;

    Swift

    var fileURL: URL { get }