Split documents programmatically in JavaScript using REST API. A wide variety of file formats is supported, including DOCX, PDF, HTML, JPG, PNG and many more....from "fs" ; const wordsApi = new WordsApi ( "####-#### , "#########...true }); const zippedPages = wordsApi. splitDocumentOnline (request)...