(as-stream f)
Given a file, returns PDF as stream. Helpful for Ring applications.
Given a file, returns PDF as stream. Helpful for Ring applications.
(gen-pdf html
&
{:keys [path tmp asset-path stylesheets margin orientation page-size
cmd-args http-opts]
:or {path (:path defaults)
tmp (:tmp defaults)
asset-path (:asset-path defaults)
margin {}
orientation (:orientation defaults)
page-size (:page-size defaults)}})
Produces a PDF file given an html string.
Produces a PDF file given an html string.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close