Hello,
I am trying to use the FPDF library in order to make a custom export.
I have downloaded the last version of FPDF here : http://www.fpdf.org/
I have uploaded the fpdf.php library file into the scriptcase library in public directory.
I have checked the fpdf.php library file in my blank application in Programming -> Libraries.
Here is my hello world code
$pdf = new FPDF();
$pdf->AddPage();
$pdf->SetFont('Courier','B',16);
$pdf->Cell(40,10,'Hello World !');
$pdf->Output();
When I run it, I have an error saying this:
Error
include(courierb.php): failed to open stream: No such file or directory
include(): Failed opening 'courierb.php' for inclusion (include_path='.:/opt/nm/v6/zend/share/ZendFramework/library:/opt/nm/v6/zend/share/pear')
FPDF error: Could not include font definition file
I have try with different fonts and it is always the same.
There is a font directory provided by FPDF but I can’t upload the directory in scriptcase library. I tried to upload the font file ‘courierb.php’ in the scriptcase library environment but it is the same.
I know that some guys have this working, but I don’t find anything on the forum that is explaining how to set FPDF on a blank app.