rebuild the pdf file to a smaller size