-
-
Save mattdeboard/11b0e9efa44a67db8a0d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn stamp-pdf [output ^PdfReader reader] | |
(let [pages (range 1 (+ (:pagecount (meta my-pdf)) 1))] | |
(with-open [os (clojure.java.io/output-stream 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