added example to create a pdf