Right now, the PDF edit interface generates and loads all PNGs through editpdf/ajax.php -> loadallimages. For very large pdfs this can be very time consuming (many many minutes).
IMO, we should only generate and load the image (page) currently being displayed to the user (and maybe next next few pages, since most of the time the user will view in order). This would reduce server load by not generating pages that may never be viewed, and would allow the user to start marking up immediately, rather than having to wait for all pages to generate. Note that we already seperately know the page count - we don't need to generate the page images for that to happen.