1,518 questions
-3 votes
0 answers
38 views
Why isn't my custom font working with mPDF? [closed]
I already know the solution, but I thought I'd post it here in case anyone else has the same issue. My marketing department asked me to embed a custom font into my PDFs generated with mPDF. I followed ...
0 votes
0 answers
27 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
26 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
69 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
79 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
57 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
60 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
30 views
Pre-Calculate pages taken for each html section written to mPDF for TOC item page numbers
I want to detect the pages a $mpdf->WriteHTML($html); takes so that I can use it to insert the page number for each item of a dynamically generated TOC in a PDF using mPDF. $html .= '<h2 style=&...
0 votes
0 answers
118 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
107 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
90 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
73 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
170 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
538 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
496 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 ...