set tmp dir for pdf