Get document information

GroupDocs.Merger allows to get document information which includes:

  • Type - indicates document file type, extension, format name etc.
  • PageCount - indicates count of pages for text processing document, worksheets in a spreadsheet or slides in a presentation;
  • Page info - describes properties for each document page. For example, height and width in pixels when document page is previewed as image, page number, visibility etc.

The following code sample demonstrates how to get document information.

using (Merger merger = new Merger(@"c:\sample.vsdx"))
    IDocumentInfo info = merger.GetDocumentInfo();