junkcode  Artifact [932673eaa4]

Artifact 932673eaa4187131cbd9223c3ff0208c0589f46fc2cc853e35c1ce61c0332189:

  • File pdf-invoice-extract/src/extract.cljs — part of check-in [0a56934b4d] at 2019-07-24 22:02:54 on branch trunk — Start the PDF invoice extracting thing. (user: jaccarmac size: 319)

(ns extract
  (:require ["pdf.js-extract" :refer (PDFExtract)]
            ["util" :as util]))

(defn main [& cli-args]
  (.extract (new PDFExtract)
            (first cli-args)
            #js{}
            #(if %1
               (js/console.log %1)
               (js/console.log (util/inspect %2 false nil true)))))