1,513 questions
0
votes
2
answers
203
views
HTML <img> not rendering in mPDF on live server, but $mpdf->Image() works
I'm facing an issue with mPDF where HTML <img> tags are not rendering on my live server, but they work perfectly on localhost.
What works:
Using direct mPDF method:
$mpdf->Image('https://...
0
votes
0
answers
53
views
Writing accentuated characters doesn't work
I'm having problems figuring out to make mpdf work with accents.
The following code always break, even with a single accentuated character.
$mpdf = new Mpdf();
$mpdf->WriteHTML(mb_convert_encoding('...
0
votes
0
answers
48
views
Load headers/footers without creating a page
I’m trying to generate a single PDF with multiple headers/footers and different page formats/orientations.
Here’s the situation:
I have a loop that dynamically changes the page format and orientation....
0
votes
1
answer
94
views
mPDF adds blank first page when rendering large HTML content with <table>
I'm generating a PDF from HTML using mPDF, and when the document contains a large amount of content, an almost blank first page is added unexpectedly. This only happens with longer documents — shorter ...
0
votes
0
answers
132
views
Can't get bold text in mpdf
Once upon a time it all worked well. Recently I updated mpdf and it seems that now tags along wth related font-weight:bold styles do not work anymore.
Css are loaded, because I can succesfully see ...
0
votes
1
answer
87
views
Adjusting gaps between cells when generating pdf with mPDF and phpSpreadsheet
I am using Mpdf to generate a pdf from a phpSpreadsheet object. It works pretty well, but if a numeric cell is followed by a string cell I get no gap between the cells. I suspect this is because the ...
0
votes
1
answer
79
views
Create time limited pdf in any language
I am able to create normal PDF documents using mPDF, a PHP libraries.
I am also aware that using Adobe PDF, I can create a pdf document that is password restricted, or e-signed.
Now, I am trying to ...
0
votes
0
answers
137
views
When I convert Excel to PDF, it deletes an image
I have managed to convert an Excel file to PDF, but the image I have in the Excel file is deleted when I convert it to PDF.
I also leave an image of the Excel file and the PDF.
File Exel
File PDF
I ...
1
vote
1
answer
124
views
My PHP is 7.4 and composer says it is 5.4
I am running Centos 7 with Plesk my Plesk says the php module 5.4.16 is not even loaded.
When I run php -v I get:
PHP 7.4.33 (cli) (built: May 7 2024 14:26:50) ( NTS )
Copyright (c) The PHP Group
...
1
vote
2
answers
118
views
mpdf manual integration issue
I manually downloaded mpdf 8 files to the application\third-party
..Also Psr\log downloaded in application\psr\log .
I modified the path in Mpdf.php and i got this.
An uncaught Exception was ...
1
vote
0
answers
90
views
mpdf puts outline around transparent area of a background
Good day everybody!
I am trying to generate pdf file out of html code using mpdf library.
My problem is the following:
I have two layers with z-index 0 and 5
Beneath is the div with background image ...
1
vote
1
answer
207
views
Using PHP MPDF, I need to write Hebrew or Arabic text to specific location in PDF
I am creating a functionality for signing PDF files with dynamic data. I use screenshot of PDF where user can click on specific areas of it and then (by coordinates of a click) automatically populate ...
0
votes
1
answer
713
views
mPDF QR Code not displaying in PDF using mpdf/qrcode library
I am using mPDF along with the mpdf/qrcode library to generate QR codes and embed them in PDF documents. These PDFs are generated from data extracted from XLS files using PHPSpreadsheet. The entire ...
0
votes
1
answer
650
views
mPDF auto page break in a table row with long text
I want to switch from TCPDF to mPDF. In my document, I'm using a two column layout which itself contains subtables that might have different height, so it looks like a fluid layout. With TCPDF it ...
0
votes
0
answers
58
views
How to attach Referer in the PDF which is generated using mPDF library
As I am generating a PDF using mPDF library. My concern is that, the PDF contains the assets (like images), these images having the domain restriction (i.e. no one can access these assets directly, ...