How to remove unwanted space in PDF submissions?