resize a pdf file with better reading performance