public function generatePdf(string $view, ?bool $isPpi = false): string 	{ 		$browserFactory = new BrowserFactory(config('custom.chromium_path'));  		// starts headless chrome 		$browser = $browserFactory->createBrowser([ 			'noSandbox' => true, 		]);  		try { 			$page = $browser->createPage();  			$timeout = config('custom.chrome_pdf_timeout_duration') * 1000;  			$page->setHtml($view, (int) $timeout);  			$data = $page->pdf($this->getOptions($isPpi));  			return base64_decode($data->getBase64((int) $timeout)); 		} finally { 			$browser->close(); 		} 	}