Background worker for converting PDFs into an array of PNGs.