Text fields on PDF being seen as Empty barcodes
Posted: 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.
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.