Class PDFSelection

All Implemented Interfaces:
NSObjectProtocol, ObjCProtocol

public class PDFSelection
extends NSObject
Since:
Available in iOS 11.0 and later.
  • Constructor Details

    • PDFSelection

      public PDFSelection()
    • PDFSelection

      protected PDFSelection​(NSObject.Handle h, long handle)
    • PDFSelection

      protected PDFSelection​(NSObject.SkipInit skipInit)
    • PDFSelection

      public PDFSelection​(PDFDocument document)
      Since:
      Available in iOS 11.0 and later.
  • Method Details

    • getPages

      public NSArray<PDFPage> getPages()
    • getColor

      public UIColor getColor()
      Since:
      Available in iOS 11.0 and later.
    • setColor

      public void setColor​(UIColor v)
      Since:
      Available in iOS 11.0 and later.
    • getString

      public String getString()
    • getAttributedString

      public NSAttributedString getAttributedString()
    • init

      protected long init​(PDFDocument document)
      Since:
      Available in iOS 11.0 and later.
    • boundsForPage

      public CGRect boundsForPage​(PDFPage page)
    • numberOfTextRangesOnPage

      public long numberOfTextRangesOnPage​(PDFPage page)
      Since:
      Available in iOS 11.0 and later.
    • range

      public NSRange range​(long index, PDFPage page)
      Since:
      Available in iOS 11.0 and later.
    • selectionsByLine

      public NSArray<PDFSelection> selectionsByLine()
      Since:
      Available in iOS 11.0 and later.
    • addSelection

      public void addSelection​(PDFSelection selection)
    • addSelections

      public void addSelections​(NSArray<PDFSelection> selections)
      Since:
      Available in iOS 11.0 and later.
    • extendSelectionAtEnd

      public void extendSelectionAtEnd​(long succeed)
    • extendSelectionAtStart

      public void extendSelectionAtStart​(long precede)
    • extendSelectionForLineBoundaries

      public void extendSelectionForLineBoundaries()
      Since:
      Available in iOS 11.0 and later.
    • draw

      public void draw​(PDFPage page, boolean active)
    • draw

      public void draw​(PDFPage page, PDFDisplayBox box, boolean active)