Pages in PDF documents may have a "built-in" rotation which is the rotation that the page will be initially displayed at in a viewer. When inside WebViewer a temporary page rotation can also be applied.
Using the WebViewer API it's possible to rotate pages both in the viewer and in the document data. Pages rotated by the user through the rotate buttons in the UI will only apply a temporary rotation.
Rotation values can be found in the PageRotation
enum, their name and values are:
Enum | Value |
---|---|
E_0 | 0 |
E_90 | 1 |
E_180 | 2 |
E_270 | 3 |
UI rotation functions can be found on the DocumentViewer
object. These rotation functions modify what is being displayed in WebViewer, not the actual PDF data.
There is only one function for manipulating rotation in the actual PDF data and it's found on the Document
object.
An example of rotations being used can be seen below
Did you find this helpful?
Trial setup questions?
Ask experts on DiscordNeed other help?
Contact SupportPricing or product questions?
Contact Sales