# Can I use pdf.js to serve my site pdf uploads

**URL:** https://meta.discourse.org/t/can-i-use-pdf-js-to-serve-my-site-pdf-uploads/301499
**Category:** Support
**Created:** [March 29, 2024, 1:49pm UTC](https://meta.discourse.org/t/can-i-use-pdf-js-to-serve-my-site-pdf-uploads/301499 "2024-03-29T13:49:05Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![MrAli](https://avatars.discourse-cdn.com/v4/letter/m/7ea924/32.png) [@MrAli](https://meta.discourse.org/u/MrAli)
#### Post date: [March 29, 2024, 1:49pm UTC](https://meta.discourse.org/t/can-i-use-pdf-js-to-serve-my-site-pdf-uploads/301499/1 "2024-03-29T13:49:05Z")

</div>

Hello everyone

i am using [Inline PDF Previews](https://meta.discourse.org/t/157649) #pdf-previews #Customization > Theme component  
but i got 3 issue  
[Inline PDF Previews - #138 by MrAli](https://meta.discourse.org/t/inline-pdf-previews/157649/138)

1. 

```
How to show PDF for everyone “login or not”

```

2. 

```
Can i show PDFs from external URLs

```

3. 

```
Why if user click on the PDF link it’s well auto download instead of open it in the URL  

```

> [@Instead of downloading PDF, how to force PDF to open/view in browser only?](https://meta.discourse.org/t/167435):
>
> Whenever I upload a PDF, it shows in the topic as follows: [image] I’m using Inline PDF to display it in Desktop version. But, in mobile Inline PDF won’t work. Further, Google or other search engines autodetect the PDF files, but whenever the user clicks on those results, the PDF download dialogue will appear instead of opening in a tab. This is a bit unfriendly and most of the users prefer to view the PDF online instead of downloading it at a place and opening. Is there any solution to this? …

So can i use pdf.js instead of #pdf-previews

> **[GitHub - mozilla/pdf.js: PDF Reader in JavaScript](https://github.com/mozilla/pdf.js)**
>
> PDF Reader in JavaScript

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [March 29, 2024, 2:06pm UTC](https://meta.discourse.org/t/can-i-use-pdf-js-to-serve-my-site-pdf-uploads/301499/2 "2024-03-29T14:06:35Z")

</div>

Maybe you want to fork inline previews to use `pdf.js`?
