We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9bb320e commit a701152Copy full SHA for a701152
1 file changed
src/clj/catalog/repl.clj
@@ -5,6 +5,8 @@
5
[catalog.layout.text :as layout.text]
6
[catalog.validation :as validation]
7
[catalog.vubis :as vubis]
8
+ [clojure.data.xml :as xml]
9
+ [clojure.java.io :as io]
10
[schema.core :as s]))
11
12
(defn neu-im-sortiment [year issue]
@@ -47,6 +49,13 @@
47
49
vubis/order-and-group
48
50
(layout.fop/generate-document :grossdruck year issue editorial recommendations out))))
51
52
+(defn generate-pdf
53
+ "Generate the pdf `pdf` for a given xsl-fo XML file `fo-file`"
54
+ [fo-file pdf]
55
+ (->
56
+ (xml/parse (io/reader fo-file))
57
+ (layout.fop/generate-pdf! (io/file pdf))))
58
+
59
(defn neu-im-sortiment-text
60
"Generate plain text for the *Neu im Sortiment* catalog for given
61
`year` and `issue`"
0 commit comments