pdf generation with updated protocol