Questions tagged as 'fpdf'

2
answers

Laravel - FPDF error: Undefined font

What I'm doing I'm rewriting a small bar code generation system using Laravel. What went wrong I'm instantiating classes normally, but when I use the $pdf->SetFont('Arial','B',$fontSize); method I get the message FPDF error:...
asked by 18.03.2015 / 18:23
1
answer

Save PDF file in 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 to it? The demand is as follows: I need the email to be automatically attached, without the guy selecting fil...
asked by 15.12.2017 / 14:23
1
answer

How to calculate pixel height with PHP

I have a screen that generates a report with a limit amount of tables that can not be broken. I have to paginate this report. How to calculate the height of the generated pixels?     
asked by 09.08.2017 / 21:28
1
answer

Open () method of undefined FPDF

I'm trying to generate tags with php and FPDF class, but I'm having problem in FPDF's open () method, it returns the following error - Fatal error: Call to undefined method FPDF :: Open () in Follow my PHP code: $a="localhost"; $b="root"; $...
asked by 23.05.2016 / 16:15
2
answers

Line break within a MYSQL query

Hello, can anyone help me with line breaks within a mysql query? The code looks like this: CONCAT('Origem -> ',vEnderecoOrigem,' \r\nDestino ->',vEnderecoDestino) The result: Origem -> Rua Exemplo Origem Destino -> Rua Exem...
asked by 17.05.2018 / 23:01
1
answer

Fpdf PHP page

I'm having trouble paging. I get the data from the report in array format, so I have to do a foreach to scan the data, I happen to be doing it within 2 for, and the data keeps repeating, as I solve it, I tried to use some breaks, but not it w...
asked by 10.08.2017 / 14:36
1
answer

.png image in Jasper report [duplicate]

I'm starting in PHP and to finish my first system I have to do a report, it has some logos and watermarks, I'm using JasperDesigner to generate the XML for the PHPJasperXML lib, but when I generate the report the logos and the watermark only a...
asked by 01.07.2016 / 15:22
1
answer

"network failure" when downloading PDF generated with PHP FPDF class in Google Chrome

I have reports with generated in PHP (version 5.6) / FPDF (version 1.7) that are normally displayed in the browser window. The following simplified example about these reports are generated: <?php // não fazer cache (Recomendação...
asked by 19.08.2016 / 22:00
2
answers

Error generating PDF in CakePHP via FPDF

I am rewriting a legacy system from the company I work in (using CakePHP for this) and it generates some PDF reports using FPDF. However, in CakePHP I can not generate any PDF. Follow the code Action function pdf ($id = null) { App::...
asked by 23.01.2015 / 17:30
1
answer

Page break with fpdf php

I'm generating a report with fpdf using php. I read a csv file and print 3 columns. For each column, I've created a loop that prints the data. That way I have a loop for each column. When I use $pdf->SetAutoPageBreak my code prints one...
asked by 25.07.2018 / 21:54