Hello everyone,
I hope this is the right place to ask this particular question. I googled a couple of hours, but I still didn't find a solution yet, so I'm starting to get a bit desperate.
What am I trying to do:
I'm trying to detect what's the ortientation of a particular PDF file (aways a single page) in a loop. If it's landscape, I want to rotate it 90 degrees. (and move on to the next PDF file).
I found out how to rotate a PDF file (page.SetRotate(90)) but I can't find how to detect it's orientation.
Any help would be highly appreciated,
Friendly greetings,
Jan
I hope this is the right place to ask this particular question. I googled a couple of hours, but I still didn't find a solution yet, so I'm starting to get a bit desperate.
What am I trying to do:
I'm trying to detect what's the ortientation of a particular PDF file (aways a single page) in a loop. If it's landscape, I want to rotate it 90 degrees. (and move on to the next PDF file).
I found out how to rotate a PDF file (page.SetRotate(90)) but I can't find how to detect it's orientation.
Any help would be highly appreciated,
Friendly greetings,
Jan