Added pdf generating capabilities.