Category : barryvdh

when i push my laravel 8 project in heroku: remote: Generating optimized autoload files remote: > IlluminateFoundationComposerScripts::postAutoloadDump remote: > @php artisan package:discover –ansi remote: remote: In ProviderRepository.php line 208: remote: remote: Class "BarryvdhDebugbarServiceProvider" not found remote: remote: remote: Script @php artisan package:discover –ansi handling the post-autoload-dump event returned with error code 1 remote: ! WARNING: ..

Read more

Hi I have problem with open generated pdf from DOMPDF in program Adobe Reader DC. In the others programs (Google chrome, Microsfoft Edge…) I can open pdf file withous problems. My code in controller: $pdf = DOMPDF::loadView(‘invoice.showpdf’,[‘invoice’=>$invoice]); $pdf->setPaper(‘A4’); $pdfpass = $invoice->klientfaktury->pdfpassword; if ($pdfpass != null) { $pdf->setEncryption($pdfpass);// Setting password } return $pdf->stream(‘$invoice_’.$invoice->number.’.pdf’, array("compress" => 0, ..

Read more

Good day I was using barryvdh/laravel-domPDF and came across the error "call to a member function get_cellmap()on null". Im using laravel 8.42.1 and php 8.0.3 im not sure what it could be. this is what i’m trying to render. <div> <div class="md:grid md:grid-cols-3 md:gap-6"> <div class="mt-5 md:mt-0 md:col-span-2"> <form action="#" method="POST"> <div class="shadow sm:rounded-md sm:overflow-hidden"> ..

Read more

I am trying to retrieve an image file from the /tmp directory and display it in a blade view as well as laravel barryvdh dompdf in laravel. $pdf = PDF::loadView(‘pdf’, compact(‘tmpFile’)); return $pdf->stream(); When i stream the pdf i get the following error My view code looks like this <span>@if($tmpFile !== null)<img src="{{$tmpFile}}" height="70px" width="120px">@endif</span> ..

Read more

I am trying to make pdf using baaryvdh/dompdf in laravel but while installing the package using the command: `composer require barryvdh/laravel-dompdf` getting the error: Using version ^0.9.0 for barryvdh/laravel-dompdf ./composer.json has been updated Running composer update barryvdh/laravel-dompdf Loading composer repositories with package information Updating dependencies Your requirements could not be resolved to an installable set ..

Read more

As per documentation, we print the page number on each pdf page but my problem is I want to use the PHP variables inside dom script tag which I can’t <script type="text/php"> if (isset($pdf)) { $font = $fontMetrics->getFont("Arial", "bold"); $pdf->page_text(555, 745, "{PAGE_NUM}", $font, 7, array(0, 0, 0)); } </script> @php $page = "{PAGE_NUM}";// it prints ..

Read more