fix pdf export management