Image extraction from pdf (BarCode reader 6.1.2.1)

Questions, comments and suggestions concerning VintaSoft Barcode .NET SDK.

Moderator: Alex

Post Reply
paolozan
Posts: 2
Joined: Tue Jun 22, 2010 10:00 am

Image extraction from pdf (BarCode reader 6.1.2.1)

Post 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;
}
Alex
Site Admin
Posts: 2303
Joined: Thu Jul 10, 2008 2:21 pm

Re: Image extraction from pdf (BarCode reader 6.1.2.1)

Post 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
Post Reply