Convert a pdf file into a single image file.