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
-1
votes
3 answers

mPDF ignoring Paragraph

align Center

i create a PDF using mPDF version 5.5. The HTML includes a table with this HTML code:

Programming

Rodniko
  • 4,926
  • 20
  • 69
  • 93
-1
votes
1 answer

How can mPdf rotate page in existing file in PHP?

I have PDF in /some_path/file.pdf. Using mPdf and PHP I would like to open the file, rotate all pages 90 degrees and save under the same name. How do I do that?
-1
votes
1 answer

JavaScript not working in mPDF

I am using mPDF for PDF generation in PHP. It is working fine with no issue. What I want if user is not logged in then I would like to show error in alert box and after that redirect to index.php. But due to some reason that I don't know it is not…
Roxx
  • 3,738
  • 20
  • 92
  • 155
-1
votes
1 answer

Codeigniter mpdf is not displaying images in live server

I have used mpdf for my codeigniter Project to print ticket with header image and it is working in my local machine while I moved source to test server, the images are not displaying in generated PDF. Is the Permission issue? Is the invalid SSL…
-1
votes
1 answer

Page number for dynamically generated pages in mPDF

I am using mPDF with Codeigniter for creating PDF files. I have a problem when adding page number. I have some result sets that are generated via database queries and I pass them to my html file to display that data. According to the number of…
Kali
  • 3
  • 1
  • 4
-1
votes
1 answer

HTML to PDF with mpdf table is not centered

I have used mpdf to output some html to a pdf. I am not sure why mpdf is not inserting a top or right margin on the PDF yet the left side seems to have one: I want to just have the content in the horiztonal center as it is cutting off text on the…
ComputerLocus
  • 3,448
  • 10
  • 47
  • 96
-1
votes
1 answer

Why can't server find an included file

Can anyone tell me what is going on here? Fatal error: require_once(): Failed opening required '/../../../application/libraries/includes/functions.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /../../../application/libraries/mpdf.php on…
unplugngo
  • 175
  • 1
  • 1
  • 9
-1
votes
1 answer

Html Code Hex always shows small rectangle

In pdf i want to show tick mark by using code hexa ( ✔ ). But It shows as small rectangle in pdf.I tried Code Decimal also but same result in pdf. But shows perfectly in web page.How can i show tick in pdf? Iam using mpdf plugin to generate…
Rex Rex
  • 1,030
  • 1
  • 8
  • 29
-1
votes
1 answer

mpdf style not working for input type

I am creating pdf using HTML i want to give style to input type but it is not working. I have following code $data='