fixed pdf conversion