# Get current orientation angle for each page

**URL:** <https://pdfjs.community/t/get-current-orientation-angle-for-each-page/3238>\
**Category:** Technical Support\
**Tags:** pdfjs-express\
**Created:** [April 24, 2024, 3:13pm UTC](https://pdfjs.community/t/get-current-orientation-angle-for-each-page/3238 "2024-04-24T15:13:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chris.jiang](https://avatars.discourse-cdn.com/v4/letter/c/ec9cab/32.png) [@chris.jiang](https://pdfjs.community/u/chris.jiang)\
**Post date:** [April 24, 2024, 3:13pm UTC](https://pdfjs.community/t/get-current-orientation-angle-for-each-page/3238/1 "2024-04-24T15:13:38Z")

</div>

**Which product are you using?**  
PDF.js Express Viewer

**PDF.js Express Version**  
8.7.4

**Detailed description of issue**  
Is there any API we can call to get the current rotation angle of each page?

**Expected behaviour**  
when I click on the page 2 I will get the current orientation angle of page 2

---

<div class="post-metadata">

**Author:** ![kkim](https://avatars.discourse-cdn.com/v4/letter/k/3ab097/32.png) [@kkim](https://pdfjs.community/u/kkim)\
**Post date:** [April 24, 2024, 3:58pm UTC](https://pdfjs.community/t/get-current-orientation-angle-for-each-page/3238/3 "2024-04-24T15:58:51Z")

</div>

Hi there,

You can get current rotation angle of current page via

```javascript
documentViewer.getCompleteRotation(1)
or 
documentViewer.getRotation()

```

Note that actual rotation operations are not available in pdf.js express:

> **[Page Manipulation in JavaScript PDF Viewer | PDF.js Express SDK](https://pdfjs.express/documentation/advanced/page-manipulation)**

Best regards,  
Kevin Kim
