diegomura / diegomura/react-pdf
Destinations don't work for single page documents in Mac's default PDF viewer
- Dominant language
- TypeScript
- Stars
- 16.8k
- Forks
- 1.3k
- Avg merge
- 5h 6m
- Merged PRs (30d)
- 52
Description
Document navigation (destinations) don't work for single page documents when using the Mac's default PDF viewer. Instead of scrolling to the linked destination, it always scrolls to the top of the page. Consider this code and the file generated with it:
```
Link
target
```
[bc3a1610-154c-4984-bf13-93a3d92eb770.pdf](https://github.com/user-attachments/files/16159614/bc3a1610-154c-4984-bf13-93a3d92eb770.pdf)
**To Reproduce**
1. Open the generated PDF with the default Mac's viewer.
2. Click the anchor link.
**Expected behavior**
It should scroll down to its destination.
**Desktop (please complete the following information):**
- OS: MacOS Sonoma
- React-pdf version: 3.1.12
Contributor guide
Assessment
This issue has not been assessed yet.