Questions tagged as 'mpdf'

1
answer

Include CSS when generating a PDF using PHP's MPDF class

Good morning! I need to generate a report, in that report I have some CSS for better organization. I can generate PDF, however, styles are not loaded next to HTML. I have already tried to put the CSS in separate file, but it did not work eith...
asked by 14.08.2018 / 15:40
2
answers

Separating clients in foreach with mpdf

My scenario is as follows, I generate a pdf file using the mpdf library and this pdf file is an interval query between client code and event date. Eg: code 0001 to 0004 and 0000-00-00 to 0000-00-00. It is generating the pdf with the result perfe...
asked by 15.08.2018 / 18:42
0
answers

Mpdf Ignores CSS

<?php $html ='<!DOCTYPE html> <html> <head> </head> <body>'; require_once 'F:\WEB/htdocs/sp/vendor/autoload.php'; $pdo = new PDO('mysql:host=localhost;dbname=dbsp', 'root', 'admin'); $pdo->se...
asked by 27.07.2018 / 22:09
0
answers

Mpdf addpage one record per page

I need to generate a record per page of a mysql query using the MPDF library in PHP I started to write a code: <?php include("../controlador/mpdf60/mpdf.php"); include_once("../modelo/dao/conexao.php"); //include(MPDP_PATH.'mpdf.php'); $mpd...
asked by 26.07.2018 / 04:33
0
answers

Error when using mpdf

Hello, I installed mpdf via composer on my local site, I used it and it worked perfectly ... I installed it via shell on my hosting, everything normal, but when trying to use it it displays this error:    Fatal error: Uncaught Error: Class 'M...
asked by 15.05.2018 / 20:58
1
answer

How to print bar chart of Google Charts in a PDF generated by mpdf?

I am making a report for a system and I need to print a pdf with the graph I generated and with the table data, but I inserting only the div chart is not generating the image. Can anyone help me? example: <div google-chart chart="c...
asked by 23.03.2018 / 15:50
0
answers

How to export a Google Charts to image chart for me to use in a PDF?

I'm making a report and I want to use a bar chart as part of the report in pdf , and I need the image link to insert an img tag: > JS: //----------------------------------------Gerando Chart de Relatório Bolsa Por Ano $scope.gerarGraf...
asked by 23.03.2018 / 17:53
0
answers

Break page with mPDF when changing ID

I'm trying to make a page break with mPDF and PHP when changing the ID of the registry, my information is in a table, but I do not know how to do it, since my attempts with $mpdf->AddPage(); failed. I would like th...
asked by 20.02.2018 / 15:00
0
answers

replication loop php mysql mpdf

Personal I need to make a repeat loop to generate the contents of the whole bank on different pages using mpdf follows my code: <?php $codigo = $_GET['id']; include("../controlador/mpdf60/mpdf.php"); include_once("../modelo/dao/conexao....
asked by 21.01.2018 / 04:12
0
answers

mPdf - Import another PDF together with your pages

In mPdf I need to know how to do with what the pages of another .PDF file that was imported are inserted into each page respectively. I can currently import, but all content / pages are within one. I want you to break the page. If I import...
asked by 20.01.2018 / 21:07