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};

Could you please suggest me?


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:


Hi there,

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

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