Remove unnecessary copying from paintCroppedPageOnPainter
PagePainter::paintCroppedPageOnPainter had a few calls to QPixmap::setDevicePixelRatio on pixmaps it does not own, which detaches the pixmap, making a deep copy. It turns out these were all unnecessary. It also copied scaled before drawing them onto the painter.
I've tested all the changes except for the annotation stamps, which I'm just assuming works like the others.
Edited by Oliver Sander