Skip to content

Tag: fpdf

How to write french in fpdf

i need to write some specific french caracteres like é è ê … etc this is the cell : and this is the output : Is there a solution ? Answer You can use utf8_decode()

FPDF not working in creating a simple pdf

I’m playing with FPDF library and i try this simple code: But it didn’t do anything. No document or exception is popped out. If i correct, if everything is fine a document should appear. I have no idea why it’s not working. Any help would be very appreciated 🙂 Answer Your problem comes from …

Not able to attach the generated PDF in Php using FPDF

I am using FPDF and Phpmailer to generate a PDF file and sending it as an email attachment. My script for PDF generation and phpmailer are working perfectly when I use them as independent scripts. Now, when I combine both scripts to generate and display the PDF form (without saving it to to the filesystem) an…

PHP FPDF changing font size in specific are only

I have set font size for over all pdf to 10, Question is if I want to change the font size for the specific area of pdf without changing the font size over all, can it be done? See below code, I want to change the font size in these area $pdf->SetXY(17, 80) ; Answer Just do it like this:

FPDF setting 2 consecutive values in one cell

I just need to find out how to set 2 values from MySQL database in a FPDF. The values will be consecutive with a ‘dash’ in between them. Here is an example of what I want to do. $pdf->Cell(110, 7,$…

php – fpdf select case $row

I am using FPDF and have the following code: // Data foreach($data as $row) { $this->SetFont(‘Arial’,”,12); $this->Cell($w[0],6,$row[0],”,”,’C’); //Year $this->Cell($w[1],6,$row[1],”,”,…

FPDF: Add Comment at the last page

Currently, I created a system that can generate data from MySQL to pdf. The arrangement of data that display to the pdf is: 1) The first page will display only 1 data rows 2) 2nd Page onwards will …