Create pdf based on data