Writing code for processing pdfs.