How do I rotate a page?
Q: How do I rotate a page?
A: To rotate a page in a document you can use the DocumentOperation
API. Let’s say you want to rotate the first page of your document 90 degrees clockwise:
// Rotate the first page of the document 90 degrees clockwise instance.applyOperations([{ type: "rotatePages", pageIndexes: [0], rotateBy: 90 }]);