Get document information

GroupDocs.Merger allows to get document information which includes:

The following code sample demonstrates how to get document information.

const merger = new groupdocs.merger.Merger('c:/sample.vsdx');
const documentInformation = merger.getDocumentInfo();
const documentType = documentInformation.getType();
console.log(`Document info file format: ${documentType.getFileFormat()}`);
console.log(`Document info page count: ${documentInformation.getPageCount()}`);