Fix PDF export.
Updates xml.