Questions tagged as 'mpdf'

1
answer

PHP is not displayed when generating PDF

I am trying to generate a pdf with data collected in a form with PHP. The library that I am using is mPDF <?php $cliente = $_POST['cliente']; $direccion = $_POST['direccion']; $telefono = $_POST['telefono']; require_once(...
asked by 26.09.2018 / 12:36
1
answer

How to change the orientation of the page with the mPDF library?

I have a problem with a pdf generated with the mPDF library, I need to change the orientation of the page from vertical to horizontal ... can someone help me?     
asked by 02.02.2018 / 20:23
1
answer

Determine the destination of a generated PDF

Good community, I ask for your help again, this time it is about the generation of a PDF document with the mPDF library. The query is as follows: How do I determine the destination of my PDF generated? That is, I know that when the...
asked by 27.12.2017 / 23:38
1
answer

Limit of pages in PHP mPDF

Good morning. I am using the mPDF library for PHP, which I am having problems when displaying more than 33 pages, if the information grows to the point of reaching 34 or more pages, it does not show information or errors. I already tried changin...
asked by 13.02.2018 / 01:09
1
answer

Obtain data from different tables in a mysql database

Hello, good evening everyone, I have a problem when making a query on mysql from php. Basically my system will make reports from a database, which is structured like this: Profiles Table +-------------+-------------+------+-----+---------...
asked by 01.09.2017 / 04:02
0
answers

Problems using kartik-mpdf in yii2

I'm using Kartik's mpdf in yii2, but it does not work well for me, since showing the pdf for the first time shows me rare characters like these % PDF-1.4% 3 0 obj < > / Contents 4 0 R > > endobj 4 0 obj < > stream x [...
asked by 05.11.2018 / 22:32
0
answers

mpdf error There was an error loading the PDF document

I'm using mpdf and I have the following problem, using this test code works perfectly for me <?php include_once("mpdf/mpdf.php"); $mpdf = new mPDF('R','A4', 11,'Arial'); $mpdf -> SetTitle('Ejemplo de generación de PDF');...
asked by 06.10.2018 / 01:05
1
answer

How to create an index with php and mpdf

In the following fragment of my code I make a query to a Mysql database and create a pdf page with Fpdf but when I show the index of my file it appears in white.Code: $query = mysqli_prepare($con, "SELECT titulo_editado,texto_editado as conten...
asked by 16.10.2018 / 19:54
0
answers

mpdf library, css style

I have a problem with the mpdf library I want to pass the design of a table to pdf but I think that this library does not support some css properties or html tags, I do not know the truth ... When I create the PDF it shows me the table...
asked by 13.08.2018 / 23:26
0
answers

Mpdf. Foreach does not work, to generate a pdf of a select

I have this code, it works for a record. then I need to do it automatically according to a select response and I put it inside a foreach, now it generates the first pdf, and then it does not get more pdfs. What can I check? This is a php 5.3 and...
asked by 10.08.2018 / 15:02