ParserGetDocumentInfo Method
Returns the general information about the document.

Namespace: GroupDocs.Parser
Assembly: GroupDocs.Parser (in GroupDocs.Parser.dll) Version: 20.8.0
Syntax
public IDocumentInfo GetDocumentInfo()

Return Value

Type: IDocumentInfo
An instance of class that implements IDocumentInfo interface.
Remarks
Examples

The following example shows how to get document info:

C#
// Create an instance of Parser class
using(Parser parser = new Parser(filePath))
{
    // Get the document info
    IDocumentInfo info = parser.GetDocumentInfo();

    Console.WriteLine(string.Format("FileType: {0}", info.FileType));
    Console.WriteLine(string.Format("PageCount: {0}", info.PageCount));
    Console.WriteLine(string.Format("Size: {0}", info.Size));
}
See Also