# PDF Viewer plugin

**URL:** <https://forum.bubble.io/t/pdf-viewer-plugin/131804>\
**Category:** Plugins\
**Created:** [January 21, 2021, 1:36pm UTC](https://forum.bubble.io/t/pdf-viewer-plugin/131804 "2021-01-21T13:36:40Z")\
**Posts on this page:** 7\
**Page:** 2

<div class="post-metadata">

**Author:** ![dr.sumit.periwal](https://avatars.discourse-cdn.com/v4/letter/d/eb9ed0/32.png) [@dr.sumit.periwal](https://forum.bubble.io/u/dr.sumit.periwal)\
**Post date:** [January 6, 2024, 10:58am UTC](https://forum.bubble.io/t/pdf-viewer-plugin/131804/24 "2024-01-06T10:58:54Z")

</div>

But I have put my own client ID. Could you show me your implementation how you have put it in the HTML element.

---

<div class="post-metadata">

**Author:** ![nebg](https://avatars.discourse-cdn.com/v4/letter/n/53a042/32.png) [@nebg](https://forum.bubble.io/u/nebg)\
**Post date:** [January 12, 2024, 9:16am UTC](https://forum.bubble.io/t/pdf-viewer-plugin/131804/25 "2024-01-12T09:16:50Z")

</div>

Here is the full implementation, all this just pasted into the HTML element.

```auto
<html>
<head>
 <title>CV Preview</title>
 <meta charset="utf-8"/>
 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
 <meta id="viewport" name="viewport" content="width=device-width, initial-scale=1"/>
</head>
<body style="margin: 0px">
 <div id="adobe-dc-view"></div>
 <script src="https://acrobatservices.adobe.com/view-sdk/viewer.js"></script>
 <script type="text/javascript">
    document.addEventListener("adobe_dc_view_sdk.ready", function()
    {
        var adobeDCView = new AdobeDC.View({clientId: " **YOUR_CLIENT_ID_HERE**", divId: "adobe-dc-view"});
        adobeDCView.previewFile(
       {
          content: {location: {url: " **YOUR_URL_HERE**"}},
          metaData: {fileName: " **YOUR_FILE_NAME_HERE**", hasReadOnlyAccess: "True"}
       });
    });
 </script>
</body>

```

---

<div class="post-metadata">

**Author:** ![dr.sumit.periwal](https://avatars.discourse-cdn.com/v4/letter/d/eb9ed0/32.png) [@dr.sumit.periwal](https://forum.bubble.io/u/dr.sumit.periwal)\
**Post date:** [January 12, 2024, 10:03am UTC](https://forum.bubble.io/t/pdf-viewer-plugin/131804/26 "2024-01-12T10:03:26Z")

</div>

Have you put this entire code inside the HTML element of [bubble.io](http://bubble.io). Because when I am doing that, it shows blank.

When I am putting the code that is there within the body ie div and script, it loads and shows the pdf and the viewer for fraction of second and then disappears( both the pdf and the viewer disappear)

---

<div class="post-metadata">

**Author:** ![datasetmatchllc](https://avatars.discourse-cdn.com/v4/letter/d/58956e/32.png) [@datasetmatchllc](https://forum.bubble.io/u/datasetmatchllc)\
**Post date:** [January 13, 2024, 2:26am UTC](https://forum.bubble.io/t/pdf-viewer-plugin/131804/27 "2024-01-13T02:26:53Z")

</div>

Likewise, it flickers for a second then disappears.

---

<div class="post-metadata">

**Author:** ![accts](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/accts/32/170410_2.png) [@accts](https://forum.bubble.io/u/accts)\
**Post date:** [October 10, 2024, 12:55am UTC](https://forum.bubble.io/t/pdf-viewer-plugin/131804/28 "2024-10-10T00:55:20Z")

</div>

Trying to use the adobe embed API.  
Having difficulty linking to the files in the html element.  
Can someone help? Have an example?  
Thanks  
Here is where I am.

 ![Screenshot 2024-10-09 175436](https://us1.discourse-cdn.com/bubble/original/3X/f/d/fda61d091e75eb1e297e025d4b7113bb0509b22e.jpeg)

---

<div class="post-metadata">

**Author:** ![lindsay\_knowcode](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/lindsay_knowcode/32/92967_2.png) [@lindsay\_knowcode](https://forum.bubble.io/u/lindsay_knowcode)\
**Post date:** [October 10, 2024, 6:47am UTC](https://forum.bubble.io/t/pdf-viewer-plugin/131804/29 "2024-10-10T06:47:09Z")

</div>

What you are possibly missing is registering with Adobe (it’s free) to use the embed SDK.

There are instructions on this plug-in page of how to do that - you can likely just paste the code and a viewer will work but you need to register with Adobe.

[https://pdf-annotations-adobe.bubbleapps.io/version-test](https://pdf-annotations-adobe.bubbleapps.io/version-test)  
has instructions on how to setup and register with Adobe here (you don’t need to use the plugin, but it has a lot of helpful setup advice)

This plugin is also for annotating pdfs, saving the pdf files to Bubble and viewing - using the Adobe embed SDK…

---

<div class="post-metadata">

**Author:** ![Dimo](https://avatars.discourse-cdn.com/v4/letter/d/e9a140/32.png) [@Dimo](https://forum.bubble.io/u/Dimo)\
**Post date:** [August 6, 2025, 2:55pm UTC](https://forum.bubble.io/t/pdf-viewer-plugin/131804/30 "2025-08-06T14:55:44Z")

</div>

Hi @honara.io ,

I also use PDF Viewer, but I’m having problems with CORS as well. Have you found any solutions for this?

[Previous page](https://forum.bubble.io/t/pdf-viewer-plugin/131804.md?page=1)
