pdf export works