Most voted "mpdf" questions
77 questions
Sort by count of
-
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);…
-
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,…
-
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…
-
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…
-
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…
-
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…
-
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…
-
3
votes0
answers330
views -
2
votes0
answers375
viewsHow to Force Download mpdf Files Using Ajax
I am trying to download pdf files using the library mpdf. Calling the php page in the browser it works normally. Example: require_once 'mpdf/mpdf.php'; $mpdf = new mPDF(); $boleto =…
-
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…
-
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";…
-
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…
-
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…
-
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.…
-
2
votes1
answer101
viewsMPDF mounting with php foreach , bootstrap and html
I am trying to generate the MPDF, but this error appears: PHP Parse error: syntax error, Unexpected 'foreach' (T_FOREACH) This error is accusing in the second line that is the first foreach. $prova…
-
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
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
votes0
answers665
viewsSend PDF in Attachment mPDF, phpmailer
I have the following code in PHP: error_reporting(E_ALL ^ E_DEPRECATED); $this->load->helper('mpdf'); $this->data['dadosboleto'] = $this->boleto_model->GerarBoletoCEF($id_cliente,…
-
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…
-
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?…
-
1
votes0
answers161
viewsmPDF - Generate PDF with cover and contents
I need to generate a PDF with cover, back cover and content. I’m searching the database for the name of the backgrounds and content. So far, so good. I did the following procedure: First I searched…
mpdfasked 8 years, 2 months ago Sr. André Baill 6,946 -
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
votes0
answers128
viewsHeader and footer problems in report with mPHP
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
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'])) {…
-
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…
-
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 =…
-
1
votes0
answers163
viewsmpdf is returning me a string instead of generating the pdf
I’m using the library mpdf in my project, however at the time of generating the document it is returning me a string and is not generating anything, you know what can be? Google Chrome Developer…
-
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…
-
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…
-
1
votes0
answers305
viewsError when instantiating object inside a namespace
I’m trying to use the mpdf library to print in PDF. However, the following error is occurring when instantiating the library: Fatal error: Trait 'Mpdf\Strict' not found in…
-
1
votes0
answers23
viewsHow to show the output value of a checkbox on the screen?
I need to show in pdf the value of a checkbox but the output shows nothing about the value of the checkbox. This is my html form <form…
-
1
votes0
answers251
viewsMargin problem when generating PDF with MPDF
I need to know how to take the margin or edge of the mpdf pages, at first I wanted to create a pdf file that had the first page with this background = background: linear-gradient( 40deg, #4169E1…
-
0
votes0
answers450
viewstake time to generate a pdf with mPDF Kartik for Yii2
I am generating a pdf with 41 and this taking about 3 minutes, would be able to generate this file faster? follows the code: $pdf = new Pdf([ // set to use core fonts only 'mode' =>…
-
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…
-
0
votes0
answers396
viewsHow to use foreach with mPdf library?
Hello, my friends. I’m in a tough spot, I know what it is, but I can’t fix it. Well, I’m using the mPDF library to generate reports, it’s great and very simple to use. I am bringing information from…
-
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…
-
0
votes0
answers408
viewsmPDF horizontal - PHP
I need to generate a report PDF, with the following specifications: $this->load->helper('mpdf'); $html = $this->load->view('relatorio/interessados_relatorio_impressao', $data=NULL,…
-
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…
-
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…
-
0
votes0
answers63
viewsIs it possible to remove the download button in mpdf?
I would like to remove the download button, such as the Print button. Is there a solution? I already went to mpdf.php and removed the case’D': but it had no effect. I would also like to prevent any…
-
0
votes0
answers917
viewsSign pdf with PHP
I have to digitally sign some documents on PDF. How do I do it in php? What extent the certificate has to be ? I’m having great difficulty finding a solution if you can help thank you.…
php pdf certified mpdf digital-signatureasked 7 years, 3 months ago Maicon Fernando Stefene da Sil 141 -
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,…
-
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 =…
-
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…
-
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…