# PDF open issue with PDFJS express

**URL:** <https://pdfjs.community/t/pdf-open-issue-with-pdfjs-express/1331>\
**Category:** Technical Support\
**Created:** [January 28, 2022, 4:27am UTC](https://pdfjs.community/t/pdf-open-issue-with-pdfjs-express/1331 "2022-01-28T04:27:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![arman](https://avatars.discourse-cdn.com/v4/letter/a/258eb7/32.png) [@arman](https://pdfjs.community/u/arman)\
**Post date:** [January 28, 2022, 4:27am UTC](https://pdfjs.community/t/pdf-open-issue-with-pdfjs-express/1331/1 "2022-01-28T04:27:10Z")

</div>

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

**PDF.js Express Version**  
8.0.1

**Detailed description of issue**  
I have some valid URLs which PDFJS can’t open.

**Expected behavior**  
Actually, I have a lot of valid PDF URLs. Expected behavior open PDF with the listed URL.

**Does your issue happen with every document, or just one?**  
Not for every URL.

**Link to document**

1. [https://journals.plos.org/plosone/article/file?id=10.1371/journal.pone.0230503&type=printable](https://journals.plos.org/plosone/article/file?id=10.1371/journal.pone.0230503&type=printable)
2. [[0810.3252] High Energy Sources Observed with OMC](https://arxiv.org/abs/0810.3252)
3. [https://core.ac.uk/download/335344838.pdf](https://core.ac.uk/download/335344838.pdf)
4. [http://europepmc.org/backend/ptpmcrender.fcgi?accid=PMC5325212&blobtype=pdf](http://europepmc.org/backend/ptpmcrender.fcgi?accid=PMC5325212&blobtype=pdf)

**Code snippet**

```javascript
initializeWebViewer = () => {
    WebViewer(
      {
        path: '/static/pdfexpress',
        initialDoc: this.props.initialDoc,
        disableFlattenedAnnotations: true,
        disabledElements: [
          'ribbons'
          // 'textPopup',
          // 'toggleNotesButton',
        ],
        licenseKey: '##############'
      },
      this.viewerRef.current
    ).then(instance => {)

```

---

<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:** [January 28, 2022, 4:27am UTC](https://pdfjs.community/t/pdf-open-issue-with-pdfjs-express/1331/3 "2022-01-28T04:27:15Z")

</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:
- [Basic searching](https://pdfjs.express/documentation/search/basic-search.8)
- [API for Annotating PDFs With PDF.js Express](https://pdfjs.express/documentation/annotation/api)
- [PDF.js Express API Errors - Errors](https://pdfjs.express/documentation/utils/errors#errors)

APIs:
- [PDF.js Express Utilities](https://pdfjs.express/api/utils/index.html#__anchor)
- [ExpressUtils(optionsopt) - # async extract() → {Promise.}](https://pdfjs.express/api/utils/ExpressUtils.html#extract__anchor)
- [Core.Annotations.Forms.EmbeddedJS](https://pdfjs.express/api/Core.Annotations.Forms.EmbeddedJS.html#__anchor)

Forums:
- [Undefined is not a valid destination type](https://pdfjs.community/t/undefined-is-not-a-valid-destination-type/809/1)
- [How to hide and unhide thumbnail pages on button click?](https://pdfjs.community/t/how-to-hide-and-unhide-thumbnail-pages-on-button-click/1197/1)
- [Enable annotations to be moved using arrow keys](https://pdfjs.community/t/enable-annotations-to-be-moved-using-arrow-keys/602/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 28, 2022, 3:38pm UTC](https://pdfjs.community/t/pdf-open-issue-with-pdfjs-express/1331/4 "2022-01-28T15:38:40Z")

</div>

Hey there,

1, 2 & 4) This is not an issue with PDF.js Express, but is an issue with the server serving this files. It does not allow cross origin requests and therefore the file cannot be downloaded by Express.

1. I can load this file with no issues

Thanks!  
Logan
