Scaffolding for PDF salad
This commit is contained in:
5
projects/pdf-salad/src/Main.kiss
Normal file
5
projects/pdf-salad/src/Main.kiss
Normal 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)))))))
|
Reference in New Issue
Block a user