# Is it possible to disable the 'create links from URLs' behaviour in PDF.js Express Viewer?

**URL:** <https://pdfjs.community/t/is-it-possible-to-disable-the-create-links-from-urls-behaviour-in-pdf-js-express-viewer/1258>\
**Category:** Technical Support\
**Created:** [December 16, 2021, 6:31pm UTC](https://pdfjs.community/t/is-it-possible-to-disable-the-create-links-from-urls-behaviour-in-pdf-js-express-viewer/1258 "2021-12-16T18:31:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nickmyersdt](https://yyz1.discourse-cdn.com/flex031/user_avatar/pdfjs.community/nickmyersdt/32/628_2.png) [@nickmyersdt](https://pdfjs.community/u/nickmyersdt)\
**Post date:** [December 16, 2021, 6:31pm UTC](https://pdfjs.community/t/is-it-possible-to-disable-the-create-links-from-urls-behaviour-in-pdf-js-express-viewer/1258/1 "2021-12-16T18:31:17Z")

</div>

**Which product are you using?**  
PDF.js Express Viewer

**PDF.js Express Version**  
@pdftron/pdfjs-express-viewer: 8.1.1

**Detailed description of issue**  
FYI - This happens in the ‘full Adobe Acrobat Pro DC’ client unless Preferences \> General \> Create links from URLs is disabled.

When displaying a text container with a string of text that looks like a URL (e.g. [www.google.com](http://www.google.com)) the viewer is turning that text into a clickable link.

We’d like to disable this behaviour if possible, as we want to include the information but not provide a clickable link to a third party website.

**Desired behaviour**  
Text strings that are also URLs are not rendered as clickable links and are rendered as plain text.

**Does your issue happen with every document, or just one?**  
Every document

**Link to document**  
Behind paywall I’m afraid

**Code snippet**  
I don’t think any code is required, if you add the text [www.google.com](http://www.google.com) to a PDF and view it through PDF.js Express Viewer, it will be displayed as a clickable link.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/1X/ffbcd25c7d423db8d5acd5db201c272f4db306dd.png) [@system](https://pdfjs.community/u/system)\
**Post date:** [December 16, 2021, 6:31pm UTC](https://pdfjs.community/t/is-it-possible-to-disable-the-create-links-from-urls-behaviour-in-pdf-js-express-viewer/1258/3 "2021-12-16T18:31:23Z")

</div>

**Hello, I’m Ron, an automated tech support bot 🤖**

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

Guides:
- [Adding your license key](https://pdfjs.express/documentation/get-started-viewer/add-license-key)
- [PDF.js Express Viewer Overview - What is PDF.js Express Viewer?](https://pdfjs.express/documentation/get-started-viewer#what-is-pdf.js-express-viewer?)
- [Manually download and integrate PDF.js Express Viewer - Integrate into your application](https://pdfjs.express/documentation/get-started-viewer/manually#integrate-into-your-application)

APIs:
- [PDF.js Express Utilities](https://pdfjs.express/api/utils/index.html#__anchor)
- [Core - setCustomFontURL(url)](https://pdfjs.express/api/Core.html#.setCustomFontURL__anchor)
- [ExpressUtils(optionsopt) - # async set() → {Promise.}](https://pdfjs.express/api/utils/ExpressUtils.html#set__anchor)

Forums:
- [Navigating to a certain pdf page number using Hyperlinks on the pdf file not working on pdfjs webviewer](https://pdfjs.community/t/navigating-to-a-certain-pdf-page-number-using-hyperlinks-on-the-pdf-file-not-working-on-pdfjs-webviewer/1234/1)
- [Text combing not working](https://pdfjs.community/t/text-combing-not-working/1172/1)
- [Internal links don’t work in PDF.js Express viewer](https://pdfjs.community/t/internal-links-dont-work-in-pdf-js-express-viewer/1168/1)

---

<div class="post-metadata">

**Author:** ![Logan](https://yyz1.discourse-cdn.com/flex031/user_avatar/pdfjs.community/logan/32/13_2.png) [@Logan](https://pdfjs.community/u/Logan)\
**Post date:** [January 4, 2022, 3:09pm UTC](https://pdfjs.community/t/is-it-possible-to-disable-the-create-links-from-urls-behaviour-in-pdf-js-express-viewer/1258/4 "2022-01-04T15:09:29Z")

</div>

Hey there and happy new years! Sorry for the long delay - most the team was on vacation for the holidays.

You can disable automatic linking with [this api](https://pdfjs.express/api/Core.DocumentViewer.html#disableAutomaticLinking__anchor).

Thanks!  
Logan
