# ...PDF question

**URL:** https://forum.kirupa.com/t/pdf-question/16593
**Category:** Uncategorized
**Created:** [March 26, 2003, 4:30pm UTC](https://forum.kirupa.com/t/pdf-question/16593 "2003-03-26T16:30:13Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![Mr\_Craig](https://avatars.discourse-cdn.com/v4/letter/m/eada6e/32.png) [@Mr\_Craig](https://forum.kirupa.com/u/Mr_Craig)
#### Post date: [March 26, 2003, 4:30pm UTC](https://forum.kirupa.com/t/pdf-question/16593/1 "2003-03-26T16:30:13Z")

</div>

:rd:

Hi,  
…I dont want to insult any bodies intelligence… but, I would like to know how people can download a PDF file from my web site…  
Thats it!

How do you do it?

Cheers

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 26, 2003, 4:39pm UTC](https://forum.kirupa.com/t/pdf-question/16593/2 "2003-03-26T16:39:14Z")

</div>

upload the PDF to your server, then link to it. That’s all!  
I’d mention that the link will download a PDF. Giving the byte size is also a thoughtful gesture for us dial-uppers.  
You may also want to include a link to download the free Acrobat reader in case they don’t have it.  
Cheers,  
JC

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 26, 2003, 5:08pm UTC](https://forum.kirupa.com/t/pdf-question/16593/3 "2003-03-26T17:08:05Z")

</div>

okay… thats cool, I havn’t started putting it on to a server yet, is there something I can do in the mean on my computer, so I can show people a test site.

… Im thinking I should create a PDF button yeah, then… on release, but what action after that?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 26, 2003, 5:24pm UTC](https://forum.kirupa.com/t/pdf-question/16593/4 "2003-03-26T17:24:49Z")

</div>

If you’re wanting to add a PDF button to a flash site rather than just an html link (which i think is what you’re after), you can just use code like this:

on(release){  
getURL(“images/map.pdf”, “\_blank”);  
}

well, i did and it works ok 🙂  
Obviously, instead of the images/map.pdf you would add your own relative path to the pdf file you want to open!

Hope this is of some help,  
Dave

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 26, 2003, 5:24pm UTC](https://forum.kirupa.com/t/pdf-question/16593/5 "2003-03-26T17:24:50Z")

</div>

use getURL:

```php

on(press){
        getURL("../../path_to_file.pdf", "_blank");
}

```

As long as your PDF file is in the same folder as your Flash movie, you can simply put the name of the PDF for the path, i.e. path\_to\_file.PDF

\_blank will open the file in a new window.

is that what you are looking for?  
🙂  
jcs

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 26, 2003, 5:25pm UTC](https://forum.kirupa.com/t/pdf-question/16593/6 "2003-03-26T17:25:23Z")

</div>

talk about timing, jcs 🙂

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 26, 2003, 5:29pm UTC](https://forum.kirupa.com/t/pdf-question/16593/7 "2003-03-26T17:29:44Z")

</div>

You may have one small problem though,  
that is if the user has Acrobat Reader installed,  
the pdf will not download, but open in the browser (plug-in)!  
Of course they can then still click on the save button, and  
at least they get to see what it is before, it might just not be what you want…  
check out [www.flash2pdf.com](http://www.flash2pdf.com) …soooo cool!!

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 26, 2003, 5:41pm UTC](https://forum.kirupa.com/t/pdf-question/16593/8 "2003-03-26T17:41:25Z")

</div>

BigDave are you stalking me? 😉 … lol

Eyez - that site is neat-o! Thanks for the tip!

jcs

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 26, 2003, 6:17pm UTC](https://forum.kirupa.com/t/pdf-question/16593/9 "2003-03-26T18:17:58Z")

</div>

you could always zip the pdf as well…

most people would download the zip file and then open the pdf locally…

that way it won’t open in the browser window as stated by eyezberg

::::: AnOraK :::::

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 26, 2003, 8:03pm UTC](https://forum.kirupa.com/t/pdf-question/16593/10 "2003-03-26T20:03:28Z")

</div>

Hey! Cheers JCS! Its working beautifully… and that thread from Joe is dead useful too. Infact all the stuff you four guys have wrote, has been most cool!  
Cheers  
🙂

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 26, 2003, 8:19pm UTC](https://forum.kirupa.com/t/pdf-question/16593/11 "2003-03-26T20:19:29Z")

</div>

glad to hear it.  
😛
