README and notes for pdf-salad

This commit is contained in:
2021-01-11 15:45:49 -07:00
parent 782cdb5c75
commit 5475eafa26
2 changed files with 8 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
# pdf-salad
Throw together PDFs randomly from multiple sources.
TODO upload to npm

View File

@@ -10,6 +10,9 @@
(when paths
(loadAll paths callback pdfs))))
// TODO add sequentialPerPDF argument (which, when used, .shift()s pages from the beginning of PDFs)
// TODO add chunkSize argument (default 1, which specifies how many pages in order to pull from a random PDF. value of -1 means take the whole PDF, and remove it from the list)
// TODO make output page limit optional
(defun main []
(let [[sourceDir numPages] (Sys.args)]
(loadAll (for file (Fs.readdirSync sourceDir) (+ sourceDir "/" file))