# Join Rectangular Tool to Main header

**URL:** <https://pdfjs.community/t/join-rectangular-tool-to-main-header/127>\
**Category:** Technical Support\
**Created:** [July 10, 2020, 8:11am UTC](https://pdfjs.community/t/join-rectangular-tool-to-main-header/127 "2020-07-10T08:11:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![abhishek11.maurya199](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@abhishek11.maurya199](https://pdfjs.community/u/abhishek11.maurya199)\
**Post date:** [July 10, 2020, 8:11am UTC](https://pdfjs.community/t/join-rectangular-tool-to-main-header/127/1 "2020-07-10T08:11:52Z")

</div>

Hello,

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

Regards

---

<div class="post-metadata">

**Author:** ![zzhang](https://avatars.discourse-cdn.com/v4/letter/z/b9e5f3/32.png) [@zzhang](https://pdfjs.community/u/zzhang)\
**Post date:** [July 13, 2020, 3:47pm UTC](https://pdfjs.community/t/join-rectangular-tool-to-main-header/127/2 "2020-07-13T15:47:07Z")

</div>

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.

```javascript
instance.updateTool('AnnotationCreateRectangle', { buttonGroup: null });

```

1. use [instance.setHeaderItems](https://pdfjs.express/api/WebViewerInstance.html#setHeaderItems__anchor) to create a rectangle toolbutton to the header.  
related guide: [https://pdfjs.express/documentation/ui-customization/customizing-header](https://pdfjs.express/documentation/ui-customization/customizing-header)

Best Regards,  
Zhijie

---

<div class="post-metadata">

**Author:** ![zzhang](https://avatars.discourse-cdn.com/v4/letter/z/b9e5f3/32.png) [@zzhang](https://pdfjs.community/u/zzhang)\
**Post date:** [July 22, 2020, 3:19pm UTC](https://pdfjs.community/t/join-rectangular-tool-to-main-header/127/3 "2020-07-22T15:19:13Z")

</div>

Closed on July 22, 2020, 3:19pm UTC


