|
/**********************************************************************
**
** A class to search text in pdf documents.
** Not pretending to be useful other than that.
** But it can easily be extended to a full featured pdf document
** parser by anyone who chooses so.
**
** Author: Rene Kluwen / Chimit Software
**
** License: Public Domain
** Warranty: None
**
***********************************************************************/
class pdf {
// Just one private variable.
// It holds the document.
var $_buffer;
var $_filename;
// Constructor. Takes the pdf document as only parameter
function pdf($file) {
$this->_filename = $file;
if(file_exists($this->_filename)){
$fp = fopen($this->_filename, "r");
$content = fread($fp, filesize($this->_filename));
fclose($fp);
$this->_buffer = $content;
}else{
echo "Error: File not found!";
}
}
// This function returns the next line from the document.
// If a stream follows, it is deflated into readable text.
function nextline() {
$pos = strpos($this->_buffer, "\r");
if ($pos === false) {
return false;
}
$line = substr($this->_buffer, 0, $pos);
$this->_buffer = substr($this->_buffer, $pos + 1);
if (preg_match("/stream/", $line)) {
echo "stream found and counted for...";
$endpos = strpos($this->_buffer, "endstream");
$stream = substr($this->_buffer, 1, $endpos - 1);
$stream = @gzuncompress($stream);
$this->_buffer = $stream . substr($this->_buffer, $endpos + 9);
}
return $line;
}
// This function returns the next line in the document that is printable text.
// We need it so we can search in just that portion.
function textline() {
$line = $this->nextline();
if ($line === false) {
return false;
}
if (preg_match("/[^\\\\]\\((.+)[^\\\\]\\)/", $line, $match)) {
$line = preg_replace("/\\\\(\d+)/e", "chr(0\\1);", $match[1]);
return stripslashes($line);
}
$this->textline();
}
function pdf2text() {
$filecontent = ""; // String datatype container for the found text...
// the file has the extension '.pdf' and needs to be 'txt'...
$filename = ereg_replace("(.*)\.([^\.]*)$", "\\1", $this->_filename).".txt";
while (($line = $this->nextline()) !== false) {
$filecontent .= $line."\n";
}
if ($fp = fopen("$filename", "w+")) {
fputs($fp, $filecontent, strlen($filecontent));
fclose ($fp);
return true;
}
}
// This function returns true or false, indicating whether the document contains
// the text that is passed in $str.
function textfound($str) {
while (($line = $this->textline()) !== false) {
if (preg_match("/$str/i", $line) != 0) {
return true;
}
}
return false;
}
}
?>
Gal�ria |
|
|
JATE Klub
Gal�ri�k: 31 gal�ria tal�lhat� |
2005.04.27 BECHEROWKA PARTY
Kowalsky meg a Vega együttes koncertje
Utána JATE buli Dj.: Egon |
2005.05.05 JUGYUS BULI
Fellép: a tegyükfelhogy együttes
Házigazda: Varga B. László A Kisteremben nosztalgia Molnár Lajossal
Rengeteg ember volt jelen ezen a bulin is ezen jelszoval: ,,Sok jó ember kis helyen is elfér!" | |
2005.05.09 TTK-s EST
Házigazda: DJ. Mátrai Róbert Kisteremben DJ. Marci |
2005.05.26 STUDENT EST – Újdonságok nosztalgiával
DJ.: Varga B. László | |
2005. 06. 01 2005. 06. 01-én Boban Markovic
Orkestar koncert! A koncert utáni napon láthatjátok a bulin készült fotókat! |
2005.09.07 GÁSPÁR LACI és zenekara (élõ koncert) | |
2005.09.10 A Rádió Plusz bemutatja:
Régi idõk bulija
Nagyterem: Rádió Plusz DJ - Bende Gábor |
2005.09.16 SMOKE/BREAK pres, RE/SOUND v.14
Soundhunter (dirtybass)
QLR (breakfast)
Employees (smoke/break)
mc: Rise FM | |
2005.09.21 JOGÁSZ buli
Vendég: KISTEHÉN zenekar
Házigazda: Dj. Alma |
2005.09.23 Breakbeat party FRASER-rel | |
2005.09.24 A Rádió Plusz bemutatja:
Party Plusz Maximus
Nagyterem: Rádió Plusz DJs - Dj Red és Molnár Balázs
Kisterem: Rádió Plusz DJ - Bende Gábor |
2005.09.28 TTK-s est
Vendég: HOOLIGANS együttes
Házigazda: Dj. Alma Kisteremben: Dj. Egon | |
2005.10.05 BELMONDO koncert
Az Õszi Kulturális Fesztivál rendezvénye |
2005.10.26 Neo koncert | |
2005.10.21 Skynet koncert |
2005.11.05 Rádió+ party | |
2005.11.07 BON-BON együttes |
2005.11.11. PARTY CADIK-kal & Mc. ZEEK | |
2005.11.17 JOGÁSZ BULI
Vengéd: BELGA
Házigazda: Dj. Alma |
2005.11.22 LADÁNYBENE 27 koncert, utánna reggae party | |
2005.11.29 Bitangok éjszakája Bitangok éjszakája
Fellép: VELVET STAB (Szeged, Bp) GUILTY PARTYES (R.A.T.M. Tribute by Subscribe)
SUBSCRIBE, NECK SPRAIN |
2005.12.03 Hóhérok éjszakája | |
2005.12.15 Emil Rulez koncert |
Szilveszter 2005 Szilveszter | |
2006.01.13 Dj Palotai a JATE-ban |
2006.01.20 Smokebreak RESOUND v.18 | |
2006.01.25. Independent éj |
2006.02.02 Vizsga idõszak záró buli | |
2006.02.05 Quimby koncert |
2006.02.28 ANATHEMA KONCERT | |
2006.03.15 Blues Fesztivál |
|