# Redrawing annotation not moving visual

**URL:** <https://pdfjs.community/t/redrawing-annotation-not-moving-visual/466>\
**Category:** Technical Support\
**Created:** [January 29, 2021, 6:55pm UTC](https://pdfjs.community/t/redrawing-annotation-not-moving-visual/466 "2021-01-29T18:55:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![eric](https://avatars.discourse-cdn.com/v4/letter/e/898d66/32.png) [@eric](https://pdfjs.community/u/eric)\
**Post date:** [January 29, 2021, 6:55pm UTC](https://pdfjs.community/t/redrawing-annotation-not-moving-visual/466/1 "2021-01-29T18:55:33Z")

</div>

Hello,

I am trying to manually edit the annotation X and Y values outside of PDF express to give more specific control over where they are. When I change the X or Y value it moves the box to select the annotation but the annotation visual does not get redrawn to match the box.

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/1X/b59d63ecdd1e237773e5daf2e658596295333561.png)  
**PDF.js Express Version**  
“7.2.0”

**Code snippet**  
const all\_widgets = annotManager.getAnnotationsList();

```
            all_widgets.forEach(widget => {
                var widget_id = widget.Id;
                console.log(widget_id);
                if (widget_id == current_selected_annotation.Id) {
                    console.log("Selected");
                    console.log(widget.X);
                    widget.X = parseInt($("#x").val());
                    annotManager.redrawAnnotation(widget);
                }
            });
```

---

<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:** [February 2, 2021, 4:18pm UTC](https://pdfjs.community/t/redrawing-annotation-not-moving-visual/466/2 "2021-02-02T16:18:12Z")

</div>

Hey there!

This is a limitation with PDF.js (our core rendering engine). The actual green part of the button is a bitmap baked into the document and cannot be moved the way you intend.

In order to extract that annotation for editing, you need to extract it using our REST API and then reimport it.

We have a guide on this process [here](https://pdfjs.express/documentation/use-case/upload-download).

Let me know if you have any more questions!

Thanks,  
Logan
