ParserGetDocumentInfo Method |
Namespace: GroupDocs.Parser
The following example shows how to get document info:
// 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)); }