Questions tagged as 'mpdf'

0
answers

How to force download of mpdf files using Ajax

I'm trying to download pdf files using the mpdf library. Calling the php page in the browser works fine. Example: require_once 'mpdf/mpdf.php'; $mpdf = new mPDF(); $boleto = '<h3>Boleto</h3>'; $mpdf->WriteHTML($bole...
asked by 20.06.2016 / 22:17
1
answer

blank pdf with mpdf

I have this code where it returns values to me directly from the bank, but at the time I click on pdf, it appears only the company logo. $conteudo_html = ""; if (isset($_POST['pdf'])) { if((isset($_POST["AS_ASS_DATE_ANO1"])) || (isset($_...
asked by 07.12.2016 / 20:17
2
answers

Page number on all pages mpdf

How do I get the page number in the footer to appear on all pages? I have briefly the code below, but the way it is, the page number only appears on the last page, how can I make it appear on all pages? $mpdf = new mPDF( '',...
asked by 25.03.2016 / 03:42
1
answer

How to display tables in pdf with the MPDF library?

I have a html that is automatically generated by a wysiwyg component (a text editor) and inside one of the texts that I generated, it has a table and this table usually appears in html, however I need this table to appear in pdf I'm generating....
asked by 10.02.2016 / 01:58
1
answer

mPDF library error

I'm having problems with the mPDF library, I searched the internet for some tutorials but I did not solve my problem. When I try to access the page from an error:    Error - mPDF requires mb_string functions. Ensure that PHP is compiled wi...
asked by 28.06.2016 / 19:31
1
answer

Right div alignment

I'm not able to align the div's right in my mpdf report. Below is the print of the report and the code. Belowthecode:</head><styletype='text/css'>.dados_principais{border:1pxsolidblack;border-top:1pxsolidblack;border-radius:0.5em...
asked by 08.05.2018 / 14:39
1
answer

Generate background report in php

In the system I am developing, it has come in the most critical part of reporting. I want to generate a report that when prompted by the client, it reports a message saying that as soon as the report is ready an email will be forwarded. I alr...
asked by 08.11.2017 / 13:20
1
answer

HTML + PHP Concatenation

Can anyone give me a light on best practice of concatenation of variable. I'm doing this: $html=" <td> <span class='campotitulo'>"; echo $dadosboleto["codigodebarras"]; $html = $...
asked by 04.09.2017 / 03:16
1
answer

html contains invalid utf-8 character (s) MPDF 6.0

I have blob text in the database with the accent and such .. When I pass it by SE is not put utf-8_encode in the read variable returns this error. I asked the question because I already tested the other answers in the stack and d...
asked by 21.02.2017 / 17:56
1
answer

Header and footer table in mPDF

I am with a pdf generated by mPDF that the table is overlapping my header and the footer. I put the code in the Gits. insert the link description here How to solve this?     
asked by 24.11.2016 / 19:43