The cmp.fop component is a Clojure wrapper for Apache FOP.
It fits nicely with the XSL-FO DSL in xml.dsl.
If you want to generate PDF documents from data in your application, the traditional way of achieving it with XSL-FO is
With the XSL-FO DSL there is no need to convert your data to XML and to apply a XSL transformation. Just use the generated Clojure functions to programm XSL-FO directly with the data in your program.
It is a lot easier, faster and much less memory intensive, to drop XSL transformation step completely. You don't have to convert your data to XML and you don't have to write the transformation to XSL-FO in a foreign language (XSL). It's all done in the Clojure code of your application now.
Example call to generate a PDF document from a static XSL-FO document.
(ns example.fop-test
(:require [org.soulspace.cmp.fop :as fop]))
(fop/fo-to-pdf "example/fo.xml" "target/test.pdf")
© 2011-2023 Ludger Solbach
Can you improve this documentation?Edit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
Ctrl+k | Jump to recent docs |
← | Move to previous article |
→ | Move to next article |
Ctrl+/ | Jump to the search field |