c# - Reading PDF417 Codes -



c# - Reading PDF417 Codes -

i'm trying create pdf417 reader application. able create pdf417 codes.

this code utilize create pdf417 codes:

using strokescribeclslib; strokescribeclass ss = new strokescribeclass(); ss.alphabet = enumalphabet.pdf417; ss.text = "my text"; ss.pdf417errlevel = 8; ss.pdf417symbolaspectratio = 5; int w = ss.bitmapw; int h = ss.bitmaph; ss.savepicture(@"d:\pdf417.bmp", enumformats.bmp, w, h); if (ss.error != 0) messagebox.show(ss.errordescription, "write error");

when seek read file:

messagebox.show(ss.getpicture(enumformats.gif, w, h).tostring());

it gives me:

system.__comobject

does have thought how can read text in pdf417 code?

if understand correctly, seems you're trying read pdf417 barcode bitmap file, generated strokescribe library. you'll need barcode recognition library that. recommend inlite's clearimage barcode recognition sdk has free dev license.

here's sample code utilize clearimage c#:

using inlite.clearimagenet; ... barcodereader reader = new barcodereader(); reader.pdf417 = true; barcode[] barcodes = reader.read(@"d:\pdf417.bmp"); foreach (barcode barcode in barcodes) {messagebox.show ("text = " + barcode.text);}

disclaimer: i've done work inlite in past.

c# pdf417

Comments

Popular posts from this blog

model view controller - MVC Rails Planning -

ruby on rails - Devise Logout Error in RoR -

html - Submenu setup with jquery and effect 'fold' -