When viewing a document that has a landscape page orientation, AEV will display it with a portrait orientation:
Here is an example of a document in AEV:
Here is that same document outside of AEV:
This issue appears to be due to the pdf box library switching the height and width values of the document. In the getPDFPageDimensions function we use pdPage.getMediaBox().getWidth() and pdPage.getMediaBox().getHegiht() to retrieve the documents height and width resolution. As the image below shows, pdf box seems to be reversing these values:
When looking at the documents metadata, we can also see that the general page size for the document is also landscape:
When viewing a document that has a landscape page orientation, AEV will display it with a portrait orientation: Here is an example of a document in AEV:![document_in_AEV](https://user-images.githubusercontent.com/7279444/139279521-fcb6d1ce-b719-4eb9-b0f3-924df8425d65.PNG)
Here is that same document outside of AEV:![document_outside_of_aev](https://user-images.githubusercontent.com/7279444/139279606-c3cdbaa4-ea84-4e5b-af57-7f236501fa3e.PNG)
This issue appears to be due to the pdf box library switching the height and width values of the document. In the getPDFPageDimensions function we use
pdPage.getMediaBox().getWidth()
andpdPage.getMediaBox().getHegiht()
to retrieve the documents height and width resolution. As the image below shows, pdf box seems to be reversing these values:When looking at the documents metadata, we can also see that the general page size for the document is also landscape:![document_meta_data](https://user-images.githubusercontent.com/7279444/139280293-25fb99cd-35a5-4ea1-b731-ac166b099f65.PNG)