[pdf] fix issue #3: PDFs with mixed orientations not displayed correctly
Merge pull request #9 from Stefano92-100/master

[pdf] fix issue #3: PDFs with mixed orientations not displayed correctly