Skip to content
Advertisement

Tag: mpdf

How to split text into another page if the text is large in table?

My code looks like this: I don’t know why, but mpdf tries to put one TR on one page. But if text is large in TD, mpdf automatically resizes the font size to very small. I need to split my text on two pages without changing the font size. Answer This is documented behaviour: Note: mPDF will always resize tables

mPDF how to leave all content on a single page

I want to export an HTML to pdf using mPDF, but I want everything to be on a single page, without any page breaks. How can I do that? Answer “mPDF has limited scope to control when automatic page-breaks occur, and does not have ‘widows’ or ‘orphans’ protection.” https://mpdf.github.io/paging/page-breaks.html

Importing large number of pdfs into mPDF is causing /fopen to fail

Edit: Updated after assistance from Jan Edit: The code dos not fail until $mpdf->Output($max . ‘ imports .pdf’, ‘D’); is called PHP Version 7.1 MPDF Version 8.0.10 Setasign fpdi_pdf-parser Version 2.0.4 Error Failed to open file (fopen) Compnay Induction (checklist) th v2.pdf Failed to open file (fopen) Information Register for Employees.pdf Failed to open file (fopen) Coshh listings v7.pdf Failed

mpdf output generate error Error detected. PDF file generation aborted: Directive ‘allow_url_include’ is deprecated

I am writing a wordpress plugin and creating a function that generates an invoice and sends it by e-mail. There was a problem generating the PDF file. Each attempt to generate a PDF file ends with the error: Error detected. PDF generation aborted: “allow_url_include” directive is deprecated My code: Answer mPDF is catching an error caused by you setting a

Style is not recognized when using mpdf

Here is my code: Output: I need it. How to fix it. Creating a css file is difficult for me because I use different styles on all tags. Answer You’re using an older version of mPDF. Its current stable release is 2 major versions ahead of the version you’re using. Your code contains a typo. Change $htmls to $html. When

How to use mpdf in codeigniter?

controller: function pdf_question() view: In this code I have created a view file having name pdf-question.php and now I want to export these question into pdf formate for this I am using mpdf codeigniter where I have load M_pdf.php library and mpdf in third party but Its not working it show me an error and i.e. So, How can I

use font in mPDF generated document

I would like you to help me with this issue, I’m dealing for the first time with mPDF which I think it’s great, but I want to display the report with the same type of font as my web, which on its documentations explains how to achieve this, but it doesn’t still seems to work for me. What I did

Advertisement