Questions tagged [laravel-dompdf]

49 questions
0
votes
0 answers

can't generate image from local server laravel dompdf

I know there's already a lot discussion about this since I already tried to find a way to resolved this, but still failed. this is the code to generate dompdf on the controller // instantiate and use the dompdf class $dompdf = new…
Rankioto
  • 32
  • 3
0
votes
1 answer

Laravel 9 & Dompdf: Too few arguments to function Barryvdh\DomPDF\PDF::__construct(), 0 passed

I'm working with Laravel 9 and Dompdf to generate some pdf files from the information provided on the form, so I tried this: composer require barryvdh/laravel-dompdf And then register it at config.php: 'aliases' =>…
Pouya
  • 114
  • 1
  • 8
  • 36
0
votes
0 answers

Laravel dompdf issue: Call to undefined method Illuminate\Database\Query\Builder::getIterator() - Laravel 9

I have a problem in my code when i want to do export html to pdf feature for my table data with domPdf Laravel 9 When i try to click the feature i get this error Call to undefined method Illuminate\Database\Query\Builder::getIterator() My Controller…
0
votes
0 answers

have trouble with border-radius when page break at table tag when export pdf file using dompdf

I set border-radius for table and when the page break, the end of first table in first page and head of table in second page is not border, how i can fix it? enter image description here here is my code table { border-radius: 5px; …
HwangZu
  • 1
  • 1
0
votes
0 answers

Bootstrap version compatible with DomPDF Laravel

i have a question, after i tried many version of bootstrap to use in dompdf laravel, there's no one can compatible. I've searching in other people same question as me, they said bootstrap 3.3.6 is compatible for dompdf laravel. But after i tried,…
0
votes
0 answers

Problem with laravel/ui while installing laravel-dompdf laravel8

Can someone help me to fix it? while installing composer require barryvdh/laravel-dompdf Errors Problem 1 - laravel/ui is locked to version v2.3.0 and an update of this package was not requested. Problem 2 - nette/schema v1.2.1…
0
votes
0 answers

NotoNastaliqUrdu font dose not support in barryvdh/laravel-dompdf laravel-version 8.6

I'm using barryvdh/laravel-dompdf libray for html to pdf conversion. I faced a issue that custom font like NotoNastaliqUrdu google font doesn't render in pdf view. in normal html font-family is working properly but when i generate pdf and it not…
Salman Quader
  • 195
  • 2
  • 13
0
votes
0 answers

download tailwindcss css classes file

I am using laravel with a package called laravel-dompdf to generate a pdf invoice. I am using tailwindcss in my laravel project for the ui, and want to use it as well to generate the pdf file. The problem is: To generate a pdf file using…
B R
  • 43
  • 1
  • 8
0
votes
0 answers

Dompdf broken images and css over HTTPS

I developed the resource to generate pdf using Lib DOMPDF in my system. But it only works correctly when I'm in the DEV environment that uses HTTP, when I move to the Official environment that uses the SSL certificate generated by Let's Encrypt it…
Kelvera
  • 15
  • 1
  • 6
0
votes
0 answers

Laravel PHPWord "Method loadfile is not defined." (.../vendor/phpoffice/phpword/src/PhpWord/PhpWord.php:148)

Trying this to load a .docx file for eventual conversion to pdf, and PhpWord can't seem to find the loadFile function. use PhpOffice\PhpWord\PhpWord; ... $phpWord = new PhpWord(); $document = $phpWord->loadFile($filePath); Tried reinstalling…
Ishvara
  • 147
  • 2
  • 10
0
votes
0 answers

How to fix encoding of generated pdf using Dompdf

I'm using Laravel 9 and Dompdf to generate some pdf files. And the blade that I'm calling for the pdf files, contains persian/farsi/arabic character languages and therefore the final result will be shown like ????????. So how can I generate utf-8…
Pouya
  • 114
  • 1
  • 8
  • 36
0
votes
0 answers

Dompdf does not show any data on screen

I'm using Laravel 5.8 and installed Dompdf for creating some pdf files as view. So in the Controller method for making pdf files, I added this: public function convertToPdf(Request $request, Order $order) { $args = [ 'order' …
Pouya
  • 114
  • 1
  • 8
  • 36
0
votes
1 answer

laravel-dompdf: getimagesize(): Read of 8192 bytes failed with errno=21 Is a directory

I am using laravel-dompdf to create a pdf file and save it to drive. Unfortunately, i am getting the above mentioned error. I tried different solutions including increasing the memory limit and max upload size but that didn't help. None of the…
MUHAMMAD Siyab
  • 436
  • 1
  • 9
  • 20
0
votes
0 answers

I have a font error when converting from word file to PDF using Laravel

I need to convert word file (Docx) to PDF using Lavevel. But when successfully exporting to PDF, there is a font error. I use PhpWord and dom-pdf. Here is my code: public function ConvertWordToPDF() { $domPdfPath =…
0
votes
1 answer

PDF document generating, Letter 'N' become 'ᴉ' (i upside down) when viewing in safari ios 16

I have a problem with letter generating the letter 'N' become become 'ᴉ' (i upside down). I am working Laravel 9 using barryvdh/laravel-dompdf. In pc it is okay but when I open in my iphone (ios 16) I got this problem. In My controller public…
Khean
  • 99
  • 1
  • 13