Category : mpdf

Local Environment: PHP: v8.0.2 Framework: Laravel v8.* mPDF Version: v8.0.10 Deploying With: Laravel Deployer / PHP deployer (deployer) Operating System and Version: macOs Cataline 10.15.5 & Laravel Valet Production Environment: PHP: v8.0.2 Framework: Laravel v8.* mPDF Version: v8.0.10 Product version: Plesk Obsidian 18.0.32. OS version: CentOS 7.9.2009 x86_64 Description It works very well in the ..

Read more

How to setting mPDF generate all data only in one page? I already create function to generate my data to pdf file like $fileName = "installment_".generateUuid().".pdf"; $pdf = LARAVELPDF::loadView(‘invoice.invoice-wa’, $this->strukData); $pdf->save(storage_path(‘app/public/’.$fileName)); I used https://github.com/niklasravnsborg/laravel-pdf And my code output 2 page like Is it possible with a lot of data on one page? Thanks Sourc..

Read more

I am using : https://github.com/mccarlosen/laravel-mpdf/issues to generate pdf , all ok except when i use multi footer , now the footer show only on page 1 (MyFooter1) and 2 (MyFooter2). I need to show staring page2 on all pages (MyFooter2) .I am finding the correct syntax , below my code I used <sethtmlpagefooter name="MyFooter2" page="ON" ..

Read more

I have a problem. I try genrate .docx file to .pdf file with Laravel library "mPDF" and got this error: My code on controller: $domPdfPath = base_path(‘vendor/mpdf/mpdf’); PhpOfficePhpWordSettings::setPdfRendererPath($domPdfPath); PhpOfficePhpWordSettings::setPdfRendererName(‘mPDF’); //Load word file $Content = PhpOfficePhpWordIOFactory::load(public_path( ‘/uploads/word/no12.docx’)); //Save it into PDF $PDFWriter = PhpOfficePhpWordIOFactory::createWriter($Content,’PDF’); $PDFWriter->save(public_path( ‘/uploads/word/result3.pdf’)); dd($PDFWriter); And error: PDF rendering library or library path has ..

Read more

I have a strange problem with niklasravnsborg/laravel-pdf for some reason mpdf won’t accept the instance configurator properties as seen in the code below. I am currently using the latest version of laravel which is version 7.3 PDF::loadView(‘pdf’, $data, [], [ ‘format’ => ‘A4’, ‘instanceConfigurator’ => function($mpdf) { $mpdf->SetWatermarkText(‘DRAFT’); $mpdf->showWatermarkText = true; } ])->save(public_path($path)); I have ..

Read more