Export to pdf and docx