'Declaration
Public Overloads Shared Function GetDocumentPreview( _ ByVal FilePath As String, _ ByRef DocumentFormat As DocumentFormat, _ ByRef PageCount As Integer _ ) As GdPictureStatus
public static GdPictureStatus GetDocumentPreview( string FilePath, ref DocumentFormat DocumentFormat, ref int PageCount )
public function GetDocumentPreview( FilePath: String; var DocumentFormat: DocumentFormat; var PageCount: Integer ): GdPictureStatus; static;
public static function GetDocumentPreview( FilePath : String, DocumentFormat : DocumentFormat, PageCount : int ) : GdPictureStatus;
public: static GdPictureStatus GetDocumentPreview( string* FilePath, ref DocumentFormat DocumentFormat, ref int PageCount )
public: static GdPictureStatus GetDocumentPreview( String^ FilePath, DocumentFormat% DocumentFormat, int% PageCount )
Parameters
- FilePath
- The full file path of the specified document.
- DocumentFormat
- Output parameter. A member of the DocumentFormat enumeration. The format of the specified document.
- PageCount
- Output parameter. The total number of pages of the specified document.
Return Value
A member of the GdPictureStatus enumeration. If the method has been successfully followed, then the return value is GdPictureStatus.OK.
We strongly recommend always checking this status first.