is it possible to right a script that determines weather a given page from a document is true landscape or actually a 90 degrees rotated portrait page? thinking even if that page comes from the scanner or is a jpg converted or printed to pdf( so its not vector interpreted). i just need to know if it can be done, so i wont work in vain.
Unless the page has a rotation applied to it, I can't think of a way of
doing it with JS.
how else can i do it then?