PSPDFEmbeddedGoToAction

Objective-C


@interface PSPDFEmbeddedGoToAction : PSPDFGoToAction

Swift

class EmbeddedGoToAction : GoToAction

An embedded go-to action (PDF 1.6) is similar to a remote go-to action but allows jumping to or from a PDF file that is embedded in another PDF file.

  • Initialize the embedded GoTo action with a remotePath and settings.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithRelativePath:(nonnull NSString *)remotePath
                              targetRelationship:
                                  (PSPDFEmbeddedGoToActionTarget)targetRelationship
                                 openInNewWindow:(BOOL)openInNewWindow
                                       pageIndex:(PSPDFPageIndex)pageIndex;

    Swift

    init(relativePath remotePath: String, targetRelationship: EmbeddedGoToAction.Target, openInNewWindow: Bool, pageIndex: PageIndex)
  • Target can either be parent or child of the current document. (T.R)

    Declaration

    Objective-C

    @property (nonatomic, readonly) PSPDFEmbeddedGoToActionTarget targetRelationship;

    Swift

    var targetRelationship: EmbeddedGoToAction.Target { get }
  • The relative path. Only valid for PSPDFEmbeddedGoToActionTargetChildOfCurrentDocument. (T.N)

    Declaration

    Objective-C

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

    Swift

    var relativePath: String? { get }
  • If set to YES, the embedded action will be opened modally. (/NewWindow)

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL openInNewWindow;

    Swift

    var openInNewWindow: Bool { get }