GdPicture.NET Reference Guide
PdfGetModificationDate Method (GdViewer)
Example 





GdPicture14.WPF Namespace > GdViewer Class : PdfGetModificationDate Method
Returns the date and time, when the currently displayed PDF document was most recently modified, as it is set in the document information dictionary. If the document currently displayed in the GdViewer control is not the PDF file, the method will fail.
Syntax
'Declaration
 
Public Function PdfGetModificationDate() As String
public string PdfGetModificationDate()
public function PdfGetModificationDate(): String; 
public function PdfGetModificationDate() : String;
public: string* PdfGetModificationDate(); 
public:
String^ PdfGetModificationDate(); 

Return Value

The value of the document's ModDate property as a string. Please always use the GetStat method to determine if this method has been successful.
Remarks
Please note that this method is only meaningful for PDF documents, otherwise it returns an empty string. We strongly recommend using the GetStat method to identify the specific reason for the method's failure.
Example
How to get the date when the displayed PDF document was last modified.
'We assume that the GdViewer1 control has been properly integrated.
If GdViewer1.DisplayFromFile("") = GdPictureStatus.OK Then
    Dim message As String = "The current file is: " + GdViewer1.GetLastPath()
    If GdViewer1.GetDocumentType() = DocumentType.DocumentTypePDF Then
        message += vbCrLf + "Title: " + GdViewer1.PdfGetTitle() +
                   vbCrLf + "Creation Date: " + GdViewer1.PdfGetCreationDate() +
                   vbCrLf + "Modification Date: " + GdViewer1.PdfGetModificationDate()
    Else
        message += vbCrLf + "This file is not a PDF document, its format is: " + GdViewer1.GetDocumentType().ToString()
    End If
    MessageBox.Show(message, "GdViewer.PdfGetModificationDate")
Else
    MessageBox.Show("The file can't be loaded. Status: " + GdViewer1.GetStat().ToString(), "GdViewer.PdfGetModificationDate")
End If
//We assume that the GdViewer1 control has been properly integrated.
if (GdViewer1.DisplayFromFile("") == GdPictureStatus.OK)
{
    string message = "The current file is: " + GdViewer1.GetLastPath();
    if (GdViewer1.GetDocumentType() == DocumentType.DocumentTypePDF)
    {
        message += "\nTitle: " + GdViewer1.PdfGetTitle() +
                   "\nCreation Date: " + GdViewer1.PdfGetCreationDate() +
                   "\nModification Date: " + GdViewer1.PdfGetModificationDate();                    
    }
    else
    {
        message += "\nThis file is not a PDF document, its format is: " + GdViewer1.GetDocumentType().ToString();
    }
    MessageBox.Show(message, "GdViewer.PdfGetModificationDate");
}
else
    MessageBox.Show("The file can't be loaded. Status: " + GdViewer1.GetStat().ToString(), "GdViewer.PdfGetModificationDate");
See Also

Reference

GdViewer Class
GdViewer Members
GetLastPath Method
GetDocumentType Method
PdfGetAuthor Method
PdfGetCreator Method
PdfGetProducer Method
PdfGetCreationDate Method