Pdf script info page scales/dpi. pep8 fixes
More tweaks to dpi changes - scalebars, undo etc