Fix pdf.js rendering pages in the wrong order
There was an implicit assumption that the pages returned from the
Promise of pdf.getPage(num)
would return in order, but no such
guarantee exists. To handle this, we explicitly set which array index
based on the page number and then trigger a Vue update via splice
.
Edited by Stan Hu