working resume to pdf function