# Open pdf in Glide

**URL:** <https://community.glideapps.com/t/open-pdf-in-glide/20700>\
**Category:** Ask for Help\
**Created:** [January 4, 2021, 2:28pm UTC](https://community.glideapps.com/t/open-pdf-in-glide/20700 "2021-01-04T14:28:47Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![icanpiano](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/icanpiano/32/18236_2.png) [@icanpiano](https://community.glideapps.com/u/icanpiano)\
**Post date:** [January 4, 2021, 2:28pm UTC](https://community.glideapps.com/t/open-pdf-in-glide/20700/1 "2021-01-04T14:28:47Z")

</div>

I have pdf files in Glide app. When one clicks a pdf in the phon-app it saves the pdf but do not open it. How can I make the pdf open and not just save?

---

<div class="post-metadata">

**Author:** ![raghav\_khandelwal](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/raghav_khandelwal/32/12492_2.png) [@raghav\_khandelwal](https://community.glideapps.com/u/raghav_khandelwal)\
**Post date:** [January 4, 2021, 2:34pm UTC](https://community.glideapps.com/t/open-pdf-in-glide/20700/2 "2021-01-04T14:34:37Z")

</div>

Try using a web view component if you are using a pro app.  
Also you can use open link action to view pdf.

---

<div class="post-metadata">

**Author:** ![icanpiano](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/icanpiano/32/18236_2.png) [@icanpiano](https://community.glideapps.com/u/icanpiano)\
**Post date:** [January 4, 2021, 2:36pm UTC](https://community.glideapps.com/t/open-pdf-in-glide/20700/3 "2021-01-04T14:36:44Z")

</div>

I’m nit using a pro app at the moment.  
What is open link? I can see ‘link’ only in glide app.

---

<div class="post-metadata">

**Author:** ![icanpiano](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/icanpiano/32/18236_2.png) [@icanpiano](https://community.glideapps.com/u/icanpiano)\
**Post date:** [January 4, 2021, 2:51pm UTC](https://community.glideapps.com/t/open-pdf-in-glide/20700/4 "2021-01-04T14:51:36Z")

</div>

Ok. Found it. It works the same. It ask me to save it. No way to see it.

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [January 4, 2021, 3:18pm UTC](https://community.glideapps.com/t/open-pdf-in-glide/20700/5 "2021-01-04T15:18:40Z")

</div>

Are you using an action to open the document link in a new window? Is it a file you uploaded to your storage?

---

<div class="post-metadata">

**Author:** ![icanpiano](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/icanpiano/32/18236_2.png) [@icanpiano](https://community.glideapps.com/u/icanpiano)\
**Post date:** [January 4, 2021, 3:31pm UTC](https://community.glideapps.com/t/open-pdf-in-glide/20700/6 "2021-01-04T15:31:20Z")

</div>

I’m using an action. It’s a file which is stored in my server. I inserted the link to google sheet.

---

<div class="post-metadata">

**Author:** ![Jacktools\_Net](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jacktools_net/32/18500_2.png) [@Jacktools\_Net](https://community.glideapps.com/u/Jacktools_Net)\
**Post date:** [January 4, 2021, 3:54pm UTC](https://community.glideapps.com/t/open-pdf-in-glide/20700/7 "2021-01-04T15:54:31Z")

</div>

I think this depends on your browser settings. When you download the file there is a menu beside the Filename. There you can choose to open the file-type automatically.

![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/b/8/b8e12839eed477df60bb868781ddfee4ebfe4ad9.png)

---

<div class="post-metadata">

**Author:** ![icanpiano](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/icanpiano/32/18236_2.png) [@icanpiano](https://community.glideapps.com/u/icanpiano)\
**Post date:** [January 4, 2021, 4:14pm UTC](https://community.glideapps.com/t/open-pdf-in-glide/20700/8 "2021-01-04T16:14:54Z")

</div>

I use xiaomi smartphone. Please see the attached pic.  
I only have an option to save the pdf.

 ![Screenshot_2021-01-04-18-09-51-634_com.mi.globalbrowser](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/2/b/2ba47355aee13dbe59c78df218e9cd3e84295641.jpeg)

---

<div class="post-metadata">

**Author:** ![Jacktools\_Net](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jacktools_net/32/18500_2.png) [@Jacktools\_Net](https://community.glideapps.com/u/Jacktools_Net)\
**Post date:** [January 4, 2021, 5:49pm UTC](https://community.glideapps.com/t/open-pdf-in-glide/20700/9 "2021-01-04T17:49:00Z")

</div>

If you have the backend under control this looks interesting [https://stackoverflow.com/questions/6293893/how-do-i-force-files-to-open-in-the-browser-instead-of-downloading-pdf](https://stackoverflow.com/questions/6293893/how-do-i-force-files-to-open-in-the-browser-instead-of-downloading-pdf)

---

<div class="post-metadata">

**Author:** ![icanpiano](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/icanpiano/32/18236_2.png) [@icanpiano](https://community.glideapps.com/u/icanpiano)\
**Post date:** [January 4, 2021, 6:31pm UTC](https://community.glideapps.com/t/open-pdf-in-glide/20700/10 "2021-01-04T18:31:23Z")

</div>

Thanks.  
I’ll try to talk to them. However, If I try to open the same file from Gmail, It downloads it and opens right away. If I send it through What’sUp it does the same whether I put it in my server or in google drive.  
When Glide is running on my laptop browser it opens in the browser.  
So… I think it has to do with Glide code rather than my server but I’ll give it a try.

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [January 4, 2021, 11:47pm UTC](https://community.glideapps.com/t/open-pdf-in-glide/20700/11 "2021-01-04T23:47:24Z")

</div>

So it seems like your link forces a download, isn’t it? Is there a way to configure the link so that it opens in the web and not forcing a download?

---

<div class="post-metadata">

**Author:** ![Drearystate](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/drearystate/32/49605_2.png) [@Drearystate](https://community.glideapps.com/u/Drearystate)\
**Post date:** [January 8, 2021, 9:07pm UTC](https://community.glideapps.com/t/open-pdf-in-glide/20700/12 "2021-01-08T21:07:35Z")

</div>

I did this for an employee manual. I just divided the pdf into sheets and named them sheet 1, sheet 2, sheet 3, etc. listed them as images and because the sheet names are similar it allows to cascade through it like a book. If you want you can take a look at one of my Christmas Templates it has this on there as well.

> **[Santa's Puzzle](https://habitual-chess-7702.glideapp.io/)**

---

<div class="post-metadata">

**Author:** ![icanpiano](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/icanpiano/32/18236_2.png) [@icanpiano](https://community.glideapps.com/u/icanpiano)\
**Post date:** [January 9, 2021, 5:18am UTC](https://community.glideapps.com/t/open-pdf-in-glide/20700/13 "2021-01-09T05:18:28Z")

</div>

thanks.  
I tried to do that. I used the ‘Open link’ and put 2 images, One image at column ‘image1’ and one image at column ‘image2’. I only got the first one opened. There is no linkage between the 2 images.  
You wrote that you named the images by the same name. How can you do that? The name/link is giving by the google sheet database.  
I wonder if that’s what you did.

---

<div class="post-metadata">

**Author:** ![Krivo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/krivo/32/5363_2.png) [@Krivo](https://community.glideapps.com/u/Krivo)\
**Post date:** [January 9, 2021, 7:48am UTC](https://community.glideapps.com/t/open-pdf-in-glide/20700/14 "2021-01-09T07:48:58Z")

</div>

@icanpiano when you have named them image1, image2,… then there will automatically be created a new variable image and this one you can assign to an image component and then an image carousel is created for you where you can scroll between the different pages/images.

Notice through how many pages you put in - the size of all the images could be very large and make your app crash - but you probably need to add hundreds

---

<div class="post-metadata">

**Author:** ![Krivo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/krivo/32/5363_2.png) [@Krivo](https://community.glideapps.com/u/Krivo)\
**Post date:** [January 9, 2021, 7:53am UTC](https://community.glideapps.com/t/open-pdf-in-glide/20700/15 "2021-01-09T07:53:48Z")

</div>

@icanpiano i did a random lookup page app. Take a look if you feel like it

> [@Play random cards (pdf) to remember cognitive biases](https://community.glideapps.com/t/play-random-cards-pdf-to-remember-cognitive-biases/18273):
>
> Just want to share a simple app with you - it can help you learn and understand cognitive bias. It has a simple play functionality where a random cognitive bias is shown everytime you click “a card” Url: [https://cognitive-bias.glideapp.io/](https://cognitive-bias.glideapp.io/) The app is copyable - so take a look under the hood. Inspired by a micro-site ( [https://joachimblicher.dk/pick-a-bias/](https://joachimblicher.dk/pick-a-bias/)) done by Joachim Blicher Another app focusing on cognitive biases is: [https://pocket-biases.glideapp.io/](https://pocket-biases.glideapp.io/)

---

<div class="post-metadata">

**Author:** ![icanpiano](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/icanpiano/32/18236_2.png) [@icanpiano](https://community.glideapps.com/u/icanpiano)\
**Post date:** [January 11, 2021, 10:57am UTC](https://community.glideapps.com/t/open-pdf-in-glide/20700/16 "2021-01-11T10:57:40Z")

</div>

> [@Krivo](#):
>
> hrough ho

Making pictures out of the pdf files don’t work for me since I can’t control the picture size as a user. It should match the whole screen and have the ability to enlarge it like a pdf. I tried it but the size is fixed.

---

<div class="post-metadata">

**Author:** ![Krivo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/krivo/32/5363_2.png) [@Krivo](https://community.glideapps.com/u/Krivo)\
**Post date:** [January 11, 2021, 7:37pm UTC](https://community.glideapps.com/t/open-pdf-in-glide/20700/17 "2021-01-11T19:37:34Z")

</div>

@icanpiano it is unclear to me what you really want to achieve. Possibly if you put more words one the need it would help to give suggestions.

Do you want to open the pdf and then be able to scroll through the document (vertically/horizontally)?  
Do you want to show one page and then by clicking on a button and then more to a new page  
Do you want to enlarge the page in order to be able to read the text easiers  
etc

You know, you can put an action on an image “Enlarge image” - and thereby allow you to enlarge the image.

---

<div class="post-metadata">

**Author:** ![icanpiano](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/icanpiano/32/18236_2.png) [@icanpiano](https://community.glideapps.com/u/icanpiano)\
**Post date:** [January 18, 2021, 1:09pm UTC](https://community.glideapps.com/t/open-pdf-in-glide/20700/18 "2021-01-18T13:09:25Z")

</div>

Krivo, All I want is that pdf files will automatically open when they are clicked.

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [January 18, 2021, 2:05pm UTC](https://community.glideapps.com/t/open-pdf-in-glide/20700/19 "2021-01-18T14:05:00Z")

</div>

Try something like this. It works for me, a lot of the time, but sometimes I have issue with it opening the PDF and I have to try a second or third time before it finally opens… There might be other services out there where you could wrap the pdf url with the service url, but I haven’t looked.

> [@Black screen when try to enlarge image](https://community.glideapps.com/t/black-screen-when-try-to-enlarge-image/15687/19):
>
> point_up_2:t2 What he said. Using https instead of http would have been my suggestion. Also maybe the ‘Open Web View’ action as an option, but I have issues with that going full zoom without the option to pinch zoom, so have used “Open Link” instead, which opens the image externally with full control to zoom. Works fine for me on android, but from what I’ve read, ‘Open Link’ isn’t as friendly with IOS devices. Haven’t tested it, so I don’t know. Just another thought for viewing external c…

> [@Black screen when try to enlarge image](https://community.glideapps.com/t/black-screen-when-try-to-enlarge-image/15687/21):
>
> I believe this is where I found the info: I set up a template column like this: https://docs.google.com/viewer?embedded=true&url={Document} And then I have a replacement set up to replace {Document} with the url of the PDF. I also have it set up to show images and website links, so right now I also have an If Then column set up to search for ‘.PDF’ in the url and if it has it, then I use the wrapped version of the URL. Otherwise I just use the URL in it’s original form. Just a word of c…
