chregu Tue Mar 27 06:35:22 2001 EDT
Modified files:
/php4/pear/Experimental/XML fo2pdf.php
Log:
corrected Usage example
Index: php4/pear/Experimental/XML/fo2pdf.php
diff -u php4/pear/Experimental/XML/fo2pdf.php:1.1
php4/pear/Experimental/XML/fo2pdf.php:1.2
--- php4/pear/Experimental/XML/fo2pdf.php:1.1 Tue Mar 27 01:53:00 2001
+++ php4/pear/Experimental/XML/fo2pdf.php Tue Mar 27 06:35:21 2001
@@ -15,7 +15,7 @@
// | Authors: Christian Stocker <[EMAIL PROTECTED]> |
// +----------------------------------------------------------------------+
//
-// $Id: fo2pdf.php,v 1.1 2001/03/27 09:53:00 chregu Exp $
+// $Id: fo2pdf.php,v 1.2 2001/03/27 14:35:21 chregu Exp $
/**
@@ -46,7 +46,8 @@
* to work together.
* See http://www.phpbuilder.com/columns/marknold20001221.php3 or
* http://www.linuxwebdevnews.com/articles/php-java-xslt.php?pid=347
-* for more details about java and php or ask me, if you're stuck (especially *
with linux. windows is not my area..)
+* for more details about java and php or ask me, if you're stuck
+* (especially with linux. windows is not my area..)
*
* Todo:
* - Errordetection
@@ -56,7 +57,7 @@
* see http://xml.apache.org/fop/embedding.html for details
*
* Usage:
-*
+* require_once("XML/fo2pdf.php");
* //make a pdf from simple.fo and save the pdf in a tmp-folder
* $fop = new xml_fo2pdf("simple.fo");
* //print pdf to the outputbuffer,
@@ -66,26 +67,24 @@
* $fop->delete_pdf();
*
* With Cache:
-*
+* require_once("XML/fo2pdf.php");
* require_once("Cache/Output.php");
* $container = "file";
* $options = array("cache_dir"=>"/tmp/");
* $cache = new Cache_Output("$container",$options);
* $cache_handle = $cache->generateID($REQUEST_URI);
* if ($content = $cache->start($cache_handle)) {
-* $cache->printContentTypeHeader();
+* Header("Content-type: application/pdf");
* print $content;
-* print "<p>Cache hit</p>";
* die();
* }
-* $cache->SetContentType("application/pdf");
* $fop = new xml_fo2pdf("simple.fo");
* $fop->print_pdf();
* $fop->delete_pdf();
* print $cache->end("+30");
*
* @author Christian Stocker <[EMAIL PROTECTED]>
-* @version $Id: fo2pdf.php,v 1.1 2001/03/27 09:53:00 chregu Exp $
+* @version $Id: fo2pdf.php,v 1.2 2001/03/27 14:35:21 chregu Exp $
* @package XML
*/
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]