EditorGetDocumentInfo Method |
Returns metadata about the document, that was loaded to this 'Editor' instance
Namespace: GroupDocs.EditorAssembly: GroupDocs.Editor (in GroupDocs.Editor.dll) Version: 21.1.1.0
Syntaxpublic IDocumentInfo GetDocumentInfo(
string password
)
Public Function GetDocumentInfo (
password As String
) As IDocumentInfo
public:
IDocumentInfo^ GetDocumentInfo(
String^ password
)
member GetDocumentInfo :
password : string -> IDocumentInfo
Parameters
- 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:
IDocumentInfoFormat-specific inheritor of IDocumentInfo interface, that indicates detected format with format-specific metadata, or NULL,
if document was not recognized as supportable.
RemarksGetDocumentInfo 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