src/PDF.php
protected function processOutput($view, $data = [])
    {
        $name = $this->generateFileName();

        $path = __DIR__ . DIRECTORY_SEPARATOR . "{$name}";

        file_put_contents($path, $this->generateView($view, $data));

        $this->getPhantomProcess($path)->setTimeout(0)->mustRun();

        return $path;
    }
protected function processOutput($view, $data = [])
    {
        $name = $this->generateFileName();

        $path = __DIR__ . DIRECTORY_SEPARATOR . "{$name}";

        file_put_contents($path, $this->generateView($view, $data));

        $this->getPhantomProcess($path)->setTimeout(0)->mustRun();

        return $path;
    }
protected function processOutput ( $ view , $ data = [ ] ) { $ name = $ this -> generateFileName ( ) ; $ path = __DIR__ . DIRECTORY_SEPARATOR . "{$name}" ; file_put_contents ( $ path , $ this -> generateView ( $ view , $ data ) ) ; $ this -> getPhantomProcess ( $ path ) -> setTimeout ( 0 ) -> mustRun ( ) ; return $ path ; }
Process pdf output for the view.

@param string $view
@param array  $data

@return string
Process pdf output for the view .