Reduce pdf size and add progress bar (text mode)