Jump to content
Pete Foulkes

Embed PDF hide download button

Recommended Posts

Hi all,

Was just wondering if anyone has some code that could hide the download button of the PDF widget?

I do like the presentation mode feature that comes in the same drop-down menu, however, I would be willing to sacrifice this as I suspect it will be too difficult to hide individual menu items rather than the whole menu?

Many thanks in advance,

Pete

 

frogdownloadbutton.png

Share this post


Link to post
Share on other sites

I've moved this to coding, as there's no option in the widget settings for hiding the download.

Can I ask what the problem with the download button is?  Anyone who knows a little about web browsers would be able to download a PDF even without the button.

Share this post


Link to post
Share on other sites

I think the PDF viewer is an external library that we use, so I don't know how easy it will be to remove that option. If I get a moment I'll have a look and see if there is anything we can do.

Share this post


Link to post
Share on other sites

A staff member wanted to upload a resource he's purchased onto a site but didn't want others obtaining a copy. There are those who would know how to find the file sure, but the average user wouldn't know. 

If it's external then I'll just tell him it can't be done as it's probably more trouble than it's worth for you guys.

Many thanks

Share this post


Link to post
Share on other sites

How about this method:

  1. Add a File Drop widget to the page
  2. Set it to Group instead of Individual
  3. Upload the PDF
  4. On the link provided, right-click and copy the link of the file
  5. Add an HTML widget to the page
  6. Paste the following code:
<embed src="YOUR FILE URL" width="600" height="500" alt="pdf" pluginspage="http://www.adobe.com/products/acrobat/readstep2.html">
  • Paste in the URL of the PDF copied in Step 4
  • Delete the end of the URL (this bit in bold):
    https://frog.yourschool.co.uk/app/file/resource/207A2FE3200305070F469F2A58647E050FE85AFCFC230269/?mode=download
  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...