cvs: php4 /pear/Experimental/XML fo2pdf.php

From: Date: Tue, 27 Mar 2001 14:35:22 +0000
Subject: cvs: php4 /pear/Experimental/XML fo2pdf.php
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-4858@lists.php.net to get a copy of this message
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 <chregu@nomad.ch> | // +----------------------------------------------------------------------+ // -// $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 <chregu@nomad.ch> -* @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 */

« previous php.cvs (#4858) next »