PSPDFFileDataSink


@interface PSPDFFileDataSink : NSObject <PSPDFDataSink>

A data sink for a file.

  • Undocumented

    Declaration

    Objective-C

    
    @interface PSPDFFileDataSink : NSObject <PSPDFDataSink>
  • Undocumented

    Declaration

    Objective-C

    
    @interface PSPDFFileDataSink : NSObject <PSPDFDataSink>
  • Opens the given file URL for writing. If it can’t be opened, returns nil and sets error.

    Declaration

    Objective-C

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

    Swift

    init(fileURL: URL, options: PSPDFDataSinkOptions = [], error: NSErrorPointer)
  • 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 }