Questions tagged as 'mpdf'

1
answer

Form does not point 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 in the end a PDF file is generated for download. All scripts and PDF generation are executed correctly, however, instead...
asked by 28.02.2018 / 15:49
1
answer

Report in mPDF only return a single record when receiving data via POST

I'm trying to generate a PDF with data sent via POST. insert link description here The file os-lista.php is a report that the data changes according to the filter. I am sending this data but only the last record appears.     
asked by 18.11.2016 / 19:38
1
answer

Generating PDF with MPDF from BLOB

Well I need to generate a PDF from a BLOB field saved in the database, my idea is to be able to upload PDF to BLOB so it does not take up disk space and make it easier to transport it. I'm doing the following: include("../pdf/mpdf60/mpdf.ph...
asked by 01.07.2016 / 13:27
1
answer

Problems with php printing with file_get_contents (); - mpdf

I am using mpdf to generate a report, and for this I'm calling another file .php that owns the information, through file_get_contents(); . You are viewing the contents of this file, it just does not read php correctly, as an exam...
asked by 21.01.2016 / 11:49
2
answers

DIV fixed size with CSS (generate PDF with MPDF)

I need a DIV with fixed size in centimeters width:12.5cm; and height:7.5cm; . I can maintain these sizes when loading the view, but when I generate the PDF using PHP's mPDF class, it ignores height and increases it according...
asked by 27.12.2018 / 13:49
0
answers

MPDF Class - Base64 Images

Good afternoon, I'm using an mdpf class to generate the PDF of a file, but when I use a base64 image within a <img> model my image did not appear Function: $date = date("dmYHi"); $mpdf = new mPDF('','A4',0,'',10,5,7,7,6,6,...
asked by 05.12.2018 / 16:57
1
answer

mPdf ignores inline css style

I am generating a report that needs to have margin-left: 20px; But when generating the pdf, it does not respect this value. <span style='margin-left: 20px !important;'>a) Meu texto com margin de 20px</span> . Not e...
asked by 26.10.2018 / 17:27
0
answers

My pdf generates blank when I use MPDF

I have this code where it returns me values from the database, but at the time I click on pdf, it appears the blank PDF, it is saving right but with no content. Here is the code: <?php include('assets/includes/pdf/mpdf.php'); defi...
asked by 11.10.2018 / 20:57
1
answer

Foreach with the mPDF library

Hello! I have a chatinho problem that I can not solve. I need to include a foreach in my report using the mPDF library, however I did not find a way to do this in the middle of the HTML code that I enter. This is my code: public function gerar...
asked by 05.09.2018 / 21:45
1
answer

MPDF class php - How to display images inside Tables

In the code below, I wanted to put an image inside the table displayed in PDF , but the image is not displayed and a box with "X" red appears. How do I put the image "inside" of mysqli_fetch_assoc ? In the current code only the...
asked by 15.08.2018 / 00:16