Disable some annotation

32 views
Skip to first unread message

Andrea Rinaldi

unread,
Jun 1, 2017, 11:57:44 AM6/1/17
to PDFTron WebViewer
Hello,
i would like to disabled just some type of annotation, like cloud or Polyline or else.
i try to disable this using jquery and the css call like 
$(".annotTool glyphicons cloud").css('display','none');
but it didn't work.
Any Solution?
Thx

Justin Jung

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

To search an element with multiple class names you can do the following:
$(".annotTool.glyphicons.cloud").css('display','none');

But instead, you can also search with data-toolmode attribute:
$('*[data-toolmode="AnnotationCreatePolyline"]').hide();

Justin Jung
Software Developer
PDFTron Systems Inc.

Andrea Rinaldi

unread,
Jun 5, 2017, 1:12:57 PM6/5/17
to PDFTron WebViewer
Thx, work Correctly
Reply all
Reply to author
Forward
0 new messages