# Using Free text tool programatically

**URL:** <https://pdfjs.community/t/using-free-text-tool-programatically/126>\
**Category:** Technical Support\
**Created:** [July 10, 2020, 5:55am UTC](https://pdfjs.community/t/using-free-text-tool-programatically/126 "2020-07-10T05:55:11Z")\
**Posts on this page:** 4\
**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, 5:55am UTC](https://pdfjs.community/t/using-free-text-tool-programatically/126/1 "2020-07-10T05:55:11Z")

</div>

Hello Logan,  
Greetings!

Hope you are doing well.  
My question is i want to programatically put the free text tool box in middle of  
the page with programatically given font-size,thickness,background color, border color and  
text inside it and will be able to resize and move that box anywhere on page.

So is it possible here?

Regards  
Thank you

---

<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:** [July 13, 2020, 2:27pm UTC](https://pdfjs.community/t/using-free-text-tool-programatically/126/2 "2020-07-13T14:27:55Z")

</div>

Hey there!

[Here is an example](https://pdfjs.express/documentation/annotation/create-annotation-free-text) of programmatically creating a freetext annotation.

The [API reference](https://pdfjs.express/api/Annotations.FreeTextAnnotation.html) can help you find out what properties are editable.

Please let me know if there are any more questions!  
Thanks,  
Logan

---

<div class="post-metadata">

**Author:** ![suporte](https://avatars.discourse-cdn.com/v4/letter/s/65b543/32.png) [@suporte](https://pdfjs.community/u/suporte)\
**Post date:** [May 11, 2021, 7:36pm UTC](https://pdfjs.community/t/using-free-text-tool-programatically/126/3 "2021-05-11T19:36:13Z")

</div>

Hi, how can i edit the border thickness?

---

<div class="post-metadata">

**Author:** ![suporte](https://avatars.discourse-cdn.com/v4/letter/s/65b543/32.png) [@suporte](https://pdfjs.community/u/suporte)\
**Post date:** [May 13, 2021, 3:12pm UTC](https://pdfjs.community/t/using-free-text-tool-programatically/126/4 "2021-05-13T15:12:58Z")

</div>

we used StrokeThickness property to solve that problem.
