Join Rectangular Tool to Main header

Hello,

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

Regards

Hi,

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: https://pdfjs.express/documentation/ui-customization/customizing-header

Best Regards,
Zhijie