public function generatePdf(array $codes, string $name, string $url, DomainLanguages $locale, SurveyType $type): Response 	{ 		if (empty($codes)) { 			throw new NoCodesToGenerateException; 		}  		$logo = $this->createBase64ImgSrcLink($this->getLogoPath($type, $locale));  		$createdPdf = $this->pdf::loadView($this->getViewName(), ['codes' => array_chunk($codes, self::PER_PAGE), 			'url' => $url, 			'companyName' => $name, 			'link' => $logo, 			'locale' => $locale->value, ]);  		return $createdPdf->download($name . '-codes.pdf'); 	}