Fix PDF export issue.