but with no results.
Any suggestions?
Thanks.
class PDF extends FPDF
{
var $Title;
function Header(){
// Logo
$this->Image('images/logo.jpg',0,0, 25, 21.5);
$this->SetFont('Arial','B',8);
$this->SetTextColor(140,140,140);
$this->SetDrawColor(180,180,180);//(45,57,141);
// Title
$this->Cell(20,8,"",0,0);
$this->Cell(150,8,@date("Y,m/d") . " - " . $this->Title,1,0,'C');
$this->Ln(20);
}
...
...
}
My script:
$pdf = new PDF();
$pdf->AddPage();
When I call AddPage(), the function "Header()" is automatically called.
With glassfish / quercus I get this error: "FPDF error: Missing or incorrect image file:". So i've tried with apache web server and it works fine...
The result of phpinfo():
QUERCUS
PHP Version => 5.4.0
System => Linux 2.6.32-31-server amd64
Build Date => 20130905T080412
Configure Command => n/a
Server API => CGI
Virtual Directory Support => disabled
Configuration File (php.ini) Path => /home/dimarklab/glassfish3/glassfish/domains/domain1/applications/dReport/WEB-INF/php.ini
PHP API => 20031224
PHP Extension => 20041030
Debug Build => no
Thread Safety => enabled
Registered PHP Streams => php, file, http, https
I've added this:
<init-param>
<param-name>ini-file</param-name>
<param-value>WEB-INF/php.ini</param-value>
</init-param>
to WEB-INF/web.xml, as shown in the phpinfo() result, and in php.ini I set allow_url_fopen to ON, but it doesn't work!
I'm trying to solve the same thing, unsure if this link will help you? If it does please let me know! http://stackoverflow.com/questions/3177716/fpdf-error-missing-or-incorrect-image-file