Text fields on PDF being seen as Empty barcodes

Discussions about 1D barcode reading and writing
Post Reply
moakley
Posts: 6
Joined: Wed May 14, 2014 3:34 pm

Text fields on PDF being seen as Empty barcodes

Post by moakley » Tue Mar 03, 2015 6:33 am

Using Code 39 when parsing a PDF with entry fields GdPicture is recognizing those entry fields as empty barcodes.

try
{
if (gdPicturePDF.LoadFromFile(filename, false) == GdPictureStatus.OK)
{
this.pageCount = gdPicturePDF.GetPageCount();
for (int page = 1; page <= this.pageCount; page++)
{
gdPicturePDF.SelectPage(page);

currentPageId = gdPicturePDF.RenderPageToGdPictureImageEx(300.0f, true, System.Drawing.Imaging.PixelFormat.Format1bppIndexed);
gdPictureStatus = gdPictureImaging.Barcode1DReaderDoScan(currentPageId, Barcode1DReaderScanMode.BestQuality,
Barcode1DReaderType.Barcode1DReaderCode39, false, 1);

if (gdPictureStatus == GdPictureStatus.OK)
{
gdPictureImaging.FxBitonalDespeckleMore(currentPageId, true);
int barcodeCount = gdPictureImaging.Barcode1DReaderGetBarcodeCount();

for (int i = 1; i <= barcodeCount; i++)
{
// Add to a barcode collection page and barcode text.
}

gdPictureImaging.Barcode1DReaderClear();
}

gdPictureImaging.ReleaseGdPictureImage(currentPageId);
}
}

gdPicturePDF.CloseDocument();
gdPicturePDF.Dispose();
gdPictureImaging.Dispose();
}

Barcode is on the last page and contains REN-HFA1400570

Cannot attach the PDF since the extension is not allowed.

SamiKharma
Posts: 352
Joined: Tue Sep 27, 2011 11:47 am

Re: Text fields on PDF being seen as Empty barcodes

Post by SamiKharma » Sun Mar 15, 2015 12:29 pm

Hi,

Could you please attack the pdf you are talking about as well as the page.

Best,
Sami

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests