Open volosovich opened 3 months ago
I'm also having this issue.
@volosovich @EthanDavis , Did you find any alternative solution for this.? if yes, Kindly help me.
I'm also experiencing this issue.
<span>
, where I believe it should be rendered as an <a href="...">
import 'react-pdf/dist/Page/AnnotationLayer.css';
<Document file={pdfFile} options={pdfReaderOptions}>
<Page
devicePixelRatio={devicePixelRatio}
height={paneStyle.height}
onGetAnnotationsError={(error) => console.log("error: ", error)}
onRenderAnnotationLayerError={(error) => console.log("error: ", error)}
onRenderAnnotationLayerSuccess={(success) => console.log("success: ", success)}
pageNumber={documentControl.currentPage}
renderAnnotationLayer={true}
renderTextLayer={true}
/>
</Document>
and it is
@wojtekmaj - please let me know if you'd like more context, is this an issue you are working to resolve?
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
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
Expected behavior
Links should be links and should be opened in the browser.
Actual behavior
Links are not clickable.
Additional information
No response
Environment