Fix export to PDF - refs BT#8566