Show all annotation tools on toolbar instead of having them under a dropdown

29 views
Skip to first unread message

Matt Parizeau

unread,
Sep 21, 2017, 6:37:00 PM9/21/17
to PDFTron WebViewer
Q:

If we want to display all annotation tools from the beginning, rather than only the 3 that show by default, what would be the easiest way of doing that?

A:

You could add the following code to a config file:


$(document).on('documentLoaded', function() {

  // hide the "more" arrow that would show more tools

  $('#overflowTools').hide();

});


// move tools from overflow container to main toolbar

$('#toolList').append($('#overflowToolsContainer').children());

Reply all
Reply to author
Forward
0 new messages