Show/Hide Print at runtime

19 views
Skip to first unread message

Parag Shah

unread,
Jun 1, 2017, 11:57:44 AM6/1/17
to PDFTron WebViewer
Hi PDFTron team,

We have set hidePrint: false in ReaderConrolConfig.js

Now we want to set this to true/false at runtime whenever the webviewer is loaded. How can we do that?


Best,
Parag

Justin Jung

unread,
Jun 2, 2017, 1:59:43 AM6/2/17
to PDFTron WebViewer
Hello Parag,

Instead of using ReaderControlConfig, you can use just search the element to show/hide. For example,
$('#printButton').hide();

Justin Jung
Software Developer
PDFTron Systems Inc.

Parag Shah

unread,
Jun 6, 2017, 11:49:15 AM6/6/17
to PDFTron WebViewer
Many thanks Justin.

Best,
Parag
Reply all
Reply to author
Forward
0 new messages