GetDocumentInfo
Parser.GetDocumentInfo method
Returns the general information about the document.
public IDocumentInfo GetDocumentInfo()
Return Value
An instance of class that implements IDocumentInfo
interface.
Remarks
Learn more:
Examples
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));
}
See Also
- interface IDocumentInfo
- class Parser
- namespace GroupDocs.Parser
- assembly GroupDocs.Parser