Hi,
I had the same stuff as yours.
First I converted that pdf file into html file using a third party tool( I downloaded .pdf2html).once again I converted that html file into text file(i.e Tab Del)which is of tab delimited & contains the fields that are going to stored in Table.
Here is code which I wrote for this stuff..
<?php
if(!$userfile && !$submit)
{
print "<TABLE>
<TH>PPC File Upload</TH>
<TR>
<TD>Select PDF File</TD>
</TR>
<TR><TD>
<FORM enctype=multipart/form-data action=\"$PHP_SELF \" method=\"post\">
<INPUT type=file name=userfile>
<INPUT type=hidden name=MAX_FILE_SIZE value=125000><BR>
</TD>
</TR>
<TR>
<TD>
<INPUT TYPE=\"SUBMIT\" NAME=\"submit\" VALUE=\"SUBMIT\"></TD>
</FORM>
</TR>
</TABLE>";
}
//submiting data
if($submit)
{
$command="c:/PDFTOHTML/pdftohtml $userfile c:/HTML-TEXT/one.html";
passthru($command);
$Datafile="c:/HTML-TEXT/ones.html";
$command1="c:/TEXT-MYSQL/ext $Datafile";
passthru($command1);
sleep(3);
$Myquery= "LOAD DATA infile 'c:/progra~1/apache~1/apache/htdocs/jobtracking/data.txt' INTO TABLE ppc_report FIELDS TERMINATED BY '\t' IGNORE 1 LINES";
$Myquery = stripSlashes($Myquery) ;
$Myquery=trim($Myquery);
if(!mysql_query($Myquery))
die("Sorry");
}
?>
-Shastry