refine pdf export