# Can fitText be used to set only height? If not, is there an alternative

**URL:** <https://pdfjs.community/t/can-fittext-be-used-to-set-only-height-if-not-is-there-an-alternative/896>\
**Category:** Technical Support\
**Created:** [July 22, 2021, 9:02pm UTC](https://pdfjs.community/t/can-fittext-be-used-to-set-only-height-if-not-is-there-an-alternative/896 "2021-07-22T21:02:48Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/1X/ffbcd25c7d423db8d5acd5db201c272f4db306dd.png) [@system](https://pdfjs.community/u/system)\
**Post date:** [July 22, 2021, 9:02pm UTC](https://pdfjs.community/t/can-fittext-be-used-to-set-only-height-if-not-is-there-an-alternative/896/2 "2021-07-22T21:02:53Z")

</div>

**Hello, I’m Ron, an automated tech support bot 🤖**

While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:

Guides:
- [Rich text](https://pdfjs.express/documentation/annotation/rich-text)
- [Create custom annotation styles](https://pdfjs.express/documentation/annotation/customizing-default-annotation-styles)
- [Create free text annotations in PDF.js Express](https://pdfjs.express/documentation/annotation/create-annotation-free-text)

APIs:
- [Annotations.WidgetAnnotation - setRect(rect)](https://pdfjs.express/api/Annotations.WidgetAnnotation.html#setRect__anchor)
- [CoreControls.EditBoxManager](https://pdfjs.express/api/CoreControls.EditBoxManager.html#__anchor)
- [Annotations.FreeTextAnnotation - setRect(rect)](https://pdfjs.express/api/Annotations.FreeTextAnnotation.html#setRect__anchor)

Forums:
- [Freetext Annotation Text padding](https://pdfjs.community/t/freetext-annotation-text-padding/315/2)
- [How to rotate/flip Annotations by 180 degrees?](https://pdfjs.community/t/how-to-rotate-flip-annotations-by-180-degrees/244/2)
- [Unable to save the transparency to fillColor](https://pdfjs.community/t/unable-to-save-the-transparency-to-fillcolor/242/1)

---

_[View the full topic](https://pdfjs.community/t/can-fittext-be-used-to-set-only-height-if-not-is-there-an-alternative/896)._
