Using gdpicturePDF As New GdPicturePDF()
If gdpicturePDF.LoadFromFile("test.pdf", False) = GdPictureStatus.OK Then
Dim modificationDate As String = gdpicturePDF.GetModificationDate()
Dim status As GdPictureStatus = gdpicturePDF.GetStat()
If status = GdPictureStatus.OK Then
MessageBox.Show("The date and time this PDF was last modified: " + modificationDate, "Example: GetModificationDate")
Else
MessageBox.Show("The GetModificationDate() method has failed with the status: " + status.ToString(), "Example: GetModificationDate")
End If
Else
MessageBox.Show("The file can't be loaded.", "Example: GetModificationDate")
End If
End Using
using (GdPicturePDF gdpicturePDF = new GdPicturePDF())
{
if (gdpicturePDF.LoadFromFile("test.pdf", false) == GdPictureStatus.OK)
{
string modificationDate = gdpicturePDF.GetModificationDate();
GdPictureStatus status = gdpicturePDF.GetStat();
if (status == GdPictureStatus.OK)
{
MessageBox.Show("The date and time this PDF was last modified: " + modificationDate, "Example: GetModificationDate");
}
else
{
MessageBox.Show("The GetModificationDate() method has failed with the status: " + status.ToString(), "Example: GetModificationDate");
}
}
else
{
MessageBox.Show("The file can't be loaded.", "Example: GetModificationDate");
}
}