# Disable annotation grouping, rotating and resizing / feature disabling issues

**URL:** <https://pdfjs.community/t/disable-annotation-grouping-rotating-and-resizing-feature-disabling-issues/1550>\
**Category:** Technical Support\
**Created:** [April 6, 2022, 1:58pm UTC](https://pdfjs.community/t/disable-annotation-grouping-rotating-and-resizing-feature-disabling-issues/1550 "2022-04-06T13:58:41Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![sys1](https://avatars.discourse-cdn.com/v4/letter/s/7ea924/32.png) [@sys1](https://pdfjs.community/u/sys1)\
**Post date:** [April 6, 2022, 1:58pm UTC](https://pdfjs.community/t/disable-annotation-grouping-rotating-and-resizing-feature-disabling-issues/1550/1 "2022-04-06T13:58:42Z")

</div>

Hi.

We have a very spefic scenario that is the preparation of an existing document to be electronically signed by different individuals.

And, since we are using stamp annotations as placeholders to the future signatures, we cannot allow users to group, rotate or resize the annotations.

(1) Is there a way to disable these features?  
(2) Is there a official list of features/elements names? We noticed that these features have been introduced after the update from 7.x to 8.x., A lot of features that have been previously disabled using the code bellow don`t work anymore:

```javascript
WebViewer(
                {
                    disabledElements: [
                        'freeHandToolGroupButton',
                        'textToolGroupButton',
                        'shapeToolGroupButton',
                        'freeTextToolButton',
                        'stickyToolButton',
                        'toolsButton',
                        'miscToolGroupButton',
                        'signatureToolButton',
                        'eraserToolButton',
                        'viewControlsButton',
                        'annotationPopup',
                        'notesPanelButton',
                        'textPopup',
                        'contextMenuPopup',
                        'textSelect',
                        'menuButton',
                        'outlinesPanelButton',
                        'notesPanel',
                        'documentControl'
                    ]

                },
                viewer.current
            )

```

Some could be disabled using `instance.UI.disableFeatures` but `instance.UI.disableElements(['menuButton', 'page-nav', 'print']);` don’t seems to work, I’m very confused finding the correct names of the features and buttons.

Regards,

---

<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:** [April 6, 2022, 1:58pm UTC](https://pdfjs.community/t/disable-annotation-grouping-rotating-and-resizing-feature-disabling-issues/1550/3 "2022-04-06T13:58:47Z")

</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:
- [Creating custom annotations for your viewer - Creating the custom annotation class](https://pdfjs.express/documentation/annotation/custom-annotations.8#creating-the-custom-annotation-class)
- [Disabling flattened annotations](https://pdfjs.express/documentation/annotation/disable-annotations)
- [Create rectangle annotations in PDF.js Express - Other examples](https://pdfjs.express/documentation/annotation/create-annotation-rectangle#other-examples)

APIs:
- [Core.Tools.SignatureCreateTool - saveSignatures(annotations)](https://pdfjs.express/api/Core.Tools.SignatureCreateTool.html#saveSignatures__anchor)
- [Core.Tools.StickyCreateTool - enableCreationOverAnnotation()](https://pdfjs.express/api/Core.Tools.StickyCreateTool.html#enableCreationOverAnnotation__anchor)
- [Core.Annotations.RadioButtonWidgetAnnotation - new RadioButtonWidgetAnnotation(field, options)](https://pdfjs.express/api/Core.Annotations.RadioButtonWidgetAnnotation.html#RadioButtonWidgetAnnotation__anchor)

Forums:
- [Confirm output of trial form field merger](https://pdfjs.community/t/confirm-output-of-trial-form-field-merger/744/1)
- [Sometimes rubber stamps aren’t getting loaded on webviewer](https://pdfjs.community/t/sometimes-rubber-stamps-arent-getting-loaded-on-webviewer/260/1)
- [Delete Image stamp annotation programatically](https://pdfjs.community/t/delete-image-stamp-annotation-programatically/147/2)

---

<div class="post-metadata">

**Author:** ![sys1](https://avatars.discourse-cdn.com/v4/letter/s/7ea924/32.png) [@sys1](https://pdfjs.community/u/sys1)\
**Post date:** [April 7, 2022, 12:25am UTC](https://pdfjs.community/t/disable-annotation-grouping-rotating-and-resizing-feature-disabling-issues/1550/4 "2022-04-07T00:25:06Z")

</div>

oh… just noticed a wrong method call…

`instance.UI.disableElements(['annotationStyleEditButton' ) `  
must be:  
`instance.disableElements(['annotationStyleEditButton'] ) `

however, I still can’t remove the “Rotate Annotation Button”, I’ can’t even inspect it to retrieve the data-element attribute.

![image](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/1X/84d8c020f46e6bafc9dae71137546b1806e3efb4.png)

Any clues? Thanks!

---

<div class="post-metadata">

**Author:** ![sys1](https://avatars.discourse-cdn.com/v4/letter/s/7ea924/32.png) [@sys1](https://pdfjs.community/u/sys1)\
**Post date:** [April 9, 2022, 1:16am UTC](https://pdfjs.community/t/disable-annotation-grouping-rotating-and-resizing-feature-disabling-issues/1550/5 "2022-04-09T01:16:17Z")

</div>

Hi, someone could please help?

Sorry to insist, but this component cant be inspected since it is rendered inside the document canvas and I did not have found anything in the docs mentioning how can be this rotation tool disabled.

---

<div class="post-metadata">

**Author:** ![sys1](https://avatars.discourse-cdn.com/v4/letter/s/7ea924/32.png) [@sys1](https://pdfjs.community/u/sys1)\
**Post date:** [April 11, 2022, 12:23pm UTC](https://pdfjs.community/t/disable-annotation-grouping-rotating-and-resizing-feature-disabling-issues/1550/6 "2022-04-11T12:23:33Z")

</div>

@Logan , sorry to bother, but I need to understand if this could be solved. Is there something wrong with this post? Do you guys want me to create another one following the guidelines or simplifying more my request?

---

<div class="post-metadata">

**Author:** ![dnavarro](https://yyz1.discourse-cdn.com/flex031/user_avatar/pdfjs.community/dnavarro/32/707_2.png) [@dnavarro](https://pdfjs.community/u/dnavarro)\
**Post date:** [April 11, 2022, 4:04pm UTC](https://pdfjs.community/t/disable-annotation-grouping-rotating-and-resizing-feature-disabling-issues/1550/7 "2022-04-11T16:04:00Z")

</div>

Hi There,

Thanks for your question and sorry about the late response.

I saw you found how to disable the features, correct? That’s great.

[In this link](https://pdfjs.express/documentation/ui-customization/hiding-elements) you can find in the last topic `List of elements` all the element’s names.

To disable the rotation for all annotations you can use the following code

```javascript
instance.Core.annotationManager.setRotationOptions({
  isEnabled: false
});

```

If you want to disable this feature for a specific annotation, you use:

```javascript
annotation.disableRotationControl()

```

I hope this helps and please let me know if you need any other assistance.

Thank you,  
Dandara

---

<div class="post-metadata">

**Author:** ![sys1](https://avatars.discourse-cdn.com/v4/letter/s/7ea924/32.png) [@sys1](https://pdfjs.community/u/sys1)\
**Post date:** [April 11, 2022, 6:23pm UTC](https://pdfjs.community/t/disable-annotation-grouping-rotating-and-resizing-feature-disabling-issues/1550/8 "2022-04-11T18:23:08Z")

</div>

Thanks for the response. It worked.

---

<div class="post-metadata">

**Author:** ![dnavarro](https://yyz1.discourse-cdn.com/flex031/user_avatar/pdfjs.community/dnavarro/32/707_2.png) [@dnavarro](https://pdfjs.community/u/dnavarro)\
**Post date:** [April 11, 2022, 6:34pm UTC](https://pdfjs.community/t/disable-annotation-grouping-rotating-and-resizing-feature-disabling-issues/1550/9 "2022-04-11T18:34:24Z")

</div>


