GdPicture.NET.14
GdPicture14 Namespace / GdPictureDocumentUtilities Class / GetDocumentFormat Method





In This Topic
GetDocumentFormat Method (GdPictureDocumentUtilities)
In This Topic
Determines the format of your document according to the specified parameters.
Overload List
OverloadDescription
Determines the document format in accordance with the specified file path of that document.

Be aware that this method uses the file itself to obtain the known document format either from the file extension or the document content. If the file does not exist on the specified file path, the returned format is unknown.

Please refer to the GetDocumentFormatFromFileName method to obtain the document format based only on the file name.

 
Determines the format of a required document from a previously instantiated Stream object.

The method firstly favors popular formats by their extension. Secondly, it validates the file content to find the proper document format.

 
Determines the format of a required document from a previously instantiated Stream object with the help of the original file name.

The method firstly favors popular formats by their extension. Secondly, it validates the file content to find the proper document format.

 
See Also