hugo-embed-pdf-shortcode icon indicating copy to clipboard operation
hugo-embed-pdf-shortcode copied to clipboard

Users can view PDFs but preventing them the download

Open nicfab opened this issue 1 year ago • 2 comments

Is your feature request related to a problem? Please describe. Sometimes allowing users only to view some PDFs is preferable, preventing them from downloading them. Sometimes you may want to share PDFs, but you want to prevent the download for various reasons.

Describe the solution you'd like So, you can implement the plugin code with a feature that allows avoiding downloading PDFs. In that way, PDFs can remain "embedded" in the webpage, and users can only view them page by page, but they should not be allowed to download PDFs. It's like a security mode.

I much appreciate it if you consider this suggestion soon. See issue #26

nicfab avatar Mar 18 '23 06:03 nicfab

@nicfab Working on this. Will try to implement and push this soon.

anvithks avatar Mar 20 '23 03:03 anvithks

I needed this feature so created a fix as per this disable_download branch. Not sure if you are currently in process or can contribute if needed, thanks

sjhloco avatar Dec 22 '23 09:12 sjhloco