generating PDF post, first half