PSPDFRemoteGoToAction


@interface PSPDFRemoteGoToAction : PSPDFGoToAction

Defines an action to go to a specific page index in another PDF document. Can be either used directly via a page index, or via a named destination, which will be resolved before executing the action. This covers both RemoteGoTo and Launch actions.

  • Will create a PSPDFActionTypeRemoteGoTo linking to another document with a page index.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithRelativePath:(nullable NSString *)remotePath
                                       pageIndex:(NSUInteger)pageIndex;

    Swift

    init(relativePath remotePath: String?, pageIndex: UInt)
  • Will create a PSPDFActionTypeRemoteGoTo linking to another document with a named destination.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithRelativePath:(nullable NSString *)remotePath
                                namedDestination:
                                    (nonnull NSString *)namedDestination;

    Swift

    init(relativePath remotePath: String?, namedDestination: String)
  • Path to the remote PDF, if any.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic, nullable) NSString *relativePath;

    Swift

    var relativePath: String? { get }
  • A named destination. Use -[PSPDFDocumentProvider resolveNamedDestination:] to resolve this to a page index.

    Declaration

    Objective-C

    @property (readonly, copy, atomic, nullable) NSString *namedDestination;

    Swift

    var namedDestination: String? { get }