PSPDFFileDataSink


@interface PSPDFFileDataSink : NSObject <PSPDFDataSink>

A data sink for a file.

  • Unavailable

    Undocumented

    Declaration

    Objective-C

    PSPDF_EMPTY_INIT_UNAVAILABLE
  • Unavailable

    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: PSPDFDataSinkOptions = []) throws
  • The options set in the constructor.

    Declaration

    Objective-C

    @property (readonly, nonatomic) PSPDFDataSinkOptions options;

    Swift

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

    Declaration

    Objective-C

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

    Swift

    var fileURL: URL { get }