PSPDFRemoteGoToAction

Objective-C


@interface PSPDFRemoteGoToAction : PSPDFGoToAction

Swift

class RemoteGoToAction : GoToAction

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:(PSPDFPageIndex)pageIndex;

    Swift

    init(relativePath remotePath: String?, pageIndex: PageIndex)
  • 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 (nonatomic, copy, readonly, 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 (copy, readonly, nullable) NSString *namedDestination;

    Swift

    var namedDestination: String? { get }