For generate and downloading pdf with laravel i use this package http://ift.tt/1FuhzsR I want to download a view as a pdf with a this package and give this error When i return view everything is okay and shows correctly But when i use this package to download give error i use it on A controller
return $this->pdf
->load(view('allPdf' , compact('results' , 'groupByClass' , 'groupByMadrese' , 'groupByMantaghe' , 'groupByOstan' , 'groupByGender' , 'groupByKol'))->render())
->download();
// return view('allPdf' , compact('results' , 'groupByClass' , 'groupByMadrese' , 'groupByMantaghe' , 'groupByOstan' , 'groupByGender' , 'groupByKol'));
Return View works well but download a pdf give me this error
DOMPDF_Exception in stylesheet.cls.php line 651:
Invalid CSS selector syntax: invalid attribute selector:
��?�_wެN��ݻw��i�����-B�f��r�W��h0��?
��>U�Sy�v~����ߪy�=���y�(�����#�Z�V�
����iv|�x7[�f�6��z�o���?����|��_u��æXW
������ǝ�cZv��_��m9߭��;^�w��f�
��mO�e���_���;��jy�T�>T�ީ�|���^��
�x���6G��y�[|y���j{7x.�j�.�
in stylesheet.cls.php line 651
at Stylesheet->_css_selector_to_xpath('��?�_wެN��ݻw��i�����-B�f��r�W��h0��?��>U�Sy�v~����ߪy�=���y�(�����#�Z�V�����iv|�x7[�f�6��z�o���?����|��_u��æXW������ǝ�cZv��_��m9߭��;^�w��f���mO�e���_���;��jy�T�>T�ީ�|���^���x���6G��y�[|y���j{7x.�j�.�') in stylesheet.cls.php line 850
at Stylesheet->apply_styles(object(Frame_Tree)) in dompdf.cls.php line 872
at DOMPDF->render() in Dompdf.php line 70
at Dompdf->render() in Dompdf.php line 88
at Dompdf->show(array('compress' => '1', 'Attachment' => '1')) in Dompdf.php line 101
at Dompdf->download() in UploadController.php line 167
at UploadController->allPdf()
at call_user_func_array(array(object(UploadController), 'allPdf'), array()) in Controller.php line 80
at Controller->callAction('allPdf', array()) in ControllerDispatcher.php line 146
at ControllerDispatcher->call(object(UploadController), object(Route), 'allPdf') in ControllerDispatcher.php line 94
at ControllerDispatcher->Illuminate\Routing\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 52
at Pipeline->Illuminate\Routing\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 103
at Pipeline->then(object(Closure)) in ControllerDispatcher.php line 96
at ControllerDispatcher->callWithinStack(object(UploadController), object(Route), object(Request), 'allPdf') in ControllerDispatcher.php line 54
at ControllerDispatcher->dispatch(object(Route), object(Request), 'App\Http\Controllers\UploadController', 'allPdf') in Route.php line 174
at Route->runController(object(Request)) in Route.php line 140
at Route->run(object(Request)) in Router.php line 724
at Router->Illuminate\Routing\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 52
at Pipeline->Illuminate\Routing\{closure}(object(Request)) in VerifyCsrfToken.php line 64
at VerifyCsrfToken->handle(object(Request), object(Closure))
at call_user_func_array(array(object(VerifyCsrfToken), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 136
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 32
at Pipeline->Illuminate\Routing\{closure}(object(Request)) in ShareErrorsFromSession.php line 49
at ShareErrorsFromSession->handle(object(Request), object(Closure))
at call_user_func_array(array(object(ShareErrorsFromSession), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 136
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 32
at Pipeline->Illuminate\Routing\{closure}(object(Request)) in StartSession.php line 64
at StartSession->handle(object(Request), object(Closure))
at call_user_func_array(array(object(StartSession), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 136
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 32
at Pipeline->Illuminate\Routing\{closure}(object(Request)) in AddQueuedCookiesToResponse.php line 37
at AddQueuedCookiesToResponse->handle(object(Request), object(Closure))
at call_user_func_array(array(object(AddQueuedCookiesToResponse), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 136
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 32
at Pipeline->Illuminate\Routing\{closure}(object(Request)) in EncryptCookies.php line 59
at EncryptCookies->handle(object(Request), object(Closure))
at call_user_func_array(array(object(EncryptCookies), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 136
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 32
at Pipeline->Illuminate\Routing\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 103
at Pipeline->then(object(Closure)) in Router.php line 726
at Router->runRouteWithinStack(object(Route), object(Request)) in Router.php line 699
at Router->dispatchToRoute(object(Request)) in Router.php line 675
at Router->dispatch(object(Request)) in Kernel.php line 246
at Kernel->Illuminate\Foundation\Http\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 52
at Pipeline->Illuminate\Routing\{closure}(object(Request)) in CheckForMaintenanceMode.php line 44
at CheckForMaintenanceMode->handle(object(Request), object(Closure))
at call_user_func_array(array(object(CheckForMaintenanceMode), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 136
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 32
at Pipeline->Illuminate\Routing\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 103
at Pipeline->then(object(Closure)) in Kernel.php line 132
at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 99
at Kernel->handle(object(Request)) in index.php line 54
Other error in page! Thanks
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire