# Embed a Google Doc Pdf

**URL:** <https://forums.realmacsoftware.com/t/embed-a-google-doc-pdf/40115>\
**Category:** RapidWeaver Classic\
**Created:** [July 27, 2021, 10:26am UTC](https://forums.realmacsoftware.com/t/embed-a-google-doc-pdf/40115 "2021-07-27T10:26:40Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![sitebuilder](https://avatars.discourse-cdn.com/v4/letter/s/b77776/32.png) [@sitebuilder](https://forums.realmacsoftware.com/u/sitebuilder)\
**Post date:** [July 27, 2021, 10:26am UTC](https://forums.realmacsoftware.com/t/embed-a-google-doc-pdf/40115/1 "2021-07-27T10:26:40Z")

</div>

Hello

I was looking around to embed a pdf that I have on my google drive. So I used the iframe code and replaced FILE-URL with the sharig URL that I got of my drive. However, it first gave me an error (an empty frame) and now it is giving me a soup of letters. Any idea what I should do? I am using RW vanilla without Stacks

---

<div class="post-metadata">

**Author:** ![joemart1951](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/joemart1951/32/1193_2.png) [@joemart1951](https://forums.realmacsoftware.com/u/joemart1951)\
**Post date:** [July 27, 2021, 11:35am UTC](https://forums.realmacsoftware.com/t/embed-a-google-doc-pdf/40115/2 "2021-07-27T11:35:58Z")

</div>

Get Stacks!!! Save yourself lots of headaches.  
Then get @joeworkman PDF Embed stack.

---

<div class="post-metadata">

**Author:** ![teefers](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/teefers/32/8173_2.png) [@teefers](https://forums.realmacsoftware.com/u/teefers)\
**Post date:** [July 27, 2021, 12:36pm UTC](https://forums.realmacsoftware.com/t/embed-a-google-doc-pdf/40115/3 "2021-07-27T12:36:16Z")

</div>

Without seeing the code or a URL to what you have done, it’s impossible to say.

---

<div class="post-metadata">

**Author:** ![sitebuilder](https://avatars.discourse-cdn.com/v4/letter/s/b77776/32.png) [@sitebuilder](https://forums.realmacsoftware.com/u/sitebuilder)\
**Post date:** [July 27, 2021, 3:04pm UTC](https://forums.realmacsoftware.com/t/embed-a-google-doc-pdf/40115/4 "2021-07-27T15:04:52Z")

</div>

I took instuctions from [Embed Google Docs document and PDF files within your web page – Web Notes and Ramblings](https://jonathancamp.com/2018/07/31/embed-google-docs-document-within-your-web-page/)

ok, so I put a placeholder pdf for now on my Drive. URL is [https://drive.google.com/file/d/1N3QV30sBLjY4w2ewSK6t3mmiW9HRuWDo/view?usp=sharing](https://drive.google.com/file/d/1N3QV30sBLjY4w2ewSK6t3mmiW9HRuWDo/view?usp=sharing) Everybody with the link can see it.

Then I replaced FILE-URL (see below) with the google drive link. But that does not give me a result.

---

<div class="post-metadata">

**Author:** ![teefers](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/teefers/32/8173_2.png) [@teefers](https://forums.realmacsoftware.com/u/teefers)\
**Post date:** [July 27, 2021, 3:19pm UTC](https://forums.realmacsoftware.com/t/embed-a-google-doc-pdf/40115/5 "2021-07-27T15:19:13Z")

</div>

Can’t see the code in your post. Need to see it to help.

When you post code on the forum you need to mark it as pre-formatted text \</\>.

---

<div class="post-metadata">

**Author:** ![sitebuilder](https://avatars.discourse-cdn.com/v4/letter/s/b77776/32.png) [@sitebuilder](https://forums.realmacsoftware.com/u/sitebuilder)\
**Post date:** [July 27, 2021, 3:22pm UTC](https://forums.realmacsoftware.com/t/embed-a-google-doc-pdf/40115/6 "2021-07-27T15:22:57Z")

</div>

```
<iframe src="https://docs.google.com/viewer?embedded=true&url=FILE_URL" style="width: 100%; height: 400px; border: none;"></iframe>
```

---

<div class="post-metadata">

**Author:** ![teefers](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/teefers/32/8173_2.png) [@teefers](https://forums.realmacsoftware.com/u/teefers)\
**Post date:** [July 27, 2021, 11:27pm UTC](https://forums.realmacsoftware.com/t/embed-a-google-doc-pdf/40115/7 "2021-07-27T23:27:09Z")

</div>

The instructions you are following show this update

> _ **Update 20180820:** _  
> The following link does not work any more. BUT the methods below do! Do not go to this address just follow the instructions.  
> The document viewer ~~[https://docs.google.com/viewer](https://docs.google.com/viewer)~~ (link is bad now, but the instructions below work…) has two parameters:

So the iframe viewer the code you’re showing doesn’t work any longer.

---

<div class="post-metadata">

**Author:** ![sitebuilder](https://avatars.discourse-cdn.com/v4/letter/s/b77776/32.png) [@sitebuilder](https://forums.realmacsoftware.com/u/sitebuilder)\
**Post date:** [July 27, 2021, 11:50pm UTC](https://forums.realmacsoftware.com/t/embed-a-google-doc-pdf/40115/8 "2021-07-27T23:50:25Z")

</div>

Ok, I thought that referred to the pdf he had linked. I think the easiest will be to have the pdf as a file on my website. With a size of 145kb, I don’t think I will run into bandwidth exceeded messages.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/system/32/25301_2.png) [@system](https://forums.realmacsoftware.com/u/system)\
**Post date:** [August 27, 2021, 9:50am UTC](https://forums.realmacsoftware.com/t/embed-a-google-doc-pdf/40115/9 "2021-08-27T09:50:32Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
