2 ini_set('include_path', __DIR__ . '/../pear:.');
3 require_once 'File/Convert/AbiToDocx.php';
6 $abiFileName = '/tmp/thumb3.abw';
7 $fn = '/tmp/thumb-3.docx';
8 $conv = new File_Convert_AbiToDocx($abiFileName);
10 //$xml = new XMLReader();
12 // Download the file for testing
14 if (file_exists($fn)) {
15 echo 'Prepare for download!!';
16 header('Content-Description: File Transfer');
17 header('Content-Type: application/octet-stream');
18 header('Content-Disposition: attachment; filename='.basename($fn));
19 header('Content-Transfer-Encoding: binary');
21 header('Cache-Control: must-revalidate');
22 header('Pragma: public');
23 header('Content-Length: ' . filesize($fn));