# Signature with fixed position

**URL:** <https://pdfjs.community/t/signature-with-fixed-position/3124>\
**Category:** Technical Support\
**Tags:** pdfjs-express\
**Created:** [February 9, 2024, 11:47am UTC](https://pdfjs.community/t/signature-with-fixed-position/3124 "2024-02-09T11:47:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nikitakemarskiy](https://avatars.discourse-cdn.com/v4/letter/n/76d3ee/32.png) [@nikitakemarskiy](https://pdfjs.community/u/nikitakemarskiy)\
**Post date:** [February 9, 2024, 11:47am UTC](https://pdfjs.community/t/signature-with-fixed-position/3124/1 "2024-02-09T11:47:16Z")

</div>

**Which product are you using?**

**PDF.js Express Plus 8.7.4**

**Detailed description of issue**  
When user adds signature to the signature form widget (“Sign here” area), he can further move / resize the signature. Is there a way to forbid changing the signature position? Setting signature annotation as ReadOnly / Locked / LockedContents doesn’t help.

**Expected behaviour**  
Described above.

**Code snippet**  
signatureTool.addEventListener(‘annotationAdded’, (annotation) =\> {  
if (annotation.Subject === ‘Signature’) {  
annotation.ReadOnly = true;  
annotation.Locked = true;  
annotation.LockedContents = true;  
}  
});

---

<div class="post-metadata">

**Author:** ![tgordon](https://avatars.discourse-cdn.com/v4/letter/t/aca169/32.png) [@tgordon](https://pdfjs.community/u/tgordon)\
**Post date:** [February 12, 2024, 8:32pm UTC](https://pdfjs.community/t/signature-with-fixed-position/3124/2 "2024-02-12T20:32:10Z")

</div>

Hello nikitakemarskiy,

Can you try this instead?

```javascript
annotationManager.addEventListener(‘annotationChanged’, (annotations, action, info) => {
if (annotations[0].Subject === ‘Signature’ && action === "add") {
annotation[0].ReadOnly = true;
annotation[0].Locked = true;
annotation[0].LockedContents = true;
}
});

```

Best regards  
Tyler

---

<div class="post-metadata">

**Author:** ![nikitakemarskiy](https://avatars.discourse-cdn.com/v4/letter/n/76d3ee/32.png) [@nikitakemarskiy](https://pdfjs.community/u/nikitakemarskiy)\
**Post date:** [February 19, 2024, 3:38am UTC](https://pdfjs.community/t/signature-with-fixed-position/3124/3 "2024-02-19T03:38:41Z")

</div>

This approach works, thanks @tgordon!
