update and regenerate pdf