I’m using the same code. I compared your output to my output file and I see that the dimensions are were switched, meaning that your output file has a 3024 X 5376 resolution and mine is 5376 X 3024 which makes it horizontal or something like that. Can you think of something that I’m doing wrong, or didn’t do?
UPDATE:
Please review this screenshot from my conversion process: screenshot.jpg (44.4 KB)
What is the reason that the documentInfo is reading the file wrong?
You can see that it reads the height as 2268 and width 4032, while it actually the opposite.
I’m assuming this is what causing the rotate on the output image.
Why does it happen?
Another update: I used your code as is, and the output file is still rotated to the left.