wojtekmaj / react-pdf

Display PDFs in your React app as easily as if they were images.
https://projects.wojtekmaj.pl/react-pdf
MIT License
9.54k stars 895 forks source link

Links are not rendered #1857

Open volosovich opened 3 months ago

volosovich commented 3 months ago

Before you start - checklist

Description

I'm using react-pdf in my project on next.js 14 and my pdf file contains a list of links that are not rendered as links. 222.pdf A file with an example is attached to this description. There is no problem with links in a PDF file if I open it directly in the browser or any specific PDF reader tool

Steps to reproduce

  1. use your sample next-app in the repo
  2. change sample.pdf from your example to the provided file
  3. Try to click links

Expected behavior

Links should be links and should be opened in the browser.

Actual behavior

Links are not clickable.

Additional information

No response

Environment

EthanDavis commented 3 months ago

I'm also having this issue.

Nagavijay-beachbody commented 3 months ago

@volosovich @EthanDavis , Did you find any alternative solution for this.? if yes, Kindly help me.

rgarfield11 commented 2 months ago

I'm also experiencing this issue.

image

@wojtekmaj - please let me know if you'd like more context, is this an issue you are working to resolve?

BarbaraPruz commented 1 week ago

We are also having this problem and on inspection, see the empty <a> element. We've imported the annotation layer styles css. We are using react-pdf 8.0.2 with react 18.2.0.. I also tried with latest react-pdf 9.1.1