Page 1 of 1

Image extraction from pdf (BarCode reader 6.1.2.1)

Posted: Thu Jul 26, 2012 10:28 am
by paolozan
Good day.
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;
}

Re: Image extraction from pdf (BarCode reader 6.1.2.1)

Posted: Thu Jul 26, 2012 2:32 pm
by Alex
Hello,

Could you send us your PDF document for tests?

If yes, please send your file to support@vintasoft.com

Best regards, Alexander