• Resolved bartezzini

    (@bartezzini)


    Greetings,
    I want to hide the download button in pdf.js:
    I tried with custom css
    button#openFile {display:none !important;}
    with custom js
    $(function(){ $(‘#download’).hide();});
    and trying to remove button directly from viewer.html
    but none of them seem to working.
    Is there anyway to do it?
    Thanks a lot

Viewing 1 replies (of 1 total)
  • Plugin Author arisoft

    (@arisoft)

    Hello

    Code in “Custom JS” will not work because PDF viewer is loaded into IFRAME (not main window) only when open the lightbox with a PDF document. Code form “Custom JS” is executed on main page.

    It should be enough to remove/hide button in viewer.html. If it doesn’t work, try to clean browser’s cache.

    If nothing helps, please specify a link where possible to see the problem so we can investigate it in more details.

Viewing 1 replies (of 1 total)

The topic ‘Remove Download button with pdf.js’ is closed to new replies.