added code to create example pdf