Merge branch 'sh-fix-pdfjs-page-ordering' into 'master'
Fix pdf.js rendering pages in the wrong order
Closes #64467
See merge request gitlab-org/gitlab-ce!31222
(cherry picked from commit f039d592)
6d3b203d Fix pdf.js rendering pages in the wrong order
5246626d Simplify pdf.js logic