public static void Run()
{
try
{
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_ManageAndOptimizeBarcodeRecognition();
string strFileID = "1";
string[] strFileslist = Directory.GetFiles(dataDir + strFileID + "_*.png");
foreach (string strFile in strFileslist)
{
// We got list of all the files, now read barcodes
BarCodeReader reader = new BarCodeReader(strFile, DecodeType.MacroPdf417);
if (reader.Read() == true)
{
Console.WriteLine("File: " + strFile + " == FileID: " + reader.GetMacroPdf417FileID() +
" == SegmentID: " + reader.GetMacroPdf417SegmentID() + " == CodeText: " + reader.GetCodeText());
}
// Close the reader
reader.Close();
}
}
catch (Exception ex)
{
Console.WriteLine(ex.Message + "\nThis example will only work if you apply a valid Aspose BarCode License. You can purchase full license or get 30 day temporary license from http://wwww.aspose.com/purchase/default.aspx.");
}
}
}