Detailed description of issue
Anytime a user upload and visualize a portrait pdf, the tool rotate the page 90 degrees and it causes that the image be cut and part of the information is lost out of the frame which is a really bad UX for us. This is how the image is cut and rotated
Does the PDF have embedded rotation? You can check if the page is rotated or not using the getCompleteRotation API and then rotate the page accordingly using rotateClockwise or rotateCounterClockwise
We have already used the method and the getCompleteRotation and the value returned was zero (0). That value indicates that the file doesn’t have rotation, however the visor showed it rotated. What that means is that for the visor see it as though it wasn’t rotated but it does when it showed it. This is an example, I can not share the file related in the first report because it has sensitive data, so I’ll do it with this:
On both pdf.js express demo and the Apryse WebViewer demo, for the file you shared, if you look at the embedded rotation via getCompleteRotation API, it shows a value of 1 which is rotated clockwise once (90 degrees)
Unfortunately, we do not have any updates on this issue as most of our development resources have been switched over to the Apryse WebViewer.
We recommend you to consider switching to Apryse as it has ongoing updates and has the fix you are looking for.