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 Java....includes: for each document page. The following code sample demonstrates...out . print ( info ); Was this page helpful? Not really Yes, thanks...