set scale on change of pdf