Working on pdf gen