This article explains how To detect the document file type and calculate the number of pages when converting a file with GroupDocs.Conversion for Node.js via Java.... PDF documents const converter = new...conversion . Converter ( "sample-toc.pdf" ); const pdfInfo = converter...