updated to allow converting PDFs one at a time