I'm using the clj-pdf library for Clojure to create pdf that contain charts. I'm making the charts using the Incanter library and converting the images to byte arrays. Then I'm attempting to use clj-pdf to make a pdf that has 4 charts, one in each corner. When I do this I get an error IllegalArgumentException Don't know how to create ISeq from: clojure.lang.Keyword clojure.lang.RT.seqFrom (RT.java:505)
I can successfully add the images outside of a table but the formatting sucks, one image per line. Anyone how to fix this?
Heres the line of code I'm trying:
(pdf [{} [:table {} [:cell [:image {} plot1-bytearr]
[:image {} plot2-bytearr]]]] "test.pdf")
EDIT
Link to trace: http://pastebin.com/b7DEnjXY
Link to workable (hopefully) example: http://pastebin.com/fPvjFFbi