Working pdf export