generate pdf example