Use GetDocumentInfo() or the static GetInfo() method to retrieve document metadata without performing a full conversion. This is useful for building file browsers, validation pipelines, and pre-conversion UIs.
usingGroupDocs.Markdown;usingvarconverter=newMarkdownConverter("spreadsheet.xlsx");DocumentInfoinfo=converter.GetDocumentInfo();Console.WriteLine($"Worksheets: {info.PageCount}");Console.WriteLine($"Title: {info.Title}");// Decide based on metadataif(info.PageCount>100){Console.WriteLine("Large document — consider using PageNumbers.");}ConvertResultresult=converter.Convert();Console.WriteLine(result.Content);
DocumentInfo properties
Property
Type
Description
FileFormat
FileFormat
Detected file format (e.g., FileFormat.Docx)
PageCount
int
Number of pages or worksheets
Title
string
Document title from metadata
Author
string
Document author from metadata
IsEncrypted
bool
Whether the document is password-protected
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.