Most anwered "mpdf" questions
77 questions
Sort by count of
-
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…
-
4
votes2
answers1621
viewsmPDF - Error generating PDF | Message: preg_replace():
I’m using mPDF to generate the PDF: $this->load->helper('mpdf'); $this->data['dadosboleto'] = $this->boleto_model->GerarBoletoCEF($id_cliente, $data_inicial, $data_final);…
-
1
votes2
answers1006
viewsPHP - Highcharts - PDF
I am using Mpdf to make some values that I have saved in SESSIONS in php become a report, so far so good, but the page that I want to turn into report has graphics Js, Highcharts, I don’t know how…
-
1
votes2
answers2840
viewsPage number on all mpdf pages
How to make the page number appear in the footer on all pages? I have briefly the code below, but the way it is, the page number only appears on the last page, how to make it appear on all pages?…
-
3
votes2
answers1127
viewsMultiple downloads with PHP and mPDF
I am trying to perform a function in PHP that performs several downloads of the PDF file within a loop. The problem is that it only downloads once the file independent of the array size. Follows…
-
0
votes2
answers92
viewsSeparate clients in foreach with mpdf
my scenario is as follows, I file a pdf using mpdf library and this pdf file is a query of intervals between client code and event date. Ex.: code: 0001 to 0004 and 0000-00-00 to 0000-00-00. It is…
-
0
votes2
answers227
viewsFixed size DIV with CSS (generate PDF with MPDF)
I need a DIV with fixed size in centimeters width:12.5cm; and height:7.5cm;. I can keep these sizes when loading the view, but when I use PHP’s mPDF class, it ignores the height and increases it…
-
2
votes2
answers1075
viewsmpdf only displays in firerox
I am using mPDF and it is only generating the reports correctly in Firefox or opening by IE. If I try to open the file with PDF reader it returns the failure error when loading PDF document.…
-
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
answer261
viewsProblems with php printing with file_get_contents(); - mpdf
I am using mpdf to generate a report, and for this I am calling another file .php who has the information, through file_get_contents();. It is displaying the contents of this file, only it does not…
-
1
votes1
answer997
viewsHow to fix overlaid text in header with MPDF library
I am having a problem with the header in relation to the body text while generating a PDF. The header is being overwritten by the body text, how to resolve this? I’m using the method SetHTMLHeader…
-
-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
answer1245
viewsError mPDF library
I’m having problems with mPDF library, I searched the internet for some tutorials but did not solve my problem. when I try to access an error page : Error - mPDF requires mb_string functions. Ensure…
-
1
votes1
answer3372
viewsHow to view Tables in pdf with MPDF library?
I have an html that is automatically generated by a wysiwyg component (a text editor) and within one of the texts I generated, this one has a table and this table appears normally in html, however I…
-
0
votes1
answer365
viewsGenerating PDF with MPDF from BLOB
Well I need to generate a PDF from a BLOB field saved in the database, my idea is to upload PDF transforming it into BLOB so as not to occupy disk space and facilitate the transport of the same. I’m…
-
2
votes1
answer749
viewsHandling multiple lines of code within a variable
I am developing a dynamic report with mPDF, but I am not able to put my data inside a variable to be able to output it. My page is designed like this: $html = '<div class="box-content no-padding…
-
3
votes1
answer805
viewsMPDF - Start pagination with variable numbering
I have an application and need to print a document using the class mPDF, however, I need the number of the paging start, for example from the number 43, 44, 45 and so on and not from the 1, 2, 3,…
-
0
votes1
answer278
viewsReport in mPDF only return a single record when receiving data via POST
I am trying to generate a PDF with data sent via POST. insert link description here The os-list.php file is a report that the data changes according to the filter. I am sending this data but only…
-
1
votes1
answer1093
viewsTable about Header and Footer in mPDF
I have a pdf generated by mPDF that the table is overwriting my header and footer. I put the code in Gits. insert link description here How to solve this?…
-
1
votes1
answer499
viewsblank pdf with mpdf
Galera I have this code where it returns me values direct from the bank, but at the time I click pdf, it appears only the company logo. $conteudo_html = ""; if (isset($_POST['pdf'])) {…
-
3
votes1
answer598
viewsPrint 2 records per page with Mpdf
My problem is this: I need to print duplicates. I am using it to generate the Mpdf. When I need to emit only one blz, it works perfectly, but when I need to print more, it cuts, there is a part on…
-
-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
answer1004
viewshtml contains invalid utf-8 Character(s) MPDF 6.0
I have a text in blob in the database with the accentuation and such.. when I run it through mpdf IF is not placed utf-8_encode in the read variable returns me this error. I asked the question…
-
0
votes1
answer508
viewsHeader and footer in mpdf works for nothing
I have a problem with the mpdf and I really need help. I can’t put the header and footer in the report for nothing, even putting SetHTMLFooter and the SetHTMLHeader doesn’t work. I tried version…
-
2
votes1
answer2020
viewsMaximum Execution time of 30 Seconds exceeded MPDF
When running local the PDF generates normally, but on the server it exceeded the time limit and does not open. <?php require_once "../mpdf60/mpdf.php"; require_once "../DAO/conexao.php";…
-
3
votes1
answer496
viewsHow to include generated php file in mpdf
I’m using the library mpdfto try to display in pdf a file created in php But I’m having a hard time making the same thing work, and I think the way I’m trying to be is not the right way. The archive…
-
1
votes1
answer264
viewsHTML + PHP concatenation
Can someone give me a light on better practice of variable concatenation. I’m doing like this: $html=" <td> <span class='campotitulo'>"; echo $dadosboleto["codigodebarras"]; $html =…
-
0
votes1
answer1016
viewsPDF does not generate all pages with mPDF
I have a query that returns me 8,093 records both in the database and in a PHP system. I’m making a report using mPDF that regardless of the filter, it only generates 6 pages, which in my opinion,…
-
2
votes1
answer620
viewsGenerate report in the background in php
In the system that I am developing has reached the most critical part that is the generation of reports. I wish to generate a report that when requested by the client, he informs a message saying…
-
0
votes1
answer1548
viewsSave PDF file to PHP temp
Is there any class, such as mPDF or fpdf, that can send its output to a temporary file, or something like that, to be sent via email in the same? The demand is as follows: I need the email to be…
-
0
votes1
answer89
viewsRecover field without include/require
I have a report created in mPDF that performs a select through the following function that is found on the page "registra_pessoa.php": include_once("registra_pessoa.php"); $pessoas =…
-
2
votes1
answer913
viewsExport CRUD list with MPDF + Ob_start()
Good morning guys, I’m developing a CRM using the framework CodeIgniter and I’m not able to export some lists CRUD using the library MPDF. I’m trying to use the function ob_start() as indicated in…
-
-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 6 years, 10 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 ->…
-
0
votes1
answer955
viewsMpdf in codeigniter
I’m using the library Mpdf in my project. I installed via Composer and locally with php version 7.1 (O php of the server in production is 7.2) and is enabled composer_autoload of CodeIgniter.…
-
0
votes1
answer212
viewsGenerate PDF file with footer only on the last page using mPDF v 5
I’d like some help with the mPDF. I am trying to set up a footer always on the last page and I would like to know if this is possible. Files may contain 1, 2 or more pages, but I need the footer to…
-
3
votes1
answer1676
viewsHow to add header and footer to mpdf
I’m doing a work where I have to generate a PDF by mPDF and it generates correctly, but from the moment I add header or footer, it stops working and does not generate the PDF, the goal was to add…
-
-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…
-
-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…
-
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…
-
-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…
-
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…
-
1
votes1
answer555
viewsError generating PDF report with mpdf60
For a few days now I’m trying to generate a PDF report with PHP, I found several examples on the internet and all gives the same error, below I put the example code and the error print. My Xampp…
-
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…
-
1
votes1
answer115
viewsAlignment of div’s on the right
I am unable to align the div’s right into my mpdf report. Below contains the report print and code. Below the code: </head> <style type='text/css'> .dados_principais { border: 1px solid…
-
1
votes1
answer2134
viewsInclude CSS when generating a PDF using PHP’s MPDF class
Good morning! I need to generate a report, in this report I have some CSS for better organization. I can generate the PDF, but the styles are not loaded next to the HTML. I’ve tried to put the CSS…
-
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…
-
3
votes1
answer200
viewsProblem with mPDF and Codeigniter
I have code on Controller down it is working perfectly, however I want to set my own title and when I try to SetTitle() he returns me this error: Call to a Member Function Settitle() on null public…
-
-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…
-
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…