Scaffolding for PDF salad

This commit is contained in:
2020-12-04 18:19:57 -07:00
parent 3ea6ec7d47
commit e6869bbc8f
9 changed files with 3488 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
(defun main []
(let [bytesIn (Fs.readFileSync "example-input/antique-phone-shop.pdf")]
(.then (PDFDocument.load bytesIn) (lambda [pdfToModify]
(.then (pdfToModify.save) (lambda [bytesOut]
(Fs.writeFileSync "out.pdf" bytesOut)))))))