fix zip with pdf generation, fix attachment filenames