Join Rectangular Tool to Main header


Is it possible to Move Rectangular tool and join it in main header tools beside
signature and free hand tool ?



Two steps are needed to move the rectangle tool button to the main header.

  1. set the value of buttonGroup to null for the rectangle tool using instance.updateTool. Doing this will remove the rectangle tool in the group.
instance.updateTool('AnnotationCreateRectangle', { buttonGroup: null });
  1. use instance.setHeaderItems to create a rectangle toolbutton to the header.
    related guide:

Best Regards,