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 …

PHP Colour Not Being Acknowledged

I am doing some testing with FPDF and running into an issue. When setting a container to pull it’s colour from a pre-defined variable it is not honoring the value and I can’t see why not. Example …

Why FPDF’s useImportedPage doesn’t work for PHP code

I receive the following error when using useImportedPage() for generating labels… ErrorException [ Fatal Error ]: Call to undefined method FPDI::useImportedPage(). But when I comment out $pdf-&…

How to generate a pdf on post saving or updating

I’m trying to create a PDF from post content, including some ACF fields. Currently I’ve got it working on a POST form and dynamically creating a PDF each time, but I’d like to make it generate the PDF …

FPDF – Inline bold text

I am trying to create a PDF from PHP and for legal reason we need to make part of our disclaimer BOLD and the disclaimer needs to be outlined. My current code uses: if(isset($_POST[‘optout’]) &&…

add existing pdfs to fpdf

Is there any function that I could call in order to include an existing pdf in my fpdf file? For example $pdf->AddPage(from file example.pdf); something like that? is it posible?