GetDocumentInfo
Leave feedback
On this page
Retrieves metadata about the loaded document without performing a full conversion. Use this to inspect properties such as page count, title, author, and whether the document is encrypted before deciding how to convert.
public DocumentInfo GetDocumentInfo()
A DocumentInfo containing the detected FileFormat, PageCount, Title, Author, and IsEncrypted flag.
using var converter = new MarkdownConverter("report.docx");
DocumentInfo info = converter.GetDocumentInfo();
Console.WriteLine($"Format: {info.FileFormat}, Pages: {info.PageCount}");
- class DocumentInfo
- class MarkdownConverter
- namespace GroupDocs.Markdown
- assembly GroupDocs.Markdown
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.