Disable the css on selected annotation

Skip to first unread message

Sweta Sonegra

Feb 12, 2014, 1:01:53 AM2/12/14
to pdfnet-w...@googlegroups.com
 How to disable the CCS for selected annotation.

I want to remove the CSS of showing circle.

Kevin Kuo

Feb 14, 2014, 8:32:25 PM2/14/14
to pdfnet-w...@googlegroups.com
Do you mean the control handles?

If so, you could set this property to disable the handles:

//place this code in a config.js file, see the HTML5 samples
Annotations.ControlHandle.handleWidth = 0;
Annotations.ControlHandle.handleHeight = 0;

Alternatively, you could override the draw methods for the selection models

Annotations.SelectionModel.prototype.draw = function(ctx, annotation, zoom){

You would have to override this for each type of selection mode: 
  • BoxSelectionModel
  • LineSelectionModel
  • CalloutSelectionModel
  • TextSelectionModel
Reply all
Reply to author
0 new messages