This article explains how To detect the document file type and calculate the number of pages when converting a file with GroupDocs.Conversion for Java....document information: PDF Documents For PDFs, additional information...Converter ( "sample-with-toc.pdf" )) { PdfDocumentInfo pdfInfo...