klep / scanline

Command line scanning utility for OSX
MIT License
129 stars 23 forks source link

Save individual pages in separate documents #26

Open pixiono opened 5 years ago

pixiono commented 5 years ago

Currently I only get one .pdf document with ALL pages. Is it possible to add an option to save the pages individually? According to the log, the individual pages are even cached, so why shouldn't they be stored individually?

Starting scan... didScanTo file:///var/folders/ql/2mz4m8qs4pd3gqfnlr_hjh3h0000gn/T/Scan%2016.jpeg didScanTo file:///var/folders/ql/2mz4m8qs4pd3gqfnlr_hjh3h0000gn/T/Scan%2017.jpeg didCompleteScanWithError [no error] Output path: /Users/xyz/Documents/Archive About to copy file:///var/folders/ql/2mz4m8qs4pd3gqfnlr_hjh3h0000gn/T//scan.pdf to /Users/xyz/Documents/Archive/scan_202204.pdf Done

klep commented 5 years ago

The -jpg option should do what you're asking for. Although if you wanted individual PDFs, that's a feature you'd have to add yourself. Maybe a -individual option that could apply to both?