Skip to content

Instantly share code, notes, and snippets.

@mattdeboard mattdeboard/render.clj Secret
Created Nov 26, 2012

What would you like to do?
(defn stamp-pdf [output ^PdfReader reader]
(let [pages (range 1 (+ (:pagecount (meta my-pdf)) 1))]
(with-open [os ( output)]
(let [stamper (itext/stamper reader os)]
(doseq [i pages]
(fingerprint stamper i))
(. stamper close)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.