# Issue when annotating some landscape documents

**URL:** <https://pdfjs.community/t/issue-when-annotating-some-landscape-documents/2547>\
**Category:** Technical Support\
**Created:** [April 27, 2023, 7:23am UTC](https://pdfjs.community/t/issue-when-annotating-some-landscape-documents/2547 "2023-04-27T07:23:24Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![lakshan](https://avatars.discourse-cdn.com/v4/letter/l/ad7895/32.png) [@lakshan](https://pdfjs.community/u/lakshan)\
**Post date:** [April 27, 2023, 7:23am UTC](https://pdfjs.community/t/issue-when-annotating-some-landscape-documents/2547/1 "2023-04-27T07:23:24Z")

</div>

These documents are originally landscape documents. PDF express identifies these documents as rotated documents. PDF express creates Metrix differently for these types of documents

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/2X/d/dda1d8f8edbf7728bbf80833be084c0b77cc9aac.png)

Because of that, annotations are getting rotated abnormally in different scenarios

**Text annotation added using PDF express tools**

Before save

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/2X/5/5cb95dca263bffb44cdecfea8d6e0defb24a646c.png)

After saving

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/2X/4/44adf7edd596d493af3c8480a93d10b758021c8f.png)

I need to keep the annotation without rotating no matter what the page rotation is. This is urgent since clients are waiting for a solution. Please help

Also, when we use getRotation(PageNumber); it returns 0. But when we use getCompleteRotation(pageNumber); it returns 1

---

