PDF and email stuff