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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux