java - Read barcode from PDF file -
java - Read barcode from PDF file -
is there java api around can find bar code within opened file (scanned pdf) , retrieve info bar code? or how should solve problem?
if you're running on windows, clearimage barcode sdk has java api. can read , decode barcodes pdfs or images , provide decoded info you.
some sample code:
public static void testdatamatrix () { seek { string filename = "1.png "; ciserver objci = new ciserver(); ci = objci.geticiserver(); icidatamatrix reader = ci.createdatamatrix(); // read datamatrix barcode reader.getimage().open(filename, 1); int n = reader.find(0); // find barcodes in doc (i = 1; <= n; i++) { icibarcode bc = reader.getbarcodes().getitem(i); // getitem 1-based system.out.println("barcode " + + " has text: " + bc.gettext()); } } grab (exception ex) {system.out.println(ex.getmessage());} }
another 1 consider accusoft's barcode xpress has java api.
disclaimer: i've done work inlite in past.
java barcode
Comments
Post a Comment