Identify if a PDF is landscape or portrait

Happy New Year to all of you,
I have a question I could not find an answer to in the forum. Is there a possibility to identify the orientation of a PDF file? I have about 2000 PDFs and a lot of them are scanned double pages (so landscape) PDFs. These I want to process further to split the double pages with Abby FineReader, as this OCR software is doing this automatically.
There is a way to do that with pictures – but this does not work with the PDFs I tried. So I thought I could determine if the width is greater than the hight sort of thing, but Hazel does not offer that (as far as I can see).
Maybe someone knows an apple script or shell script which can do that?
That would be wonderful!
I have a question I could not find an answer to in the forum. Is there a possibility to identify the orientation of a PDF file? I have about 2000 PDFs and a lot of them are scanned double pages (so landscape) PDFs. These I want to process further to split the double pages with Abby FineReader, as this OCR software is doing this automatically.
There is a way to do that with pictures – but this does not work with the PDFs I tried. So I thought I could determine if the width is greater than the hight sort of thing, but Hazel does not offer that (as far as I can see).
Maybe someone knows an apple script or shell script which can do that?
That would be wonderful!