Questions tagged [mpdf]

mPDF is a PHP library for generating PDF files from HTML with Unicode/UTF-8 and CJK support. It is distributed under the GNU General Public License. Although it is slower than its protoplast (fpdf library) it supports Unicode characters while fpdf does not.

mPDF is a PHP class which generates PDF files from UTF-8 encoded HTML. It is based on FPDF and HTML2FPDF, with a number of enhancements.

1514 questions
5
votes
3 answers

PHP mPDF check-boxes checked in PDF

Disclaimer: know nothing about mPDF :( I'm creating a PDF file using mPDF, I've manage to get the table printed successfully. I'm having some issues when it comes to getting my checkboxs checked. The checkboxes does not get checked in PDF view, but…
Sharif
  • 708
  • 1
  • 7
  • 17
5
votes
1 answer

Table well displayed in html but not in the pdf generated with mpdf

I am trying to generate a PDF in PHP using mPDF. A part of my document must be like this: (source: cloudandfun.com) So I wrote for the HTML:
Appellation
(par ordre de préférence)
zakariag
  • 325
  • 2
  • 3
  • 14
5
votes
2 answers

Insert image in pdf in php using mpdf

Here,below is my code for converting an image into pdf using mpdf. $html contains upload/tulips.jpg But,when the function executes the pdf file created and an image icon shows there with the location upload/tulips.pdf. Kindly tell me why this is…
Navya
  • 657
  • 2
  • 10
  • 20
5
votes
3 answers

Convert page to PDF using dompdf

I am trying to convert a PHP page to PDF using dompdf, but I'm not sure of the best way to do it. I have wrote my page how I would like it to be presented in standard HTML/PHP, and would like it to be displayed like so, just as a PDF: My PHP code…
Alex Ryans
  • 1,865
  • 5
  • 23
  • 31
5
votes
1 answer

Attaching a PDF on the fly using mPDF and PHPmailer

I'm using mPDF to generate PDF's when a button is clicked. I am looking for a way to add the PDF to an attachment using PHPmailer. Here is what I've tried: $mpdf = new mPDF(); $mpdf->WriteHTML($output); $emailAttachment =…
Paul Dessert
  • 6,363
  • 8
  • 47
  • 74
5
votes
1 answer

save a PDF file to a directory using mPDF

I have a question regarding the PDF files.I have written the code in order to open a PDF, i manage to output the context in the browser but i want also this PDF file to be saved in a directory. Does anyone know how i will do it? I can post the code…
umasachin
  • 51
  • 1
  • 1
  • 2
4
votes
4 answers

How to define a height of table with mpdf php class

I have to draw a report with mpdf. The report use to display rows. I would like to fix the height of the
(not the height of
) like this : or
but it seems impossible. I'm trying to…
IRIS
  • 61
  • 2
  • 5
4
votes
1 answer

Mpdf - How to set font size before writeCell?

I want to highlight the fact that I am using programmatically mPdf to do some specific writeText / writeCell, etc.. I need to simply increase font size when writing a specific text. Only for this. How?
realtebo
  • 23,922
  • 37
  • 112
  • 189
4
votes
3 answers

Problems when The composer downloading mpdf

C:\xampp\htdocs\presensi\vendor>composer require mpdf/mpdf Using version ^8.0 for mpdf/mpdf ./composer.json has been updated Running composer update mpdf/mpdf Loading composer repositories with package information Updating dependencies Nothing to…
4
votes
4 answers

Export & download html to pdf in codeigniter 3 using mPDF erro:Class 'Mpdf\Mpdf' not found

I am trying to export and download the html view incidentView.php to pdf by pressing print button in incidentView.php, using mPDF.I am able to convert to pdf now even though the loading is very slow,but now I am getting error regarding the data that…
Roxana Slj
  • 311
  • 1
  • 5
  • 23
4
votes
1 answer

mPDF v8.0.4 - Print custom fonts on the PDF file

1° the point should be very simple to solve but i'm struggling hard since three days. 2° I just need to use two fonts with the PDF Roboto-Regular and Roboto-thin. 3° I've already read the manual, but unfortunatly i'm still doing wrong or there is…
Paulo do Porto
  • 606
  • 1
  • 9
  • 24
4
votes
0 answers

Issue exporting Google chart to PDF using mpdf

I created a graph with google charts with the below code: