GetDocumentInfo
MarkdownConverter.GetDocumentInfo method
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()
Return Value
A DocumentInfo containing the detected FileFormat, PageCount, Title, Author, and IsEncrypted flag.
Examples
using var converter = new MarkdownConverter("report.docx");
DocumentInfo info = converter.GetDocumentInfo();
Console.WriteLine($"Format: {info.FileFormat}, Pages: {info.PageCount}");
See Also
- class DocumentInfo
- class MarkdownConverter
- namespace GroupDocs.Markdown
- assembly GroupDocs.Markdown