Hi,
I am getting the error when I try to create the pdf its does not creat the file and give me error "Internet Explorer cannot display the webpage".
Also when I get the phpinfo() The following information I got it.
PDF Support enabled
PDFlib GmbH Version 5.0.3
PECL Version 2.1.4
Revision $Revision: 1.155 $
The code I am using is that
<?php
session_start();
include "connection.php";
$tableRoutine=$tableRoutine=$_SESSION['TableRoutine'];
if ($tableRoutine=="TimeTable") $pdfFile="Time_Table_Report.pdf";
$tableName=$_SESSION['TableName'];
$fields=$_SESSION['TableFields'];
$filter=$_SESSION['TableFilter'];
$result =$dbObject->select_Records_Feilds_Filter($tableName, $fields, $filter);
if (mysql_num_rows($result))
{
list($Id,$classDesc,$myDate,$classCode,$note,$userName)=mysql_fetch_array($result);
$p = new PDFlib();
if ($p->begin_document("", "") == 0) {
die("Error: " . $p->get_errmsg());
}
$p->set_info("Creator", "hello.php");
$p->set_info("Author", "Rainer Schaaf");
$p->set_info("Title", "Hello world (PHP)!");
$p->begin_page_ext(595, 842, "");
$font = $p->load_font("Helvetica-Bold", "winansi", "");
$p->setfont($font, 24.0);
$p->set_text_pos(50, 700);
$p->show("Hello world!");
$p->continue_text("(says PHP)");
$p->end_page_ext("");
$p->end_document("");
}
?>