Script to parse pdf.