save pdfs to temp file