PSPDFFileDataProvider


@interface PSPDFFileDataProvider : NSObject <PSPDFFileDataProviding>

An implementation of PSPDFDataProviding that acts upon a file.

  • Unavailable

    Undocumented

    Declaration

    Objective-C

    
    @interface PSPDFFileDataProvider : NSObject <PSPDFFileDataProviding>
  • Unavailable

    Undocumented

    Declaration

    Objective-C

    
    @interface PSPDFFileDataProvider : NSObject <PSPDFFileDataProviding>
  • Initializes a PSPDFFileDataProvider with the given fileURL.

    Note

    If you are expecting to encounter symlinks or alias files, you need to resolve those using NSURL APIs before passing the URLs to PSPDFFileDataProvider. PSPDFFileDataProvider won’t automatically resolve them for performance reasons.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithFileURL:(nonnull NSURL *)fileURL
                                   progress:(nullable NSProgress *)progress;

    Swift

    init(fileURL: URL, progress: Progress?)

    Parameters

    fileURL

    Needs to be a file URL pointing to a PDF file on the filesystem.

    progress

    An optional NSProgress instance that indicates progress until the file at fileURL can be accessed.

    Return Value

    A new file provider.

  • See

    initWithFileURL:progress:

    Declaration

    Objective-C

    - (nonnull instancetype)initWithFileURL:(nonnull NSURL *)fileURL;

    Swift

    convenience init(fileURL: URL)