PDF transformation update

Lost some changes and have to redo them