PDF Viewer Remove Toolbar Elements from Template

Posted by: ianm on 25 October 2017, 10:42 pm EST

    • Post Options:
    • Link

    Posted 25 October 2017, 10:42 pm EST

    I need to remove certain buttons and sections of the Pdf Viewer, can this be accomplished? I’ve been looking into the ```

    applyTemplate()

  • Posted 25 October 2017, 10:46 pm EST

    could this also be a means to change the icons in the elements as well? to say material icons…

  • Posted 26 October 2017, 7:44 am EST

    Hi Ian,

    We are investigating the issue and update you as we get any update.

    ~Manish

  • Posted 26 October 2017, 2:30 pm EST

    After digging deeper, it looks like the ```

    _toolbar

  • Posted 26 October 2017, 9:28 pm EST

    
    a[command-tag="1"] {
      display: none;
    }
    
    a[command-tag="28"] {
      display: none;
    }
    

    CSS is the only way to currently remove the items. Alternative means suggested through a ticket.

  • Posted 27 October 2017, 4:22 am EST

    Hi Ian,

    Thanks for investigation.

    Yes, CSS is one of the ways to hide the tool from the toolbar.

    You can also change the icon for PDFViewer by DOM manipulation. For reference, please refer to the attached sample for the same.

    ~Manish

    PdfViewer.zip

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels