# Creating rectangle tool using custom button outside Viewer

**URL:** <https://pdfjs.community/t/creating-rectangle-tool-using-custom-button-outside-viewer/267>\
**Category:** Technical Support\
**Created:** [September 17, 2020, 12:10pm UTC](https://pdfjs.community/t/creating-rectangle-tool-using-custom-button-outside-viewer/267 "2020-09-17T12:10:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![himani.sharma](https://avatars.discourse-cdn.com/v4/letter/h/e47774/32.png) [@himani.sharma](https://pdfjs.community/u/himani.sharma)\
**Post date:** [September 17, 2020, 12:10pm UTC](https://pdfjs.community/t/creating-rectangle-tool-using-custom-button-outside-viewer/267/1 "2020-09-17T12:10:14Z")

</div>

**Detailed description of issue**  
{Need to create a tools bar outside viewer window}

**Expected behaviour**  
{Will provide to annotate with custom buttons}

**Link to document**  
{Provide a link to the document in question if possible}

**Code snippet**  
{Provide a relevant code snippet}

---

<div class="post-metadata">

**Author:** ![Logan](https://yyz1.discourse-cdn.com/flex031/user_avatar/pdfjs.community/logan/32/13_2.png) [@Logan](https://pdfjs.community/u/Logan)\
**Post date:** [September 17, 2020, 3:10pm UTC](https://pdfjs.community/t/creating-rectangle-tool-using-custom-button-outside-viewer/267/2 "2020-09-17T15:10:06Z")

</div>

Hi there,

You can take a look at our [custom annotation examples](https://github.com/pdfjs-express/custom-annotation-samples) to show how to create custom tools and buttons.

I am closing this issue because of very little info. If you still have a question, please follow the issue template and provide us with as much detail as possible.

Thanks!

---

<div class="post-metadata">

**Author:** ![Logan](https://yyz1.discourse-cdn.com/flex031/user_avatar/pdfjs.community/logan/32/13_2.png) [@Logan](https://pdfjs.community/u/Logan)\
**Post date:** [September 17, 2020, 3:12pm UTC](https://pdfjs.community/t/creating-rectangle-tool-using-custom-button-outside-viewer/267/3 "2020-09-17T15:12:21Z")

</div>


