added example for creating PDF