new fo2pdf class

From: Date: Tue, 27 Mar 2001 09:56:56 +0000
Subject: new fo2pdf class
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-112@lists.php.net to get a copy of this message
Hi I will commit in a few minutes a fo2pdf class under Experimental/XML. It's maybe fairly exotic stuff and not many will need it. but nevertheless, it's cool, to be able to generate a pdf from a xml. and surprise surprise, there's documentation in the file. but here is some docu from the introduction: /** * fo to pdf converter. * * with fo (formating objects) it's quite easy to convert xml-documents into * pdf-docs. * * An introduction into formating objects can be found at * http://www.w3.org/TR/xsl/slice6.html#fo-section * * The way to use this class is, produce a fo-file from a xml-file with a * xsl-stylesheet, then feed this class with this fo-file and you get a pdf * back (either directly to the browser for really dynamic-pdf production or * as a file on your filesystem) * * It is recommended to use the Cache-Classes from PEAR, if you want dynamic * pdf production, since the process of making the pdfs takes some time. * * Requirements: * * You need Fop from the xml-apache project (http://xml.apache.org/fop) and * Java (1.1.x or later, i tested it with 1.2.2 from sun on linux, see the * Fop-Docs for details). * Furthermore you have to compile your php with --with-java and to adjust * your php.ini file. It can be a rather painful task to get java and php * 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..) * * Todo: * - Errordetection * - Use embedding instead of org.apache.fop.apps.CommandLine- * this way, we maybe do not have to write temp-files and * we can render other stuff than only pdf (txt,pcl,ps,...) * see http://xml.apache.org/fop/embedding.html for details BTW, just saw, there's an XML/Render.php class. maybe we can integrate the fo2pdf into that... chregu -- nam...christian stocker adr...bremgartnerstr. 66, ch-8003 zurich pho...+41 1 451 6021 www...http://phant.ch/chregu mob...+41 76 561 8860 ema...chregu@phant.ch off...+41 1 240 2304 icq...4196137

« previous php.pear.dev (#112) next »