Convert `Catalog.getPageDict` to an `async` method
Convert `Catalog.getPageDict` to an `async` method

This makes it possible to remove the internal `next` helper function, and also gets rid of the need to manually resolve/reject a `PromiseCapability`.

showpad/mozilla-pdf.js,mozilla/pdf.js,caremerge/pdf.js,xavier114fch/pdf.js,Snuffleupagus/pdf.js,macroplant/pdf.js,timvandermeij/pdf.js,Shoobx/pdf.js,Snuffleupagus/pdf.js,xavier114fch/pdf.js,nawawi/pdf.js,mozilla/pdf.js,timvandermeij/pdf.js,macroplant/pdf.js,Shoobx/pdf.js,mozilla/pdf.js,caremerge/pdf.js,showpad/mozilla-pdf.js,nawawi/pdf.js,showpad/mozilla-pdf.js,Shoobx/pdf.js,Snuffleupagus/pdf.js,nawawi/pdf.js,timvandermeij/pdf.js,macroplant/pdf.js