I tried your library on some private PDFs. Usually it produces great results, but occasionnaly it gave weird distorted output. Turned out that the PDFs that caused this were internally rotated (see PDPage.getRotation()). This patch fixes it.
Unfortunately, cannot provide the files for testing as they are private (and huge), but I hope it is not necessary for this small patch. It fixes the problem I encountered and doesn't break any existing tests.
I tried your library on some private PDFs. Usually it produces great results, but occasionnaly it gave weird distorted output. Turned out that the PDFs that caused this were internally rotated (see PDPage.getRotation()). This patch fixes it.
Unfortunately, cannot provide the files for testing as they are private (and huge), but I hope it is not necessary for this small patch. It fixes the problem I encountered and doesn't break any existing tests.