Makes thumbnails of the pdf file