Jump to content

Force PDF download instead of showing it...


Thetcm
 Share

This topic is 4364 days old. Please don't post here. Open a new topic instead.

Recommended Posts

I'm working on a mobile version of our website for iPhone, Blackberry and Android. The iPhone is perfect because I can just show the PDF in a web page like I do on a regular browser. Blackberry and Android devices are kind of a pain because they don't support in-browser PDF reading. You have to save them and read them with a third party PDF reader.

The problem is that by using the method in Jonathan Stark's book (pdf.php?-url="pdf field information" then $fm->getContainerData($_GET["-url"])Wink you show a PDF, so the Blackberry and Android just fail when I click on my link.

Is there a way to actually force the saving of a PDF instantly by clicking on a link? It would also be useful for Firefox Mac, which also doesn't have a built-in PDF reader.

Thanks!

Link to comment
Share on other sites

This topic is 4364 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.