<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:** [April 28, 2023, 7:57pm UTC](https://pdfjs.community/t/issue-when-annotating-some-landscape-documents/2547/3 "2023-04-28T19:57:32Z")

</div>

Hi lakshan

Can you provide the file in the screenshot or a sample project to reproduce this issue?

Thanks!  
Tyler

---

<div class="post-metadata">

**Author:** ![lakshan](https://avatars.discourse-cdn.com/v4/letter/l/ad7895/32.png) [@lakshan](https://pdfjs.community/u/lakshan)\
**Post date:** [May 10, 2023, 11:15am UTC](https://pdfjs.community/t/issue-when-annotating-some-landscape-documents/2547/4 "2023-05-10T11:15:24Z")

</div>

Hi,

file attached below

[Cinnamon Red, LLC\_\_Credit Card Activity Report (2).pdf](https://pdfjs.community/uploads/short-url/jy7j7MxRkehUGZGb86L8K18vp8I.pdf) (58.8 KB)

---

<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:** [May 10, 2023, 10:34pm UTC](https://pdfjs.community/t/issue-when-annotating-some-landscape-documents/2547/5 "2023-05-10T22:34:44Z")

</div>

Hello lakshan,

Regarding the getRotation() and getCompleteRotation()

- getRotation is the current viewing rotation, you can _temporarily rotate_ the document for viewing purposes without saving it into the document. This is why it is 0 (0 degrees), because you have not rotated the document in the viewer.
- getCompleteRotation is the document’s actual rotation, which has been saved into the document’s internals. It returns 1 (90 degrees) because the document’s metadata says it is 90 degrees.

In the case of the FreeTexts rendering incorrectly, it seems like the annotation’s text is rotating based on the document’s internal rotation. Try setting:

```javascript
freeText.Rotation = documentViewer.getCompleteRotation(freeText.PageNumber)

```

Best regards,  
Tyler

---

<div class="post-metadata">

**Author:** ![lakshan](https://avatars.discourse-cdn.com/v4/letter/l/ad7895/32.png) [@lakshan](https://pdfjs.community/u/lakshan)\
**Post date:** [May 11, 2023, 10:18am UTC](https://pdfjs.community/t/issue-when-annotating-some-landscape-documents/2547/6 "2023-05-11T10:18:38Z")

</div>

Hi,

Thanks. I tried. Now rotation does not change after saving. But the problem is,

Now it looks like this

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/2X/9/9f16ff3e0572eae43243398e4a90c5ce40bedb11.png)

I need it be horizontal same as the text in the PDF. Is there any way to do that. Can you please help

Thanks  
Lakshan

---

<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:** [May 24, 2023, 6:07am UTC](https://pdfjs.community/t/issue-when-annotating-some-landscape-documents/2547/7 "2023-05-24T06:07:05Z")

</div>

Hello lakshan,

My apologies for the delay in response, we have added this to our backlog to be reviewed by our product team.

Best regards,  
Tyler

---

<div class="post-metadata">

**Author:** ![lakshan](https://avatars.discourse-cdn.com/v4/letter/l/ad7895/32.png) [@lakshan](https://pdfjs.community/u/lakshan)\
**Post date:** [May 24, 2023, 1:42pm UTC](https://pdfjs.community/t/issue-when-annotating-some-landscape-documents/2547/8 "2023-05-24T13:42:26Z")

</div>

Thanks,

Please update me on the progress

---

<div class="post-metadata">

**Author:** ![lakshan](https://avatars.discourse-cdn.com/v4/letter/l/ad7895/32.png) [@lakshan](https://pdfjs.community/u/lakshan)\
**Post date:** [June 15, 2023, 6:32am UTC](https://pdfjs.community/t/issue-when-annotating-some-landscape-documents/2547/9 "2023-06-15T06:32:36Z")

</div>

Hi,

any update on this?

---

<div class="post-metadata">

**Author:** ![lakshan](https://avatars.discourse-cdn.com/v4/letter/l/ad7895/32.png) [@lakshan](https://pdfjs.community/u/lakshan)\
**Post date:** [September 11, 2023, 11:45am UTC](https://pdfjs.community/t/issue-when-annotating-some-landscape-documents/2547/10 "2023-09-11T11:45:49Z")

</div>

Hi,

any update on this?

---

<div class="post-metadata">

**Author:** ![Steven](https://avatars.discourse-cdn.com/v4/letter/s/94ad74/32.png) [@Steven](https://pdfjs.community/u/Steven)\
**Post date:** [October 16, 2023, 10:25am UTC](https://pdfjs.community/t/issue-when-annotating-some-landscape-documents/2547/11 "2023-10-16T10:25:56Z")

</div>

![image](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/2X/2/2b3e62d05fa295c7bb4daee47ad71ce1f7f15fa6.png)  
@tgordon I have facing same issue. Please have a look this.

---

<div class="post-metadata">

**Author:** ![lakshan](https://avatars.discourse-cdn.com/v4/letter/l/ad7895/32.png) [@lakshan](https://pdfjs.community/u/lakshan)\
**Post date:** [January 16, 2024, 11:06am UTC](https://pdfjs.community/t/issue-when-annotating-some-landscape-documents/2547/12 "2024-01-16T11:06:23Z")

</div>

@tgordon Any update on this?. At least provide a workaround for this please. We are getting customer complains everyday.

---

<div class="post-metadata">

**Author:** ![Steven](https://avatars.discourse-cdn.com/v4/letter/s/94ad74/32.png) [@Steven](https://pdfjs.community/u/Steven)\
**Post date:** [July 22, 2024, 9:43am UTC](https://pdfjs.community/t/issue-when-annotating-some-landscape-documents/2547/13 "2024-07-22T09:43:59Z")

</div>

@tgordon Same we are getting the customer complains for annotation text rotation.  
Please provide the update on this.

---

<div class="post-metadata">

**Author:** ![Steven](https://avatars.discourse-cdn.com/v4/letter/s/94ad74/32.png) [@Steven](https://pdfjs.community/u/Steven)\
**Post date:** [August 12, 2024, 7:04am UTC](https://pdfjs.community/t/issue-when-annotating-some-landscape-documents/2547/14 "2024-08-12T07:04:57Z")

</div>

Any update on this issue? We are waiting to fix this issue…
