EditorGetDocumentInfo Method
Returns metadata about the document, that was loaded to this 'Editor' instance

Namespace: GroupDocs.Editor
Assembly: GroupDocs.Editor (in GroupDocs.Editor.dll) Version:
public IDocumentInfo GetDocumentInfo(
	string password


Type: SystemString
User can specify a password for a document, if this document is encrypted with the password. May be NULL or empty string, that is equivalent to the absent password.

Return Value

Type: IDocumentInfo
Format-specific inheritor of IDocumentInfo interface, that indicates detected format with format-specific metadata, or NULL, if document was not recognized as supportable.
GetDocumentInfo method is useful when it is unclear of which type is the input document, is it password-protected and/or how many pages/worksheets/slides it contains. Based on this metadata, returned by GetDocumentInfo, it is possible to correctly adjust the load and edit options for the main processing pipeline. GetDocumentInfo method always returns full data, it is not affected by the trial mode, its usage doesn't write off consumed bytes or credits. Learn more
See Also