export as pdf function is added but not working