Removing extra white space from the submitted pdf