---
title: Document Interactions
framework: pdfkit
role: collectionGroup
role_heading: API Collection
path: pdfkit/document-interactions
---

# Document Interactions

Handle selections, work with annotation actions, convert page and view points, and work with mouse events in a document.

## Topics

### Handling Selections

- [currentSelection](pdfkit/pdfview/currentselection.md)
- [setCurrentSelection(_:animate:)](pdfkit/pdfview/setcurrentselection(_:animate:).md)
- [selectAll(_:)](pdfkit/pdfview/selectall(_:).md)
- [clearSelection()](pdfkit/pdfview/clearselection().md)
- [copy(_:)](pdfkit/pdfview/copy(_:).md)
- [scrollSelectionToVisible(_:)](pdfkit/pdfview/scrollselectiontovisible(_:).md)
- [highlightedSelections](pdfkit/pdfview/highlightedselections.md)

### Working with Annotation Actions

- [annotationsChanged(on:)](pdfkit/pdfview/annotationschanged(on:).md)
- [Link Annotations](pdfkit/link-annotations.md)

### Converting Page and View Points

- [page(for:nearest:)](pdfkit/pdfview/page(for:nearest:).md)
- [convert(_:to:)](pdfkit/pdfview/convert(_:to:)-9twqk.md)
- [convert(_:to:)](pdfkit/pdfview/convert(_:to:)-8cp0c.md)
- [convert(_:from:)](pdfkit/pdfview/convert(_:from:)-4evlx.md)
- [convert(_:from:)](pdfkit/pdfview/convert(_:from:)-9xv1z.md)

### Working with Mouse Position and Events

- [areaOfInterest(forMouse:)](pdfkit/pdfview/areaofinterest(formouse:).md)
- [areaOfInterest(for:)](pdfkit/pdfview/areaofinterest(for:).md)
- [PDFAreaOfInterest](pdfkit/pdfareaofinterest.md)
- [setCursorFor(_:)](pdfkit/pdfview/setcursorfor(_:).md)
- [perform(_:)](pdfkit/pdfview/perform(_:).md)
- [Drag Operations](pdfkit/drag-operations.md)
