Triggering printing from ctrl + p

52 views
Skip to first unread message

Matt Parizeau

unread,
May 25, 2015, 8:16:53 PM5/25/15
to pdfnet-w...@googlegroups.com
Q:

When I press ctrl + p in WebViewer a blank page is shown in the preview. Is it possible to get this to work?

A:

You could hook into the ctrl + p key shortcut with code like the following: 
$(document).on('keyup keydown', function(e) {
   
if (e.ctrlKey && e.keyCode === 80) {
        $
('#printButton').trigger('click');
       
return false;
   
}
});

Reply all
Reply to author
Forward
0 new messages