Interface PDFViewDelegate


  • public interface PDFViewDelegate
    • Method Detail

      • PDFViewOpenPDFForRemoteGoToAction

        default void PDFViewOpenPDFForRemoteGoToAction​(PDFView sender,
                                                       PDFActionRemoteGoTo action)
        Delegates implementing the following method will be called to handle clicks on annotations containing a PDFActionRemoteGoTo action. The action contains a URL and a page index and point. The delegate should open the PDF indicated by the URL and go to the page and point indicated. The easiest way to do the latter is to create a PDFDestination with the page index and point once a PDFDocument from the URL is created - then you can call: -[PDFView goToDestination:]. The default implementation simply beeps.
      • PDFViewParentViewController

        default UIViewController PDFViewParentViewController()
        A delegate that should return the main view controller the PDFView resides in. This is to add additional support to one's view such as 'Lookup' from the text selection menu, along with support of entering text for notes.
      • PDFViewPerformFind

        default void PDFViewPerformFind​(PDFView sender)
        Certain PDFAction's may request that the PDF viewer application perform a Find. Delegates responding to the below method will be called when the user clicks on an annotation with such an action.
      • PDFViewPerformGoToPage

        default void PDFViewPerformGoToPage​(PDFView sender)
        Certain PDFAction's may request that the PDF viewer application bring up a panel allowing the user to enter a specific page number. Delegates responding to the below method will be called when the user clicks on an annotation with such an action.
      • PDFViewWillClickOnLinkWithURL

        default void PDFViewWillClickOnLinkWithURL​(PDFView sender,
                                                   NSURL url)
        Delegates implementing the following method will be called to handle clicks on URL links within the PDFView. The default implementation calls [[NSWorkspace sharedWorkspace] openURL: url].