trying to fix pdf conversion