This article explains how to detect document File type and calculate pages count when merge PDF, Word(DOC, DOCX), Excel(XLS, XLSX), PowerPoint(PPT, PPTX) Files with GroupDocs.Merger for Node.js via Java.... log ( `Document info file format: ${ documentType . getFileFormat...