Hyperlinks not being detected in pdf.js viewer

Which product are you using?
PDF.js Express Viewer

PDF.js Express Version

Detailed description of issue
When a pdf is viewed in the pdf.js express viewer, hyperlinks or embedded links in the pdf are not clickable. If the same file is opened in acrobat viewer or the browser, clicking on a hyperlink in the pdf opens the corresponding web page in a browser window.

Expected behaviour
Clicking on a hyperlink in the pdf should open the URL in a browser window.

Does your issue happen with every document, or just one?
All documents

Link to document

Code snippet
{Provide a relevant code snippet}

1 Like

Hello, I’m Ron, an automated tech support bot :robot:

While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:

Guides:APIs:Forums:

Hello Shruti,

Looking at the document there are no annotations present. Have you imported them or merged the XFDF with the document? See: Importing and exporting annotations | Documentation

If you could also provide the document here for testing, that would help!

Best regards,
Tyler Gordon
Web Development Support Engineer
PDFTron

Hello,

Links are annotations, which are not supported in the PDFJS Express Viewer, if you switch between Viewer and Plus you can see the Link annotations are working in the Plus version:

Best regards,
Tyler Gordon
Web Development Support Engineer
PDFTron