export to text and pdf