setPageRotations Methods working with only pdf extension file but not other

@pdftron/webviewer”: “^8.3.3”,

I’m trying to rotate our page with below code. it is absolute working with pdf extension file with multiple pages. but same code are not working with .docx extension file.

let rotations= {"1": 1,"2": 1,"3": 1,"4": 1};
this.webViewer.docViewer.setPageRotations(rotations);

Could you please suggest me?

Thanks

Hello, I’m Ron, an automated tech support bot :robot:

While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:

Guides:APIs:Forums:

Hi there,

For rotating pages I’d recommend using setRotation to perform the operation.

https://www.pdftron.com/api/web/Core.DocumentViewer.html#setRotation__anchor

Best Regards,
Zach Serviss
Web Development Support Engineer
PDFTron Systems, Inc.