Most voted "mpdf" questions
77 questions
Sort by count of
-
0
votes0
answers129
views -
0
votes0
answers619
viewsBreak page with mPDF when changing ID
I’m trying to break a page with mPDF and PHP by changing the ID of the record, my information is on a table, but I do not know how to do, because my attempts with the $mpdf->AddPage(); failed. I…
-
0
votes1
answer322
viewsForm does not direct to another page when using MPDF
I have a form that when sent, executes an action that directs to another PHP page, where several scripts are executed and at the end is generated a PDF file to download. All scripts and PDF…
-
0
votes1
answer291
viewsHow do I take a view image (html) and send it to a controller (php) using codeigniter?
I need to give a picture of mine view to the controller, be it just the string with the url or the whole html element, for me it doesn’t matter because I will use to mount a pdf through the mpdf, am…
-
0
votes1
answer131
viewsForeach with the mPDF library
Hello! I’ve got a boring problem I can’t seem to solve. I need to include a foreach in my report using the mPDF library, but I couldn’t find a way to do this in the middle of the HTML code I had…
-
0
votes0
answers221
viewsMPDF class - Base64 images
good afternoon, I am using a mdpf class to generate the PDF of a file, but when using an image in Base64 inside a <img> model my image did not appear Function: $date = date("dmYHi"); $mpdf =…
-
0
votes3
answers40
viewsPrinting only the last result
I’m putting together a PDF by MPDF, using a HTML. But he has printando only the last result and should printar all, for it is within one foreach. How to make it to print all the result one in each…
-
0
votes1
answer465
viewsMPDF php class - How to display images within Tables
In the code below, I intended to place an image inside the table displayed in PDF, but the image is not displayed and a box with "X" red. As I put the image "inside" the mysqli_fetch_assoc? In the…
-
0
votes1
answer224
viewsPHP mPDF barcode problems
I receive a URL of a billet generated in ASP, use the mPDF class to send this billet to the server, recover the generated billet and send by email with Phpmailer. What happens is that in gmail the…
-
0
votes1
answer119
viewsChange file name when sending email
I am sending emails with PHP mPDF files, but there is a situation where I recover a URL that contains a boleto, from that URL I take the content and saved in a temporary folder on the server, but I…
-
0
votes0
answers299
viewsmPdf 7 does not work on the server
Hi, I have in my machine the mPdf v.7 that works normally, but when I go up, it’s giving an error that seems to be related to deprecated call methods. Deprecated: Methods with the same name as their…
-
0
votes1
answer126
viewsBreak mPdf page using view
I am using mPdf generating the pdf directly through a view because using the methods via php I could not make the css of my page work properly $pdf = \PDF::loadView('contrato', array('desconto'…
-
0
votes1
answer377
viewsCakephp error: Class 'mPDF' not found
I installed mPDF by the prompt on the Friends Of Cake github, and followed the instructions as on the github, but it is giving mPDF class error not found and line error $mpdf = new mPDF();, giving…
-
0
votes0
answers162
viewsMpdf Error Writing File to a Directory
I am generating pdf file using the MPDF but I need to write it in a directory so that later via php I can take the file and send by email I am generating the file as follows $dir =…
-
0
votes2
answers49
viewsText-Align in table with MPDF
Good evening, everyone. I am using summernote to create/manage texts, and Gero pdf using the MPDF library. However the alignments, (left, center and right), when used from the cells of a table, are…
-
0
votes1
answer97
views -
-1
votes1
answer461
viewsHow to print cable with dynamic values in mpdf?
Personal I have a function that returns a $html containing a list of users, until here this working. my problem and when trying to generate pdf I printed header with last user of the list, not doing…
-
-1
votes1
answer851
viewsHeader and footer do not work on mpdf
I’m taking a look at mPHP to learn how to make reports with PHP, due to a case that occurred in my work, now I want to take care and learn how to use such tool, but I’m having problems(I tried to do…
-
-1
votes1
answer432
viewsProblems to generate PDF with mPDF
I’m having 3 problems with that code for generate PDF with the mPDF: 1 ) Are being generated 4 pages instead of 1 which is what the content fills. 2 ) The style CSS doesn’t work 3 ) A only image who…
mpdfasked 5 years, 8 months ago Carlos Rocha 1 -
-1
votes1
answer140
viewsExtreme difficulty generating PDF with PHP or Javascript
Extreme difficulty generating PDF with PHP or Javascript I’m here at the attempt of generate PDF file for HTML. I made 3 attempts. The HTML and the CSS are the same to the 3 attempts. Try 1 ->…
-
-1
votes1
answer49
viewsAppear only field typed pdf
Good guys, I have a register with several inputs, where I have a select of dependents and it is possible to write up to 8 dependents. After completing the registration a pdf is generated and in this…
-
-1
votes1
answer3783
viewsGENERATE PHP REPORT
I have a database in which there are two tables: CUSTOMERS BILLETS In my VIEW (Codeigniter), the user will select a period (Ex. 01/03/2018 to 31/03/2018) to generate a report of all billets that…
-
-1
votes1
answer52
viewsPHP/Mpdf - Display all mysqli field results
I’m trying to display all the results of a field in mysqli via php, and display in mpd, but it’s only returning 1 line, can anyone help me please ? <?php session_start(); require_once __DIR__ .…
-
-1
votes1
answer65
views -
-2
votes1
answer35
viewsPdf header with absolute position
Good afternoon to all!! I am generating the pdf of a data with mpdf, and everything works except for the header that is generated and seems to be configured with 'position:Absolute", can you change…
-
-3
votes1
answer230
viewsImage does not display in mpdf
I’m not getting to put the logo in the header of mpdf. Does not display and shows any error... The PDF generates, with the text, but without the logo. $mpdf = new \Mpdf\Mpdf();…
-
-4
votes1
answer1258
viewsProblem generating PDF with mPDF in hosting
The following is, I installed mPDF via Composer to develop the localhost project (on the PC). Everything works normally on the machine. I uploaded the VENDOR folder to the hosting, but it’s not…