From: Reini U. <ru...@us...> - 2006-08-25 22:09:04
|
Update of /cvsroot/phpwiki/phpwiki/lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11133 Modified Files: pdf.php Log Message: print pdf header earlier Index: pdf.php =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/lib/pdf.php,v retrieving revision 1.7 retrieving revision 1.8 diff -u -2 -b -p -d -r1.7 -r1.8 --- pdf.php 22 Sep 2004 13:46:26 -0000 1.7 +++ pdf.php 25 Aug 2006 22:09:00 -0000 1.8 @@ -135,4 +135,11 @@ class PDF extends FPDF { } +/* + * main action handler: action=pdf + * TODO: Multiple pages (pages=names), recurse - all forward linked pages (recurse=1) + * TODO: inline cached content: /getimg.php? => image.png + * + * uses either an external exe, or the bad internal php library + */ function ConvertAndDisplayPdf (&$request) { if (empty($request->_is_buffering_output)) @@ -140,5 +147,5 @@ function ConvertAndDisplayPdf (&$request $pagename = $request->getArg('pagename'); $dest = $request->getArg('dest'); - //TODO: inline cached content: /getimg.php? => image.png + Header('Content-Type: application/pdf'); // Disable CACHE @@ -161,5 +168,4 @@ function ConvertAndDisplayPdf (&$request fwrite($fp, $html); fclose($fp); - Header('Content-Type: application/pdf'); passthru(sprintf(USE_EXTERNAL_HTML2PDF, $tmpfile)); unlink($tmpfile); @@ -188,4 +194,7 @@ function ConvertAndDisplayPdf (&$request // $Log$ +// Revision 1.8 2006/08/25 22:09:00 rurban +// print pdf header earlier +// // Revision 1.7 2004/09/22 13:46:26 rurban // centralize upload paths. |