PSPDFAssetAnnotation

Objective-C


@interface PSPDFAssetAnnotation : PSPDFLinkAnnotation

Swift

class AssetAnnotation : LinkAnnotation

Abstract subclass that contains an asset from a link

  • The name of the embedded asset.

    Declaration

    Objective-C

    @property (copy, readonly, nullable) NSString *assetName;

    Swift

    var assetName: String? { get }
  • Extracts the asset into a file and returns the file URL.

    Declaration

    Objective-C

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

    Swift

    func fileURL() throws -> URL