<?php 
/**
* █▒▓▒░ The FlowPaper Project
* 
* Copyright (c) 2009 - 2011 Devaldi Ltd
*
* SWF text extraction for PHP. Executes the specified text extraction 
* executable and returns the output 
*   
* GNU GENERAL PUBLIC LICENSE Version 3 (GPL).
* 
* The GPL requires that you not remove the FlowPaper copyright notices
* from the user interface. 
*  
* Commercial licenses are available. The commercial player version
* does not require any FlowPaper notices or texts and also provides
* some additional features.
* When purchasing a commercial license, its terms substitute this license.
* Please see http://flowpaper.com/ for further details.
* 
*/
require_once("../lib/swfextract_php5.php");
$doc=$_GET["doc"] . ".pdf";
$page=$_GET["page"];
$searchterm=$_GET["searchterm"];

$swfextract=new swfextract();
echo $swfextract->findText($doc,$page,$searchterm);	
?>