PSPDFEmbeddedFile


@interface PSPDFEmbeddedFile : PSPDFModel

Represents an embedded file.

  • The document, if available.

    Declaration

    Objective-C

    @property (readonly, nonatomic) PSPDFDocument *_Nullable document;

    Swift

    weak var document: PSPDFDocument? { get }
  • File name.

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSString *_Nonnull fileName;

    Swift

    var fileName: String { get }
  • File size.

    Declaration

    Objective-C

    @property (readonly, nonatomic) uint64_t fileSize;

    Swift

    var fileSize: UInt64 { get }
  • File description. Optional.

    Declaration

    Objective-C

    @property (readonly, nonatomic, nullable) NSString *fileDescription;

    Swift

    var fileDescription: String? { get }
  • File modification date (if set)

    Declaration

    Objective-C

    @property (readonly, nonatomic, nullable) NSDate *modificationDate;

    Swift

    var modificationDate: Date? { get }
  • If the file URL has been extracted by XFDF or external saving, it is set here. - note: In most cases, you should call fileURLWithError: instead to fetch the URL.

    Declaration

    Objective-C

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

    Swift

    var fileURL: URL? { get }
  • Retrieves the embedded stream and returns a file URL to the data. This also sets fileURL if successful.

    Declaration

    Objective-C

    - (nullable NSURL *)fileURLWithError:(NSError *_Nullable *_Nullable)error;

    Swift

    func fileURLWithError() throws -> URL