Dim gdpicturePDF As GdPicturePDF = New GdPicturePDF()
If gdpicturePDF.LoadFromFile("D:\\documents\\my_document.pdf", False) = GdPictureStatus.OK Then
'Do your stuff here.
Dim filepath As String = gdpicturePDF.GetInputFilePath()
MessageBox.Show("The input file path is " + filepath, "Example: GetInputFilePath")
Else
MessageBox.Show("The file can't be loaded. Status: " + gdpicturePDF.GetStat().ToString(), "Example: GetInputFilePath")
End If
gdpicturePDF.Dispose()
GdPicturePDF gdpicturePDF = new GdPicturePDF();
if (gdpicturePDF.LoadFromFile("D:\\documents\\my_document.pdf", false) == GdPictureStatus.OK)
{
//Do your stuff here.
string filepath = gdpicturePDF.GetInputFilePath();
MessageBox.Show("The input file path is " + filepath, "Example: GetInputFilePath");
}
else
{
MessageBox.Show("The file can't be loaded. Status: " + gdpicturePDF.GetStat().ToString(), "Example: GetInputFilePath");
}
gdpicturePDF.Dispose();