PDF export, more changes based on feedback.