Code and functions to extract data from PDFs for mailing