generate final version of PDF