# Get document information 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 Group......files with GroupDocs.Merger for Java. [**GroupDocs.Merger**](https://products...groupdocs.com/java/merger/com.groupdocs.merger.domain.result/IDocumentInfo#getType())...