mg - write pdf to standard temp directory