54 questions
1
vote
0
answers
88
views
Laravel app does not generates .jpg or .png photo as background image
I am developing a Laravel application on Windows OS. Among other things, the application needs to generate reports, including a background image within them. I am using the barryvdh/laravel-dompdf PDF ...
0
votes
1
answer
50
views
Laravel DomPDF table border
I am using DOMPDF library for Laravel. I generate pdf using approach from documentation.
$mainPdf = Pdf::loadView('banks_preferred.main', $necessaryData)
->setPaper('...
1
vote
0
answers
50
views
How to merge pdf before download it using dompdf and setasign/FPDF
I have a method for passing data to report.blade
How do I so that when there is a .pdf file in Measurement Picture, the PDF file is merged with report.blade that is exported using a dompdf on the last ...
0
votes
2
answers
308
views
laravel-dompdf: Page count numerical overlap
Using Laravel Framework 10.48.3
I'm using the following in my scripts tag:
<script type="text/php">
if (isset($pdf)) {
$text = "page {PAGE_NUM} / {PAGE_COUNT}";
...
0
votes
1
answer
100
views
Custom webfont incorrectly rendered through laravel-dompdf
I'm generating a document using barryvdh/laravel-dompdf. I want to use the Nunito font in my document.
My controller method:
public function generateSocialBanner(EditionUser $editionUser) {
$...
1
vote
0
answers
209
views
Using Laravel DomPDF to generate shipping labels
I'm trying to generate shipping labels with Laravel-DomPDF on Laravel 10.
My idea is to have two columns and print in ordrer from left ro right with 1x1, 1x2, 2x1 etc...
The HTML template is obviously ...
-1
votes
1
answer
150
views
Laravel - "Barryvdh\DomPDF\Facade not found" error after installing barryvdh/laravel-dompdf [closed]
I'm trying to integrate the barryvdh/laravel-dompdf package into my Laravel 10 project. After installing it via Composer:
composer require barryvdh/laravel-dompdf
I followed the documentation and ...
0
votes
1
answer
592
views
How can I add an SVG image in Laravel Dompdf?
I'm encountering an issue with adding an SVG image to Laravel Dompdf. The image appears in black and white instead of its original colors. How can I resolve this?
Image file
I added this code in the ...
0
votes
1
answer
158
views
Download PDF DomPDF Laravel Nova 4
The Laravel Nova 4 documentation says that to implement a download action I should do it like this:
return Action::downloadUrl('https://example.com/invoice.pdf', 'Invoice.pdf');
But it doesn't work.
...
0
votes
1
answer
319
views
How do I get Laravel DOMPDF working with Sail?
I have a project using Laravel 10 and Lando for a local dev environment. We recently implemented Laravel DOMPDF to turn a Blade template into a PDF.
This has been working fine, so long as we run lando ...
1
vote
0
answers
35
views
Trouble Displaying Images in PDF using Laravel-Dompdf: File Not Found or Unknown Type Issue [duplicate]
I make app to create pdf. Problem is that pdf doesn't display the image. For example I tryed add that in 2 ways:
<img src="http://localhost/images/pages/page-1.jpg">
<img src="{...
0
votes
1
answer
432
views
Laravel: add image on pdf with specific location
builing Laravel API, I have contract PDF file stored in remote server and saved in database with uid, and also online signature file, which is png. now when user clicks sign button, i want to take ...
0
votes
1
answer
211
views
Can't download the PDF file in the due to cwd issue in Laravel Octane server with Swoole
I am using Laravel Octane and laravel-dompdf to generate the PDF. This was working fine when I was using the PHP-FPM and when I replaced PHP-FPM with Laravel Octane with Swoole, it says The provided ...
1
vote
0
answers
85
views
How do I get multiple pdfs of different sizes using dompdf
I have a single php file. I want to convert the html codes in the php page to pdf with dompdf.
My PHP page is like this;
<!--First Page-->
<div class="container">
Page 1
...
0
votes
1
answer
796
views
class not found for DomPDF
I am facing "use of unknown class" error when I am using the alias created for facades :: class in my controller.
$pdf = PDF ::loadView('test', $data);
This line says PDF is unknown class.
...
0
votes
1
answer
482
views
How to get multiple pages and different size(portrait , landscape) with Dompdf [closed]
I have six html pages in the single html file and ı want to convert to pdf with dompdf like below;
page size landscape,
page size landscape,
page size landscape,
page size portrait,
page size ...
0
votes
0
answers
648
views
Permission denied error encountered when using laravel-dompdf
hello guys im trying to save a docx file as a pdf and when i save it its give me an error
public function attr(Request $request)
{
// Validate the form data here as needed
// ...
0
votes
1
answer
237
views
How can I add bookmarks on my laravel-dompdf generated file?
I have a laravel 8.75 application that use barryvdh/laravel-dompdf 2.0.1.
It creates pdf file from database and save it to the storage file. I need to add bookmarks on each dynamic data on the pdf ...
-1
votes
1
answer
167
views
Barryvdh/laravel-domPDF returning Attempt to read property " " on bool [duplicate]
Im using Laravel 9.52.10 and PHP 8.0.28. i have CRUD that display preaching data can print it. that data only can printed per ID, not all of data preaching. but i have an error:
Attempt to read ...
0
votes
1
answer
1k
views
Laravel Maatwebsite Export PDF
Converting HTML to PDF using Maatwebsite I could not achieve below pdf page setting options. Instead, I switched to laravel-dompdf.
With Laravel DomPDF html convert to pdf with few styling issues ...
1
vote
1
answer
4k
views
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 ...
0
votes
0
answers
201
views
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,...
0
votes
0
answers
67
views
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 ...
0
votes
0
answers
125
views
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 ...
0
votes
1
answer
923
views
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 ...
0
votes
0
answers
1k
views
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 ...
4
votes
1
answer
2k
views
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.
$pdf=PDF::loadView('my-...
0
votes
0
answers
372
views
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 ...
0
votes
1
answer
2k
views
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....
0
votes
1
answer
884
views
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 ...
1
vote
0
answers
55
views
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 ...
0
votes
0
answers
77
views
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 ...
0
votes
0
answers
221
views
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 ...
1
vote
1
answer
591
views
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 ...
1
vote
3
answers
2k
views
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 ...
0
votes
1
answer
1k
views
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 ...
0
votes
1
answer
666
views
barryvdh/dompdf not completely showing data in Laravel
i'm working with DomPdf in Laravel. But it not showing all the data.
here's the image (I can't embeded the image because don't have enough reputation) :
IMG1
and this my pdf blade :
body{
...
0
votes
0
answers
562
views
How to responsive multiple column in dompdf
i want to make column responsive in dompdf when doanwloading, in browser already responsive. But when downloading pdf, column not responsive.
[
i already use display:block, beacause i read in article ...
2
votes
1
answer
6k
views
Laravel dompdf taking too much time to generate and download a pdf
I'm recently working on report generation for simple 2 records from database. For generating this report i'm using Laravel dompdf package, but it's taking too long time to download which is not ...
-2
votes
1
answer
2k
views
DOMPDF: How to customize the name of the single pdf, relating to a single client, with the information present in the object
I am trying to create the pdf, using the domPDF library, for each single client present in the table of my application. So far everything ok!
When I go to save the pdf I want the name of the pdf ...
-2
votes
1
answer
104
views
can help me to generate multiple mpdf files with loop without lose configuration?
Image to be attached to PDF
can help me to generate multiple mpdf files with loop without lose configuration, because it always write first file correct but the others with attached image contain ...
0
votes
1
answer
509
views
How to pass variable from controller to blade in loadView of dynamic DOMPDF in sending mails?
Instead of 'john' I want to replace it using the selected user's name from database. Is there a way to this on Mail?
Controller
public function sendEmail(Request $request)
{
$users = ...
0
votes
1
answer
1k
views
Call to a member function get_cellmap() on null in barryvdh/laravel-dompdf
I am using laravel version 9 for doing my project. and there is a feature that needs to let the user export the event ticket. I try to use the package barryvdh/laravel-dompdf . right now I encounter ...
0
votes
1
answer
775
views
Failed without error message: wkhtmltopdf "--enable-javascript" "1" "--javascript-delay" "5000" "--enable-smart-shrinking" "1" "
We all are trying to load a pdf with graph on it and send to email. However when trying to create a pdf file it shows error as failed with out error.
We are using library called as : "barryvdh/...
0
votes
1
answer
2k
views
Laravel Loadview not loading file
when I try to load my file it loads only file URL what is the solution
I try this but it loads only file path in pdf file
return PDF::loadFile(public_path().'/your_html.html')->stream('download.pdf'...
0
votes
0
answers
1k
views
Laravel PDF not downloaded - Laravel dompdf
I am facing a problem where the PDF file not downloaded when button clicked as well. The response status is 200 but nothing happen. Already refer to docs on how to use the laravel-dompdf library. My ...
3
votes
0
answers
6k
views
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/...
0
votes
0
answers
580
views
DOMPDF wrong line break using p and div tag
I have below text when creating pdf file using DOMPDF but it randomly splits the line when using P and DIV tag.
This is a line of text that should not split, actually it will split in DOMPDF.
0
votes
1
answer
1k
views
LARAVEL - DOMPDF - customize footer for first and other pages
I have two footers like this:
1. Footer A
<footer class="footer first">footer for 1st page</footer>
2. Footer B
<footer class="footer second">footer for 2nd, 3rd,...
0
votes
1
answer
441
views
Text blur on print laravel invoice package which is based on DOMPDF
Hi I have created a pdf with Laravel invoice package now the pdf showing in the display is fine but when printing that document fonts get blurred anyone please guide how to solve it??