Package apple.pdfkit

Class PDFView

    • Constructor Detail

      • PDFView

        protected PDFView​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • alloc

        public static PDFView alloc()
      • allocWithZone

        public static PDFView allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • annotationsChangedOnPage

        public void annotationsChangedOnPage​(@NotNull
                                             @NotNull PDFPage page)
        Tells PDFView that an annotation has changed on the specified page. PDFView re-scans then for tooltips, popups, and informs PDFThumbnailViews so the thumbnail can be redrawn. API-Since: 11.0
      • appearance

        @NotNull
        public static @NotNull PDFView appearance()
      • _appearance

        @NotNull
        public @NotNull PDFView _appearance()
        Description copied from interface: UIAppearance
        To customize the appearance of all instances of a class, send the relevant appearance modification messages to the appearance proxy for the class. For example, to modify the bar tint color for all UINavigationBar instances: [[UINavigationBar appearance] setBarTintColor:myColor]; Note for iOS7: On iOS7 the tintColor property has moved to UIView, and now has special inherited behavior described in UIView.h. This inherited behavior can conflict with the appearance proxy, and therefore tintColor is now disallowed with the appearance proxy.
        Specified by:
        _appearance in interface UIAppearance
        Overrides:
        _appearance in class UIView
      • appearanceForTraitCollection

        @NotNull
        public static @NotNull PDFView appearanceForTraitCollection​(@NotNull
                                                                    @NotNull UITraitCollection trait)
      • appearanceForTraitCollectionWhenContainedIn

        @NotNull
        @Deprecated
        public static @NotNull PDFView appearanceForTraitCollectionWhenContainedIn​(@NotNull
                                                                                   @NotNull UITraitCollection trait,
                                                                                   @Nullable
                                                                                   @Nullable UIAppearanceContainer ContainerClass,
                                                                                   java.lang.Object... varargs)
        Deprecated.
      • appearanceForTraitCollectionWhenContainedInInstancesOfClasses

        @NotNull
        public static @NotNull PDFView appearanceForTraitCollectionWhenContainedInInstancesOfClasses​(@NotNull
                                                                                                     @NotNull UITraitCollection trait,
                                                                                                     @NotNull
                                                                                                     @NotNull NSArray<?> containerTypes)
      • appearanceWhenContainedIn

        @NotNull
        @Deprecated
        public static @NotNull PDFView appearanceWhenContainedIn​(@Nullable
                                                                 @Nullable UIAppearanceContainer ContainerClass,
                                                                 java.lang.Object... varargs)
        Deprecated.
      • _appearanceWhenContainedIn

        @NotNull
        @Deprecated
        public @NotNull PDFView _appearanceWhenContainedIn​(@Nullable
                                                           @Nullable UIAppearanceContainer ContainerClass,
                                                           java.lang.Object... varargs)
        Deprecated.
        Description copied from interface: UIAppearance
        To customize the appearances for instances of a class contained within an instance of a container class, or instances in a hierarchy, use +appearanceWhenContainedInInstancesOfClasses: for the appropriate appearance proxy. For example: [[UINavigationBar appearanceWhenContainedInInstancesOfClasses:@[[UISplitViewController class]]] setBarTintColor:myColor]; [[UINavigationBar appearanceWhenContainedInInstancesOfClasses:@[[UITabBarController class], [UISplitViewController class]]] setBarTintColor:myTabbedNavBarColor]; In any given view hierarchy the outermost appearance proxy wins. Specificity (depth of the chain) is the tie-breaker. In other words, the containment statement is treated as a partial ordering. Given a concrete ordering (actual subview hierarchy), we select the partial ordering that is the first unique match when reading the actual hierarchy from the window down. API-Since: 5.0 Deprecated-Since: 9.0
        Specified by:
        _appearanceWhenContainedIn in interface UIAppearance
        Overrides:
        _appearanceWhenContainedIn in class UIView
      • appearanceWhenContainedInInstancesOfClasses

        @NotNull
        public static @NotNull PDFView appearanceWhenContainedInInstancesOfClasses​(@NotNull
                                                                                   @NotNull NSArray<?> containerTypes)
      • areAnimationsEnabled

        public static boolean areAnimationsEnabled()
      • areaOfInterestForMouse

        public long areaOfInterestForMouse​(@NotNull
                                           @NotNull UIEvent event)
        Returns type of area (see defines above) mouse is over. This method is useful for subclasses.
      • areaOfInterestForPoint

        public long areaOfInterestForPoint​(CGPoint cursorLocation)
      • autoScales

        public boolean autoScales()
        Toggles mode whereby the scale factor is automatically changed as the view is resized, or rotated, to maximize the PDF displayed. For continuous modes this is a "fit width" behavior, for non-continuous modes it is a "best fit" behavior.
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
      • beginAnimationsContext

        @Deprecated
        public static void beginAnimationsContext​(@Nullable
                                                  @Nullable java.lang.String animationID,
                                                  @Nullable
                                                  @Nullable org.moe.natj.general.ptr.VoidPtr context)
        Deprecated.
      • canGoBack

        public boolean canGoBack()
        Page visitations done via goToFirstPage:, goToLastPage:, goToPage:, etc. methods are recorded with visitation history and can be revisited by executing goBack: or goForward:, much like a web browser. Note that visitiation history also includes all rect, destination, and selection goTo*: methods.
      • canGoForward

        public boolean canGoForward()
      • canGoToFirstPage

        public boolean canGoToFirstPage()
        Simple page navigation methods.
      • canGoToLastPage

        public boolean canGoToLastPage()
      • canGoToNextPage

        public boolean canGoToNextPage()
      • canGoToPreviousPage

        public boolean canGoToPreviousPage()
      • canZoomIn

        public boolean canZoomIn()
      • canZoomOut

        public boolean canZoomOut()
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(@NotNull
                                                                   @NotNull java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(@NotNull
                                                                                 @NotNull java.lang.Object aTarget,
                                                                                 @NotNull
                                                                                 @NotNull org.moe.natj.objc.SEL aSelector,
                                                                                 @Nullable
                                                                                 @Nullable java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        @NotNull
        public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        @NotNull
        public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
      • clearSelection

        public void clearSelection()
        Equivalent to -[PDFView setCurrentSelection: nil].
      • clearTextInputContextIdentifier

        public static void clearTextInputContextIdentifier​(@NotNull
                                                           @NotNull java.lang.String identifier)
      • commitAnimations

        @Deprecated
        public static void commitAnimations()
        Deprecated.
      • convertPointFromPage

        public CGPoint convertPointFromPage​(CGPoint point,
                                            @NotNull
                                            @NotNull PDFPage page)
        Converts a point from page coordinates to view coordinates.
      • convertPointToPage

        public CGPoint convertPointToPage​(CGPoint point,
                                          @NotNull
                                          @NotNull PDFPage page)
        Converts a point from view coordinates to page coordinates.
      • convertRectFromPage

        public CGRect convertRectFromPage​(CGRect rect,
                                          @NotNull
                                          @NotNull PDFPage page)
        Converts a rect from page coordinates to view coordinates.
      • convertRectToPage

        public CGRect convertRectToPage​(CGRect rect,
                                        @NotNull
                                        @NotNull PDFPage page)
        Converts a rect from view coordinates to page coordinates.
      • currentDestination

        @Nullable
        public @Nullable PDFDestination currentDestination()
        Returns a PDFDestination representing the current page and point displayed (see -[currentPage] for more comments).
      • currentPage

        @Nullable
        public @Nullable PDFPage currentPage()
        Returns the current page you are on. For two-up modes, it is the left page (if there are two). For continuous modes, it finds the page crossing a horizontal line halfway between the views top and bottom bounds.
      • currentSelection

        @Nullable
        public @Nullable PDFSelection currentSelection()
        Getter: Returns actual instance of the current PDFSelection object. If you wish to modify this, you should make a copy of the selection returned and modify that instead. Method may return nil if there is no selection. Setter: Set current selection to selection. The view will redraw as necessary. The view will not scroll. Call -[scrollSelectionToVisible:] to scroll to the current selection.
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • delegate

        @Nullable
        public @Nullable PDFViewDelegate delegate()
        -------- delegate
      • description_static

        public static java.lang.String description_static()
      • displayBox

        public long displayBox()
        Specifies the box to display/clip to. Default is kPDFDisplayBoxCropBox.
      • displayDirection

        public long displayDirection()
        Set the layout direction, either vertical or horizontal, for the given display mode Defaults to vertical layout (kPDFDisplayDirectionVertical). API-Since: 11.0
      • displayMode

        public long displayMode()
        See PDFDisplayMode constants above. Default is kPDFDisplaySinglePageContinuous.
      • displaysAsBook

        public boolean displaysAsBook()
        Specifies whether the first page is to be treated as a cover and (for two-up modes) displayed by itself.
      • displaysPageBreaks

        public boolean displaysPageBreaks()
        Toggle displaying or not displaying page breaks (spacing) between pages. This spacing value is defined by the pageBreakMargins property. If displaysPageBreaks is NO, then pageBreakMargins will always return { 0.0, 0.0, 0.0, 0.0 }. Default is YES.
      • displaysRTL

        public boolean displaysRTL()
        Specifies presentation of pages from right-to-left. Defaults to NO. API-Since: 11.0
      • document

        @Nullable
        public @Nullable PDFDocument document()
        Methods for associating a PDFDocument with a PDFView.
      • documentView

        @Nullable
        public @Nullable UIView documentView()
        Returns the innermost view used by PDFView. This is the view representing the displayed document pages.
      • drawPageToContext

        public void drawPageToContext​(@NotNull
                                      @NotNull PDFPage page,
                                      @NotNull
                                      @NotNull CGContextRef context)
        For subclasses. This method is called for each visible page requiring rendering. By subclassing you can draw on top of the PDF page or draw the page entirely yourself. Default implementation erases page to white and calls: [page drawWithBox: [self displayBox] toContext: context]. Note that this may be called multiple times for the same page due to tiling of renderable content. API-Since: 11.0
      • drawPagePostToContext

        public void drawPagePostToContext​(@NotNull
                                          @NotNull PDFPage page,
                                          @NotNull
                                          @NotNull CGContextRef context)
        Also a handy method for sub-classing. Called for post-page rendering. In this method however no scaling/rotating is applied to the current context to map to page-space. The context is in "view-space" coordinates. API-Since: 11.0
      • enableDataDetectors

        public boolean enableDataDetectors()
        Turns on or off data detection. If enabled, page text will be scanned for results such as URL's, addresses, phone numbers, times/dates, etc., as the page becomes visible. Where URL's are found, Link annotations are created in place. These are temporary annotations and are not saved. API-Since: 11.0
      • enablePageShadows

        public void enablePageShadows​(boolean value)
        Specifies if shadows should be drawn around page borders in a PDFView. Defaults to YES. API-Since: 12.0
      • gestureRecognizerShouldRecognizeSimultaneouslyWithGestureRecognizer

        public boolean gestureRecognizerShouldRecognizeSimultaneouslyWithGestureRecognizer​(@NotNull
                                                                                           @NotNull UIGestureRecognizer gestureRecognizer,
                                                                                           @NotNull
                                                                                           @NotNull UIGestureRecognizer otherGestureRecognizer)
        Description copied from interface: UIGestureRecognizerDelegate
        called when the recognition of one of gestureRecognizer or otherGestureRecognizer would be blocked by the other return YES to allow both to recognize simultaneously. the default implementation returns NO (by default no two gestures can be recognized simultaneously) note: returning YES is guaranteed to allow simultaneous recognition. returning NO is not guaranteed to prevent simultaneous recognition, as the other gesture's delegate may return YES
        Specified by:
        gestureRecognizerShouldRecognizeSimultaneouslyWithGestureRecognizer in interface UIGestureRecognizerDelegate
      • gestureRecognizerShouldRequireFailureOfGestureRecognizer

        public boolean gestureRecognizerShouldRequireFailureOfGestureRecognizer​(@NotNull
                                                                                @NotNull UIGestureRecognizer gestureRecognizer,
                                                                                @NotNull
                                                                                @NotNull UIGestureRecognizer otherGestureRecognizer)
        Description copied from interface: UIGestureRecognizerDelegate
        called once per attempt to recognize, so failure requirements can be determined lazily and may be set up between recognizers across view hierarchies return YES to set up a dynamic failure requirement between gestureRecognizer and otherGestureRecognizer note: returning YES is guaranteed to set up the failure requirement. returning NO does not guarantee that there will not be a failure requirement as the other gesture's counterpart delegate or subclass methods may return YES API-Since: 7.0
        Specified by:
        gestureRecognizerShouldRequireFailureOfGestureRecognizer in interface UIGestureRecognizerDelegate
      • gestureRecognizerShouldBegin

        public boolean gestureRecognizerShouldBegin​(@NotNull
                                                    @NotNull UIGestureRecognizer gestureRecognizer)
        Description copied from class: UIView
        called when the recognizer attempts to transition out of UIGestureRecognizerStatePossible if a touch hit-tested to this view will be cancelled as a result of gesture recognition returns YES by default. return NO to cause the gesture recognizer to transition to UIGestureRecognizerStateFailed subclasses may override to prevent recognition of particular gestures. for example, UISlider prevents swipes parallel to the slider that start in the thumb API-Since: 6.0
        Specified by:
        gestureRecognizerShouldBegin in interface UIGestureRecognizerDelegate
        Overrides:
        gestureRecognizerShouldBegin in class UIView
      • goBack

        public void goBack​(@Nullable
                           @Nullable java.lang.Object sender)
      • goForward

        public void goForward​(@Nullable
                              @Nullable java.lang.Object sender)
      • goToDestination

        public void goToDestination​(@NotNull
                                    @NotNull PDFDestination destination)
        Goes to the specified destination.
      • goToFirstPage

        public void goToFirstPage​(@Nullable
                                  @Nullable java.lang.Object sender)
      • goToLastPage

        public void goToLastPage​(@Nullable
                                 @Nullable java.lang.Object sender)
      • goToNextPage

        public void goToNextPage​(@Nullable
                                 @Nullable java.lang.Object sender)
      • goToPage

        public void goToPage​(@NotNull
                             @NotNull PDFPage page)
        Scrolls to page.
      • goToPreviousPage

        public void goToPreviousPage​(@Nullable
                                     @Nullable java.lang.Object sender)
      • goToRectOnPage

        public void goToRectOnPage​(CGRect rect,
                                   @NotNull
                                   @NotNull PDFPage page)
        Goes to the specified rectangle on the specified page. If already visible, does nothing. This allows you to scroll the PDFView to a specific PDFAnnotation or PDFSelection (since both object have bounds methods). Note: rect is specified in page coordinates. Example: You might use this function when tabbing through a form to keep focus on the active element.
      • goToSelection

        public void goToSelection​(@NotNull
                                  @NotNull PDFSelection selection)
        Goes to the specified selection (since selections can be large, goes to the first character of the selection).
      • hash_static

        public static long hash_static()
      • highlightedSelections

        @Nullable
        public @Nullable NSArray<? extends PDFSelection> highlightedSelections()
        The following calls allow you to associate an array of PDFSelections with a PDFView. Unlike the user selection (above), these selections do not go away when the user clicks in the PDFView, etc. You must explicitly remove them by passing nil to -[setHighlightedSelections:]. These methods allow you to highlight text perhaps to indicate matches from a text search. To avoid confusion you should probably make sure the PDFSelections passed in are a different color from the user's default text selection color. Commonly used for highlighting search results. API-Since: 11.0
      • inheritedAnimationDuration

        public static double inheritedAnimationDuration()
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • interpolationQuality

        public long interpolationQuality()
        Allows setting the interpolation quality for images drawn into the PDFView context. API-Since: 11.0
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • isUsingPageViewController

        public boolean isUsingPageViewController()
        API-Since: 11.0
      • keyPathsForValuesAffectingValueForKey

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • layerClass

        @NotNull
        public static @NotNull org.moe.natj.objc.Class layerClass()
      • layoutDocumentView

        public void layoutDocumentView()
        Tells PDFView to calculate (layout) the inner views. Called automatically when -[setDocument] and -[setDisplayBox] are called. You'll need to call this if you add or remove a page on the document, rotate a page etc.
      • maxScaleFactor

        public double maxScaleFactor()
        API-Since: 11.0
      • minScaleFactor

        public double minScaleFactor()
        Set the minimum and maximum scaling factors for the PDF document. Assigning these values will implicitly turn off autoScales, and allows scaleFactor to vary between these min / max scale factors API-Since: 11.0
      • new_objc

        public static PDFView new_objc()
      • pageBreakMargins

        public UIEdgeInsets pageBreakMargins()
        If displaysPageBreaks is enabled, you may customize the spacing between pages by defining margins for the top, bottom, left, and right of each page. Note that pageBreakMargins only allows positive values and will clamp any negative value to 0.0. By default, if displaysPageBreaks is enabled, pageBreakMargins is { 4.75, 4.0, 4.75, 4.0 } (with respect to top, left, bottom, right), otherwise it is { 0.0, 0.0, 0.0, 0.0 } API-Since: 11.0
      • pageForPointNearest

        @Nullable
        public @Nullable PDFPage pageForPointNearest​(CGPoint point,
                                                     boolean nearest)
        Given a point in view coordinates, returns the page at that point. May return nil if no page at point and nearest is NO.
      • pageShadowsEnabled

        public boolean pageShadowsEnabled()
        Specifies if shadows should be drawn around page borders in a PDFView. Defaults to YES. API-Since: 12.0
      • performAction

        public void performAction​(@NotNull
                                  @NotNull PDFAction action)
        Performs the action specified by action. API-Since: 11.0
      • requiresConstraintBasedLayout

        public static boolean requiresConstraintBasedLayout()
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • rowSizeForPage

        public CGSize rowSizeForPage​(@NotNull
                                     @NotNull PDFPage page)
        Handy for initially sizing PDFView. Returns the size needed to display the 'row' of the view's current document containing the specified page at the current scale factor and with the current display attributes.
      • scaleFactor

        public double scaleFactor()
        Method to get / set the current scaling on the displayed PDF document. Default is 1.0 (actual size). Note that the given scaleFactor is clamped by the current min / max scale factors. When using a page view controller layout on iOS, this only affects the currently visible page and is ignored for any future loaded pages. You can observe the PDFViewPageChangedNotification notification to see when new pages are visible to apply new scale factors to them.
      • scaleFactorForSizeToFit

        public double scaleFactorForSizeToFit()
        Regardless of current autoScales mode, this returns the "size to fit" scale factor that autoScales would use for scaling the current document and layout. For continuous modes this is a "fit width" scale, for non-continuous modes it is a "best fit" scale. API-Since: 11.0
      • scrollSelectionToVisible

        public void scrollSelectionToVisible​(@Nullable
                                             @Nullable java.lang.Object sender)
        If the selection is not visible, scrolls view so that it is.
      • selectAll

        public void selectAll​(@Nullable
                              @Nullable java.lang.Object sender)
        Select all text for the entire document, unless in in page view controller mode for iOS, where only the current page is selected.
        Specified by:
        selectAll in interface UIResponderStandardEditActions
        Overrides:
        selectAll in class UIResponder
      • setAnimationBeginsFromCurrentState

        @Deprecated
        public static void setAnimationBeginsFromCurrentState​(boolean fromCurrentState)
        Deprecated.
      • setAnimationCurve

        @Deprecated
        public static void setAnimationCurve​(long curve)
        Deprecated.
      • setAnimationDelay

        @Deprecated
        public static void setAnimationDelay​(double delay)
        Deprecated.
      • setAnimationDelegate

        @Deprecated
        public static void setAnimationDelegate​(@Nullable
                                                @Nullable java.lang.Object delegate)
        Deprecated.
      • setAnimationDidStopSelector

        @Deprecated
        public static void setAnimationDidStopSelector​(@Nullable
                                                       @Nullable org.moe.natj.objc.SEL selector)
        Deprecated.
      • setAnimationDuration_static

        @Deprecated
        public static void setAnimationDuration_static​(double duration)
        Deprecated.
      • setAnimationRepeatAutoreverses

        @Deprecated
        public static void setAnimationRepeatAutoreverses​(boolean repeatAutoreverses)
        Deprecated.
      • setAnimationRepeatCount_static

        @Deprecated
        public static void setAnimationRepeatCount_static​(float repeatCount)
        Deprecated.
      • setAnimationStartDate

        @Deprecated
        public static void setAnimationStartDate​(@NotNull
                                                 @NotNull NSDate startDate)
        Deprecated.
      • setAnimationTransitionForViewCache

        @Deprecated
        public static void setAnimationTransitionForViewCache​(long transition,
                                                              @NotNull
                                                              @NotNull UIView view,
                                                              boolean cache)
        Deprecated.
      • setAnimationWillStartSelector

        @Deprecated
        public static void setAnimationWillStartSelector​(@Nullable
                                                         @Nullable org.moe.natj.objc.SEL selector)
        Deprecated.
      • setAnimationsEnabled

        public static void setAnimationsEnabled​(boolean enabled)
      • setAutoScales

        public void setAutoScales​(boolean value)
        Toggles mode whereby the scale factor is automatically changed as the view is resized, or rotated, to maximize the PDF displayed. For continuous modes this is a "fit width" behavior, for non-continuous modes it is a "best fit" behavior.
      • setBackgroundColor

        public void setBackgroundColor​(@NotNull
                                       @NotNull UIColor value)
        Default is a 50% gray.
        Overrides:
        setBackgroundColor in class UIView
      • setCurrentSelection

        public void setCurrentSelection​(@Nullable
                                        @Nullable PDFSelection value)
        Getter: Returns actual instance of the current PDFSelection object. If you wish to modify this, you should make a copy of the selection returned and modify that instead. Method may return nil if there is no selection. Setter: Set current selection to selection. The view will redraw as necessary. The view will not scroll. Call -[scrollSelectionToVisible:] to scroll to the current selection.
      • setCurrentSelectionAnimate

        public void setCurrentSelectionAnimate​(@Nullable
                                               @Nullable PDFSelection selection,
                                               boolean animate)
        Like -[setCurrentSelection:] above but with the additional parameter that specifies whether setting the selection should be animated. The animation draws the user's attention to the new selection. Useful when searching. API-Since: 11.0
      • setDelegate_unsafe

        public void setDelegate_unsafe​(@Nullable
                                       @Nullable PDFViewDelegate value)
        -------- delegate
      • setDelegate

        public void setDelegate​(@Nullable
                                @Nullable PDFViewDelegate value)
        -------- delegate
      • setDisplayBox

        public void setDisplayBox​(long value)
        Specifies the box to display/clip to. Default is kPDFDisplayBoxCropBox.
      • setDisplayDirection

        public void setDisplayDirection​(long value)
        Set the layout direction, either vertical or horizontal, for the given display mode Defaults to vertical layout (kPDFDisplayDirectionVertical). API-Since: 11.0
      • setDisplayMode

        public void setDisplayMode​(long value)
        See PDFDisplayMode constants above. Default is kPDFDisplaySinglePageContinuous.
      • setDisplaysAsBook

        public void setDisplaysAsBook​(boolean value)
        Specifies whether the first page is to be treated as a cover and (for two-up modes) displayed by itself.
      • setDisplaysPageBreaks

        public void setDisplaysPageBreaks​(boolean value)
        Toggle displaying or not displaying page breaks (spacing) between pages. This spacing value is defined by the pageBreakMargins property. If displaysPageBreaks is NO, then pageBreakMargins will always return { 0.0, 0.0, 0.0, 0.0 }. Default is YES.
      • setDisplaysRTL

        public void setDisplaysRTL​(boolean value)
        Specifies presentation of pages from right-to-left. Defaults to NO. API-Since: 11.0
      • setDocument

        public void setDocument​(@Nullable
                                @Nullable PDFDocument value)
        Methods for associating a PDFDocument with a PDFView.
      • setEnableDataDetectors

        public void setEnableDataDetectors​(boolean value)
        Turns on or off data detection. If enabled, page text will be scanned for results such as URL's, addresses, phone numbers, times/dates, etc., as the page becomes visible. Where URL's are found, Link annotations are created in place. These are temporary annotations and are not saved. API-Since: 11.0
      • setHighlightedSelections

        public void setHighlightedSelections​(@Nullable
                                             @Nullable NSArray<? extends PDFSelection> value)
        The following calls allow you to associate an array of PDFSelections with a PDFView. Unlike the user selection (above), these selections do not go away when the user clicks in the PDFView, etc. You must explicitly remove them by passing nil to -[setHighlightedSelections:]. These methods allow you to highlight text perhaps to indicate matches from a text search. To avoid confusion you should probably make sure the PDFSelections passed in are a different color from the user's default text selection color. Commonly used for highlighting search results. API-Since: 11.0
      • setInterpolationQuality

        public void setInterpolationQuality​(long value)
        Allows setting the interpolation quality for images drawn into the PDFView context. API-Since: 11.0
      • setMaxScaleFactor

        public void setMaxScaleFactor​(double value)
        API-Since: 11.0
      • setMinScaleFactor

        public void setMinScaleFactor​(double value)
        Set the minimum and maximum scaling factors for the PDF document. Assigning these values will implicitly turn off autoScales, and allows scaleFactor to vary between these min / max scale factors API-Since: 11.0
      • setPageBreakMargins

        public void setPageBreakMargins​(UIEdgeInsets value)
        If displaysPageBreaks is enabled, you may customize the spacing between pages by defining margins for the top, bottom, left, and right of each page. Note that pageBreakMargins only allows positive values and will clamp any negative value to 0.0. By default, if displaysPageBreaks is enabled, pageBreakMargins is { 4.75, 4.0, 4.75, 4.0 } (with respect to top, left, bottom, right), otherwise it is { 0.0, 0.0, 0.0, 0.0 } API-Since: 11.0
      • setScaleFactor

        public void setScaleFactor​(double value)
        Method to get / set the current scaling on the displayed PDF document. Default is 1.0 (actual size). Note that the given scaleFactor is clamped by the current min / max scale factors. When using a page view controller layout on iOS, this only affects the currently visible page and is ignored for any future loaded pages. You can observe the PDFViewPageChangedNotification notification to see when new pages are visible to apply new scale factors to them.
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • usePageViewControllerWithViewOptions

        public void usePageViewControllerWithViewOptions​(boolean enable,
                                                         @Nullable
                                                         @Nullable NSDictionary<?,​?> viewOptions)
        Changes the underlying scroll view to use a UIPageViewController as a way to layout and navigate pages. Note that you can change the orientation via -[PDFView setDisplayDirection:], and that the property -[PDFView displayMode] is ignored: layout is always assumed single page continuous. The viewOptions argument is given to the UIPageViewController initializer, as a way to pass in page spacing, etc. API-Since: 11.0
      • userInterfaceLayoutDirectionForSemanticContentAttribute

        public static long userInterfaceLayoutDirectionForSemanticContentAttribute​(long attribute)
      • userInterfaceLayoutDirectionForSemanticContentAttributeRelativeToLayoutDirection

        public static long userInterfaceLayoutDirectionForSemanticContentAttributeRelativeToLayoutDirection​(long semanticContentAttribute,
                                                                                                            long layoutDirection)
      • version_static

        public static long version_static()
      • visiblePages

        @NotNull
        public @NotNull NSArray<? extends PDFPage> visiblePages()
        Returns an array of PDFPage objects representing the currently visible pages. May return empty array if no document is assigned. API-Since: 11.0
      • zoomIn

        public void zoomIn​(@Nullable
                           @Nullable java.lang.Object sender)
        Zooming changes the scaling by root-2.
      • zoomOut

        public void zoomOut​(@Nullable
                            @Nullable java.lang.Object sender)
      • findInteraction

        @NotNull
        public @NotNull UIFindInteraction findInteraction()
        If `findInteractionEnabled` is set to true, returns the receiver's built-in find interaction. Otherwise, nil. API-Since: 16.0
      • findInteractionDidBeginFindSession

        public void findInteractionDidBeginFindSession​(@NotNull
                                                       @NotNull UIFindInteraction interaction,
                                                       @NotNull
                                                       @NotNull UIFindSession session)
        Description copied from interface: UIFindInteractionDelegate
        Called when the search operation begins (and the system search UI appears). This would be a good time to decorate your view to indicate that a search operation is about to occur. System text elements will apply a dimming view around all non-highlighted search results, for instance.
        Specified by:
        findInteractionDidBeginFindSession in interface UIFindInteractionDelegate
      • isFindInteractionEnabled

        public boolean isFindInteractionEnabled()
        Enables the built-in find interaction. API-Since: 16.0
      • isInMarkupMode

        public boolean isInMarkupMode()
        If YES, page overlay views will be hit tested and therefore receive gestures. If NO, PDFView will receive gestures, namely those for text selection. API-Since: 16.0
      • setFindInteractionEnabled

        public void setFindInteractionEnabled​(boolean value)
        Enables the built-in find interaction. API-Since: 16.0
      • setInMarkupMode

        public void setInMarkupMode​(boolean value)
        If YES, page overlay views will be hit tested and therefore receive gestures. If NO, PDFView will receive gestures, namely those for text selection. API-Since: 16.0
      • setPageOverlayViewProvider_unsafe

        public void setPageOverlayViewProvider_unsafe​(@Nullable
                                                      @Nullable PDFPageOverlayViewProvider value)
        API-Since: 16.0
      • setPageOverlayViewProvider

        public void setPageOverlayViewProvider​(@Nullable
                                               @Nullable PDFPageOverlayViewProvider value)
        API-Since: 16.0
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.