How to Split Documents into Classified Sub-Documents in Node.js

Batch-scanned documents create headaches in document processing pipelines. How do you cleanly separate a single file containing multiple…