# Open PDF Document in Web Embed Link

**URL:** <https://community.glideapps.com/t/open-pdf-document-in-web-embed-link/73065>\
**Category:** Ask for Help\
**Created:** [May 4, 2024, 10:09am UTC](https://community.glideapps.com/t/open-pdf-document-in-web-embed-link/73065 "2024-05-04T10:09:50Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![pepewaio](https://avatars.discourse-cdn.com/v4/letter/p/e0b2c6/32.png) [@pepewaio](https://community.glideapps.com/u/pepewaio)\
**Post date:** [May 4, 2024, 10:09am UTC](https://community.glideapps.com/t/open-pdf-document-in-web-embed-link/73065/1 "2024-05-04T10:09:50Z")

</div>

Dear Community and Support,

We wanted to open and view a PDF in a Web Embed component, and not to allow user to download or click on the pop-out to avoid downloading in a browser setting

 ![removepop-up](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/d/1/d153c1d5ad095287f83bfe2283b51474ba37b9b0.jpeg)

We have use the following but in vain:

 ![code](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/b/0/b0e5b1a18c2f738a5595f88d3766af63ae438215.jpeg)

Any suggestions and advise will be most appreciated!

---

<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:** [May 4, 2024, 11:54am UTC](https://community.glideapps.com/t/open-pdf-document-in-web-embed-link/73065/2 "2024-05-04T11:54:07Z")

</div>

Technically if anyone’s willing to deep dive a bit into the source code, that URL is presented even when you hide the button. Do you still want to hide the button?

---

<div class="post-metadata">

**Author:** ![pepewaio](https://avatars.discourse-cdn.com/v4/letter/p/e0b2c6/32.png) [@pepewaio](https://community.glideapps.com/u/pepewaio)\
**Post date:** [May 4, 2024, 12:01pm UTC](https://community.glideapps.com/t/open-pdf-document-in-web-embed-link/73065/3 "2024-05-04T12:01:30Z")

</div>

Hi hi… thanks for your reply!

Yes hiding the button will help. Tried

still doesn’t help.

Have tried an image component to open this link but user can right click and save as png picture file  
[https://drive.google.com/file/d/{@}/view?usp=drivesdk](https://drive.google.com/file/d/%7B@%7D/view?usp=drivesdk)

I remember in the Classic App, there’s an option to open link in Webview. But now there’s no more such options!

Not sure if using custom CSS helps.

---

<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:** [May 4, 2024, 12:02pm UTC](https://community.glideapps.com/t/open-pdf-document-in-web-embed-link/73065/4 "2024-05-04T12:02:11Z")

</div>

Do you have access to custom CSS?

---

<div class="post-metadata">

**Author:** ![pepewaio](https://avatars.discourse-cdn.com/v4/letter/p/e0b2c6/32.png) [@pepewaio](https://community.glideapps.com/u/pepewaio)\
**Post date:** [May 4, 2024, 12:05pm UTC](https://community.glideapps.com/t/open-pdf-document-in-web-embed-link/73065/5 "2024-05-04T12:05:52Z")

</div>

Yes I think so. Is this the one:

 ![css](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/a/1/a1ad46f37b346759c7f53f097d95376d17159e8a.jpeg)

Ours is business plan

---

<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:** [May 4, 2024, 1:23pm UTC](https://community.glideapps.com/t/open-pdf-document-in-web-embed-link/73065/6 "2024-05-04T13:23:47Z")

</div>

I tried using CSS to disable it but seems like the iframe loads after the code. I haven’t been able to use `display:none` to hide it.

What if you just disable downloading on the Drive file instead?

---

<div class="post-metadata">

**Author:** ![ichilddev](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/ichilddev/32/45179_2.png) [@ichilddev](https://community.glideapps.com/u/ichilddev)\
**Post date:** [May 4, 2024, 4:09pm UTC](https://community.glideapps.com/t/open-pdf-document-in-web-embed-link/73065/7 "2024-05-04T16:09:04Z")

</div>

I tried to change Drive folder access . But the component won’t even load

---

<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:** [May 5, 2024, 12:55am UTC](https://community.glideapps.com/t/open-pdf-document-in-web-embed-link/73065/8 "2024-05-05T00:55:47Z")

</div>

I mean restricting on the file level, not the folder.

You can follow this walk through.

> **[Prevent Google Drive files from being downloaded, printed, and copied](https://florbs.io/prevent-files-in-google-drive-from-being-downloaded-printed-and-copied/)**
>
> Let's dive into the nitty-gritty of file protection in Google Drive, explore how to go beyond the basic settings to ensure your files remain single copies.

---

<div class="post-metadata">

**Author:** ![pepewaio](https://avatars.discourse-cdn.com/v4/letter/p/e0b2c6/32.png) [@pepewaio](https://community.glideapps.com/u/pepewaio)\
**Post date:** [May 5, 2024, 4:49am UTC](https://community.glideapps.com/t/open-pdf-document-in-web-embed-link/73065/9 "2024-05-05T04:49:44Z")

</div>

Thanks for your advise! Checking on the details and hope it works!

---

<div class="post-metadata">

**Author:** ![pepewaio](https://avatars.discourse-cdn.com/v4/letter/p/e0b2c6/32.png) [@pepewaio](https://community.glideapps.com/u/pepewaio)\
**Post date:** [May 7, 2024, 6:10am UTC](https://community.glideapps.com/t/open-pdf-document-in-web-embed-link/73065/10 "2024-05-07T06:10:17Z")

</div>

Unfortunately changing the file access right manually may not work in the long run. Checking with Florbs if they provide API support on this.

Thanks for your assistance and really appreciate your time and effort!

---

<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:** [May 7, 2024, 1:31pm UTC](https://community.glideapps.com/t/open-pdf-document-in-web-embed-link/73065/11 "2024-05-07T13:31:59Z")

</div>

Can you explain why it would not work in the long run?

---

<div class="post-metadata">

**Author:** ![pepewaio](https://avatars.discourse-cdn.com/v4/letter/p/e0b2c6/32.png) [@pepewaio](https://community.glideapps.com/u/pepewaio)\
**Post date:** [May 7, 2024, 11:53pm UTC](https://community.glideapps.com/t/open-pdf-document-in-web-embed-link/73065/12 "2024-05-07T23:53:27Z")

</div>

Since we cannot change the access rights of the files, we need to go into the drive folder to update each uploaded pdf file access right manually.

 ![Setting for Each File](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/6/7/67d1d7428cb3805709ee83b1dd82fe5ff19071ed.jpeg)

We need to standby and monitor any new file uploaded by the users.
