I'm trying to detect a barcode inside a pdf (1.5 version) document.
In the code fragment below, the call GetImageNames give me the exception: "Object is not found" and "Data = {System.Collections.ListDictionaryInternal}".
What's wrong ?
Thank you.
Code: Select all
try
{
Pdf = new Vintasoft.Barcode.PdfImageViewer(NomeFile);
}
catch(Exception Ecc)
{
Errore = Ecc.Message;
Pdf.Dispose();
Pdf = null;
return null;
}
if (Pdf.PageCount == 0)
{
Pdf.Dispose();
Pdf = null;
return null;
}
string [] TmpNomiImmagini;
try
{
TmpNomiImmagini = Pdf.GetImageNames(0);
}
catch(Exception Ecc)
{
Errore = Ecc.Message;
Pdf.Dispose();
Pdf = null;
return null;
}
if (TmpNomiImmagini.Length == 0)
{
Pdf.Dispose();
Pdf = null;
return null;
}