Questions tagged [laravel-dompdf]
49 questions
4
votes
1 answer
Dompdf Gujarati and Hindi text not showing properly
In my laravel project I am using DOMPDF to generate pdf from html blade file. I want to show text in Hindi or Gujarati as per language selection. Here is my code of controller.
…

Maya Shah
- 950
- 7
- 17
2
votes
0 answers
Install mpdf v8.0.4 for php 7.4 Version
I am running on PHP v 7.4 after an upgrade from the 7.1 version
I am having issues on install mpdf v8.0.4 since its compatible with php 7.4 version
The error facing after ruuning composer update
mpdf/mpdf[v7.0.0-beta1, ..., v7.0.0-beta2] require…

Toots
- 47
- 3
- 12
2
votes
1 answer
PHP errors after installing Dompdf in Laravel
I ran this:
composer require barryvdh/laravel-dompdf
Then I registered in bootstrap/app.php:
$app->register(\Barryvdh\DomPDF\ServiceProvider::class);
Then I tried to publish:
php artisan vendor:publish…

Shohid khan
- 21
- 1
1
vote
0 answers
td data need to repeat in next page while print or generate dom pdf
I have a table with large data. If the data of the a tr does not end on one page, then the rowspan td data will be shown again on the next page. how I can do this ? i have attached an image for better understanding

Asif Anam Khan
- 43
- 5
1
vote
1 answer
How to manage image paths in DOMpdf in laravel 9
Since I updated to Laravel 9 the images in PDFs doesn't get found anymore. Is there any trick with the image source path in Laravel 9? Till now it worked with storage_path() in the pdf's blades.
I use the package Barryvdh\DomPDF
Do anybody know, how…

CruiseLee
- 23
- 1
- 8
1
vote
0 answers
dompdf not generating .ufm and dompdf_font-family_cache.php file
I am trying to use custom font in dompdf while generating pdf file. As i found that custom font works only after generating .ufm and cache file.
Drupal php file
public function GeneratePdf() {
$dompdf = new Dompdf();
$fontDirectory =…

Kango
- 809
- 11
- 27
- 48
0
votes
1 answer
problem with barryvdh/laravel-dompdf can´t use bootstrap styles
Library it´s:
composer require barryvdh/laravel-dompdf
i´m trying to create pdf in my app with laravel 10.20. I created my blade and all content it´s ok.
I have any rows, columns, etc and all my content when i access to route that i can show my…

scorpions77
- 51
- 8
0
votes
0 answers
Dom pdf is return a weird string of code instead of a pdf
I have set up Dom pdf in my Laravel project, but when I generate the pdf, the controller only return a 'weird string of code' instead of the pdf.
My code in te controller:
public function pdfConditions(Request $request)
{
…

Pieter
- 117
- 3
- 10
0
votes
0 answers
DomPDF is taking too much time for large data set
I am facing problem in downloading PDF using DomPDF library in Laravel. When data set is small it works but slow. And i have real scenarios of data in thousands like 80k 0r more than 100k. I cannot use queued jobs or cache etc because its somehow a…

Zeeshan Ali
- 1
- 1
0
votes
0 answers
Laravel 9 dompdf error "Image not found or type unknown"
"Something strange is happening on my Apache 2 server in production where I've deployed my Laravel app. When the server is restarted, all the images in my PDF display correctly, but at some point, the images stop showing up, and I get the message…

SAWADOGO SIDIKI
- 11
- 1
0
votes
0 answers
DomPDF Prevent Header beeing last element of page
Is there any way to get the Y Position of a specific HTML Element? I would like to make a page Break before a heading, if the heading is the last element of the page:
Ill tried already with Javascript, but it seems JS is not working with DomPDF.

derdida
- 14,784
- 16
- 90
- 139
0
votes
0 answers
laravel dom pdf td cell text alignment issue
i'm using barryvdh/laravel-dompdf laravel package for pdfs. In the pdf page (coded in html) when the text is more than one line and the line breaks inside the table cell the second line does not start from the left, it starts somewhere close to the…

peuf
- 1
0
votes
1 answer
Call to undefined method App\Models\PDF::loadView()
controller
namespace App\Http\Controllers\Pdf;
use App\Models\PDF;
use App\Models\TestMcq;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
class TestPdfController extends Controller
{
public function createPDF($id) {
…

Ahmed Nasser
- 3
- 2
0
votes
0 answers
Laravel dompdf character encoding UTF-8
I'm trying to generate a PDF with correct characters using Laravel and dompdf but there is a "?" characters. I have created a test php file where I am trying to find the best solution. If I open an HTML browser I look fine
Take an example from this…

korvon
- 15
- 4
0
votes
0 answers
Laravel DomPDF automatically rotate image to 90 degree. Image is coming from the twilio server. In html view it is working fine
Laravel DomPDF automatically rotate image to 90 degree. In the html view it is working fine. Image is loading from the twilio server.
I have tried all the scripts from the internet but there is not any luck. Because image is coming from the twilio…

Jerry
- 1
- 1