Re: Generating PDF files (XSLT, ps, XSL-FO, FOP, etc)

From: Date: Fri, 05 Oct 2007 09:22:32 +0000
Subject: Re: Generating PDF files (XSLT, ps, XSL-FO, FOP, etc)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-262791@lists.php.net to get a copy of this message
Yannick Warnier wrote: > but you can't generate a PDF using XML and XSLT, although XSLT is, to > my understanding, made to enable export in various formats from the > same XML file. XSLT is a style language, and you could quite possibly make it produce a PDF. > It seems that in this case (exporting from XML to PDF), you need to > first convert the XML to a XSL-FO format (using XSLT) and then convert > that XSL-FO format into PDF, and the only way to do that last step at > the moment seems to be to use Apache's FOP project, which requires > Java and a server-side component that you are unlikely to be > authorized to install on a low-cost hosting server. There is more than one way to skin a cat. I generate PDFs in batch using an OpenOffice document template (which is XML anyway), merge that with my XML data using xalanc, and then openoffice to create the PDF. /Per Jessen, Zürich

« previous php.general (#262791) next »