public function getSurveyPdfCodes(ClientSurvey $id, ClientSurveyApplicantCodesPdfMaker $pdfMaker): Response 	{ 		if (getUser()->user_id != $id->client_id || $id->survey_type == SurveyType::PPI || $id->survey_type == SurveyType::BA) { 			abort(403); 		}  		$client = getUser()->user;  		$codes = $id->getCodesForPdfGeneration();  		if (empty($codes)) { 			abort(403, (string) __('exceptions.no-codes-to-generate')); 		}  		$url = $client->domain->getPulsQuestionnaireStartUrl(); 		$locale = $client->default_language;  		$id->update([ 			'has_downloaded_codes' => true, 		]);  		return $pdfMaker->generatePdf($codes, $id->client->authParent?->name, $url, $locale, $id->survey_type); 	}