PSPDFRenditionAction
Objective-C
@interface PSPDFRenditionAction : PSPDFAction
Swift
class RenditionAction : Action
A rendition action (PDF 1.5) controls the playing of multimedia content (see PDF Reference 1.7, 13.2, “Multimedia”).
Note
JavaScript actions are not supported.-
Designated initializer.
Declaration
Objective-C
- (nonnull instancetype)initWithActionType:(PSPDFRenditionActionType)actionType javaScript:(nullable NSString *)javaScript annotation:(nullable PSPDFScreenAnnotation *) annotation;
Swift
init(actionType: RenditionAction.Kind, javaScript: String?, annotation: PSPDFScreenAnnotation?)
-
The rendition action type.
Declaration
Objective-C
@property (nonatomic, readonly) PSPDFRenditionActionType actionType;
Swift
var actionType: RenditionAction.Kind { get }
-
The associated screen annotation. Optional. Will link to an already existing annotation.
Declaration
Objective-C
@property (nonatomic, weak, readonly) PSPDFScreenAnnotation *_Nullable annotation;
Swift
weak var annotation: PSPDFScreenAnnotation? { get }
-
Optional. A JavaScript script that shall be executed when the action is triggered.
Declaration
Objective-C
@property (nonatomic, readonly, nullable) NSString *javaScript;
Swift
var javaScript: String? { get }