/    Sign up×
Community /Pin to ProfileBookmark

How to make PDF link

Hi,

First I’d like to preface my post by stating I am a total newbie, so my web building skills are pretty weak (but I am working on it).

I’d like to know how to make a button on a webpage that will open a PDF then allow the reader the option of downloading it. Does anyone have suggestions for links, or tutorials on how to do this?

Thanks in advance.

to post a comment
Full-stack Developer

5 Comments(s)

Copy linkTweet thisAlerts:
@kralcxDec 14.2013 — <a href="pdflink.pdf">Open Me I'm A PDF File</a>
Copy linkTweet thisAlerts:
@rootDec 14.2013 — <a href="pdflink.pdf"[B] target="blank"[/B]>title of PDF</a>
Copy linkTweet thisAlerts:
@cessanfranciscoauthorDec 21.2013 — Thanks!

That worked prefectly. I noticed that different browsers have different behavior. For example, in Firefox, the PDF opens in a new tab, in Chromium the PDF is by default downloaded, and in Opera I am given the option of either viewing the PDF or downloading. Is there a way to make the behavior uniform/consitent across all browswers, or is this simply the nature of the beast, so to speak?

Thanks again!
Copy linkTweet thisAlerts:
@kralcxDec 22.2013 — Thanks!

That worked prefectly. I noticed that different browsers have different behavior. For example, in Firefox, the PDF opens in a new tab, in Chromium the PDF is by default downloaded, and in Opera I am given the option of either viewing the PDF or downloading. Is there a way to make the behavior uniform/consitent across all browswers, or is this simply the nature of the beast, so to speak?

Thanks again![/QUOTE]


the user controls how they receive pdf files in their browser setting (that is the way it should be), however if you are stubborn and want to try and override the user's control read this article

http://www.thingy-ma-jig.co.uk/blog/06-08-2007/force-a-pdf-to-download
Copy linkTweet thisAlerts:
@mariamincey64Jan 07.2014 — thanks kralcx
×

Success!

Help @cessanfrancisco spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...