-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide option to allow users to download the PDF file #27
Comments
Thank you. |
Hi there,
The author of this blog, @SuryaThiru seemed to find the solution, maybe you want to have a look to the code?
Please take the time to report here if you find a solution, and I may submit a PR |
I tried, but it didn't work for me. |
I'm having a look right now. The relevant commit is here: SuryaThiru/portfolio@dc1d16b Note that the PDF url is hardcoded, I would like to avoid that. I'll report here if I find a way |
Thank you. |
This should be fixed with a |
Solved with replacing the line 63 with
This update is included in this fork: https://github.com/RoneoOrg/hugo-shortcode-roneo-embed-pdf I will use it to check if everything works fine, and will push a PR. Please feel free to ping me in a month if I do not provide this PR |
I understand that it is sufficient to put the following folders locally:
Is it so? Is the only files and folders to add locally? |
Yes that's it. I personally use Hugo's Theme Component, it's a little bit harder to set up but easier to update |
More info could be useful to help debugging |
* fix URL and load pdf.js * git cherry-pick bc6286d: Add a download button. Reference: #27 * Download button: improve CSS * Download button: Do not depend on Font-awesome and replace with a SVG * Download button: Improve a11y: add aria-label * Download button: Improve CSS + SVG * Retained only download button code --------- Co-authored-by: Anvith KS <[email protected]>
What?
Provide a option to allow the user to download the PDF file.
Why?
Sometimes I need to publish PDF in “secure mode” (I mean that people don’t have to can downloading the PDF); other times, I need to publish PDF allowing people to download.
Currently, I seem that it isn’t possible to download the PDF; am I wrong?
Originally posted by @nicfab in #26 (comment)
The text was updated successfully, but these errors were encountered: