Skip to content

Instantly share code, notes, and snippets.

@mattdeboard
Created July 26, 2012 23:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattdeboard/f9cbff8c6cd9eba9aae5 to your computer and use it in GitHub Desktop.
Save mattdeboard/f9cbff8c6cd9eba9aae5 to your computer and use it in GitHub Desktop.
(defn foo []
(let [pages (range 1 4)
stream (new java.io.ByteArrayOutputStream)
doc (new Document)
pdfcopy (new PdfCopy doc stream)]
(with-pdf [d doc]
(.isOpen d))))
(foo)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment