multiprocessing for pdfs