hi. i have created annotations in the pdf but i encountered 1 weird pdf wherein it is displayed as horizontal but the mediabox is 729x1224 which is vertical and the PDPage.getRottation() has a value of 270
which explains why it is displayed horizontally (landscape). my problem is when i add annotations, i have a function that calculates the new coordinates based on the PDPage bounding box since the source of the coordinates is via web. what happens is the annotations get misplaced. i tried to switch width and height so it would be landscaped but this did not work out. i figure there needs to be some way to probably rotate it virtually so as to correctly position the annotations? anyone got ideas perhaps?

