NXP-14223: fix redirection when exporting xl/pdf