MySQL Forums
Forum List  »  Newbie

Re: Converting a MySQL Table to PDF File
Posted by: Barry Galbraith
Date: June 05, 2023 04:11PM

I just downloaded the fpdf zip package.
Unzipped it into its own folder (fpdf/) in my website on localhost.
Inbuilt fonts in the fpdf package are in /fpdf/font/
I built the minimal example with this and saved it as testfpdf.php


$pdf = new FPDF();
$pdf->Cell(40,10,'Hello World!');

I then called the example with http://localhost/testfpdf.php and the "Hello World" example was built and displayed in my browser.
I then modified the last line of the test to
called the testfpdpf.php file again, and the report.pdf file was downloaded.
So, it all works for me.
How did you install fpdf library?

Good luck,

Options: ReplyQuote

Written By
Re: Converting a MySQL Table to PDF File
June 05, 2023 04:11PM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.