• Resolved kervadecg

    (@kervadecg)


    Hello,

    I want to hide the download button for some pdf.
    I tried to include download=”off”. To do so, I switched the WP Gutengerg editor from visual to code but I did not succeed in adding this download parameter.

    For a Premium customer, how to hide the download button ?

    Thanks for your support

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @kervadecg,

    For this you will need to use the Classic block instead of the PDF Embedder block. Embed the PDF using the Add Media button and choose the Embed Directly option. This will insert the shortcode in an editable format. Then simply add the download attribute to the shortcode. The final result will look like:

    [pdf-embedder url="path-to-pdf.pdf" download="off"]

    Keep in mind that should the visitor wish, they could still download the PDF by visiting the page source code. The only way to prevent direct access would be with the PDF Embedder Secure that encrypts the document and blocks direct URL access by any means other than the embedded viewer.

    If you have any other questions, please feel free to send an email to [email protected] as we may not see messages posted here to respond in a timely fashion.

    • This reply was modified 3 years, 3 months ago by PDFG Support. Reason: typo
    Thread Starter kervadecg

    (@kervadecg)

    Thank you, great !
    It’s working now.
    It should be perfect if this option is implemented in the block editor.

    Hi @kervadecg,

    Glad to hear that worked for you! A download on/off toggle has been put forward to the developer for a feature improvement of the block editor.??

    @wppdfsupport
    this feature download=”off” its exclusive for Premium members?
    Also, can we deactivate the rigth click “save image as”, and “copy image” options when you right click?
    Let me know!
    thanks

    • This reply was modified 2 years, 11 months ago by halfaro.

    Hi @halfaro,

    The download option (displaying a download button in the toolbar) is a Premium feature and can be set as a default within the plugin settings and additionally be toggled on|off using the shortcode attribute you noted.

    The right+click mouse behaviour can be blocked with the PDF Embedder Secure plugin (you do not need to buy both the Premium and Secure versions as the Secure version has all the Premium features plus the extra security options.). Please see https://wp-pdf.com/secure/.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Hiding download button when using PDF Embedder Premium’ is closed to new replies.