(->pdf in out & [options])
Renders HTML to a PDF document.
in - HTML to be rendered, provided as: File or InputStream object for an html file, string containing HTML, or Hiccup-style HTML out - where to save the PDF to: PDF filename, or an OutputStream options - optional map of options to control PDF document styling and other properties
Returns the OutputStream that the PDF was rendered to.
Renders HTML to a PDF document. in - HTML to be rendered, provided as: File or InputStream object for an html file, string containing HTML, or Hiccup-style HTML out - where to save the PDF to: PDF filename, or an OutputStream options - optional map of options to control PDF document styling and other properties Returns the OutputStream that the PDF was rendered to.
(embed-image image)
Reads an image (provided as a filename, InputStream or byte array) and encodes it as a base64 string suitable for use in a data url for displaying inline images in <img> tags or for use in CSS.
Reads an image (provided as a filename, InputStream or byte array) and encodes it as a base64 string suitable for use in a data url for displaying inline images in <img> tags or for use in CSS.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close