1,980 questions
1
vote
1
answer
108
views
WooCommerce voucher PDF sometimes not sent after payment — Dompdf process silently fails after render
I have a custom WooCommerce plugin that generates a PDF voucher and sends it to the customer after payment. Most of the time it works perfectly, but occasionally, the email is not sent and no errors ...
0
votes
1
answer
136
views
Pdf document creation from html using laravel and DOMpdf
I am trying to create a pdf report using dom pdf as follows
I have created a function for the export in controller
public function exportData(Request $request)
{
// Get current ...
1
vote
0
answers
121
views
Dompdf not displaying image (jpg or png) in the header using codeigniter 4
I am trying to integrate a logo image into the header of a PDF file. But the image is not displaying in the generated PDF file. Instead, the image is displaying as shown below.
I tried many methods ...
1
vote
0
answers
67
views
tr tag split in two while page break
I am working with Laravel and DomPDF for generating PDF. Below is my code for generating PDF. I report display different in different browser. When I generate PDF it working fine but getting issue in ...
5
votes
1
answer
186
views
Why my custom font isn't working in dompdf? [closed]
i have a problem with loading custom font in dompdf. I use @font-face with src on ttf file but it fails anyway.
In browser dancing script loads normaly and works but in pdf there is some default ...
2
votes
0
answers
86
views
Problem with generating pdf with DOMPDF on Worpress
I'm using Dompdf 3.1.0 to generate PDFs.
However, when I use the same code inside a custom WordPress plugin (WooCommerce hook), the PDF is not generated. There are no errors in the logs, and Dompdf ...
0
votes
0
answers
207
views
Why do base64 images not appear in Dompdf even though they are correctly generated?
I'm generating a PDF using Dompdf in Laravel.
In my Blade view, I'm capturing parts of the page as images using html2canvas and converting them to base64.
Example of my JavaScript code:
const rondes = ...
0
votes
1
answer
87
views
Dompdf image is not displaying in pdf on stagging server locally working fine
I tried almost 5-10 unique ways to do this.
$logoImagePath = public_path("assets/img/main-logo.png");
$logoImage = base64_encode(file_get_contents($logoImagePath));
<img src="data:...
0
votes
1
answer
185
views
How to Add a Box Shadow to an Image in Dompdf?
I am using Dompdf in my Laravel project to generate PDFs, and I want to apply a box shadow effect to an image. However, since Dompdf does not support CSS3, the box-shadow property is not working. I ...
1
vote
0
answers
91
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 ...
-2
votes
1
answer
49
views
DomPDF Class PreserveText not found
I downloaded and installed the dompdf release http://dompdf_3-0-2.zip/
I am not using composer, so I added this line:
require_once '../dompdf/autoload.inc.php';
Running some sample code:
$phpWord = ...
1
vote
1
answer
164
views
DomPDF uses custom font on local server, but not in production [duplicate]
I'm using dompdf 3.1.0. The template html resides in public/templates/reports, while the custom fonts are at public/templates/reports/fonts. My CSS inside the template:
@font-face {
font-...
0
votes
0
answers
51
views
how can I solve fatal Error when using DOMPDF 3.0.2 within an static function [duplicate]
I just updated dompdf to 3.0.2 because the old dompdf version ist not working with newer PHP versions.
If I use this code in my index.php it is working fine:
/** Include domPDF */
require_once 'system/...
0
votes
0
answers
136
views
How to make header and footer fixed in Laravel DOMPDF when the content spans multiple pages?
I'm using the dompdf/dompdf package in my Laravel 9.52 application to convert HTML content into a PDF. My problem is that when the content of the PDF spans more than one page, I want the header and ...
2
votes
1
answer
85
views
Call to undefined method Dompdf\\FrameDecorator\\Page::add_line()
I am trying to send an email with 2 pdf attachments but when in the controller I call getRejectedReport method it return me error says that Call to undefined method Dompdf\FrameDecorator\Page::...