Improved PDF export