barcode

Encode extended ASCII characters in a Code 128 barcode

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-29 15:20:52
I want to encode the string "QuiÑones" in a Code 128 bar code. Is it possible to include extended ASCII characters in the Code 128 encoding? . I did some research on Google which suggested that it is possible by using FNC4, but I didn't find exactly how to do it. It would be of great help if some one could assist me with a solution in the C language. "Extended ASCII" characters with byte values from 128 to 255 can indeed be represented in Code 128 encodation by using the special FNC4 function character. For general use (in open applications) it is necessary that such characters belong to the

Scan barcode into a specific textbox

这一生的挚爱 提交于 2019-11-29 12:51:17
问题 I am working on bar-code scanners. The bar-code scanner that I am using is a plug-n-play type and scans the code automatically wherever you place the cursor. But what i want is that whether i can scan it to a specific text-box on a web page everytime my scanner reads a code For eg, if my form looks like this <input type="text" name="txtItem" id="txtItem" class="m-wrap w-120" tabindex="6"> <input type="text" name="itemId" id="itemId" class="m-wrap w-120" tabindex="6"> <input type="text" name=

ZXing Barcode Scanner Intent: set DecodeHintType.ASSUME_GS1

允我心安 提交于 2019-11-29 11:55:25
In my app I want to scan a GS1-128 barcode, and need the FNC1 characters passed from the ZXing barcode scanner. Right now I just receive the plain text without the FNC1 characters. Is there a way to pass the DecodeHintType.ASSUME_GS1 via Intent to the scanner app? I don't want to include the complete scanner source in my app and rather use the Intent. In the source code of the scanner I can see that the DecodeHintType needs to be set to achive that: https://code.google.com/p/zxing/source/browse/trunk/core/src/main/java/com/google/zxing/oned/Code128Reader.java boolean convertFNC1 = hints !=

How to ask runtime permissions for Camera

此生再无相见时 提交于 2019-11-29 10:53:27
I am doing an application to scan barcodes on a button click and it was working fine up to Lollipop versions. When I came to Marshmallow it stopped working. This is the error: camerabase an error occurred while connecting to camera 0 It forces me to turn on permission by: Settings --> application --> my app --> camera. My question is how to allow camera permission to my app automatically in Marshmallow or by asking the user to turn on camera at runtime. A screen shot: Below I have written a code for granting a runtime permissions for Camera, There is an Array of String in which you can give

Zend Framework Render Barcodes Into PDF Pages

北城余情 提交于 2019-11-29 08:28:22
I'm trying to create PDF pages with barcodes that have correct margins to be printed on sheets of labels (If you have another idea of how to print barcodes onto labels without PDF generation, I'd love to hear it). Below is what I have currently for code: $pdf = new Zend_Pdf(); for($i = 1; $i <= $numberOfPages; $i++) { $page = new Zend_Pdf_Page(Zend_Pdf_Page::SIZE_A4); $page->setFont(Zend_Pdf_Font::fontWithName(Zend_Pdf_Font::FONT_HELVETICA), 20); $pdf->pages[] = $page; } foreach($pdf->pages as $id => $page) { if($equipmentCount > 10) { $barcodesOnThisPage = 10; $equipmentCount =

Reading USB HID barcode scanner input without knowing VID&PID

梦想与她 提交于 2019-11-29 02:16:47
I'm trying to develop device independent library for barcode scanners, it has to be working in windows environment. I've done some research in this field, afaik most of the solutions of this problem are depending on specific device VID&PID (RawInput @ filter by vid&pid string), in my situation this is inacceptable, because i'm trying to develop a device independent solution, which will be working with any USB-barcode scanner. Actually this thing is quite challenging, for me atleast, here are exact requiriments. Also i can't ask user to hot-plug device (in that case i could've just detect

How to read barcodes using Android Phonegap?

梦想的初衷 提交于 2019-11-29 01:33:35
问题 I want to scan barcodes using Android Phonegap. How can I do this ? 回答1: Check out the PhoneGap barcode tutorial here. It will take you step by step to creating a sample app with zxing via the PhoneGap plugin from purplecabbage. 回答2: You would have to build a Phonegap plugin which implements the zxing library. Or use the pre existing BarcodeScanner plugin which is MUCH easier. 来源: https://stackoverflow.com/questions/5840996/how-to-read-barcodes-using-android-phonegap

Is it possible to read/access the bar-code scanner values using PHP & MySQL?

倖福魔咒の 提交于 2019-11-29 00:38:12
I am trying to enable a PHP website to recognize barcode input. I will load a web page in a browser, the focus (cursor) is set to recieve input into the text box. I will be having a barcode reader/scanner plugged into the PC and will scan the barcodes one-by-one using the scanner. Would the information from the barcode can be put into the text box of the web page ? The important question is that how can I read the output from the scanner using PHP ? Please advise. Had a similar problem. Barcode scanners work like keyboards, they just enter a string. The scanners can usually be configured so

Barcode with Text Under using ItextSharp

时光怂恿深爱的人放手 提交于 2019-11-28 23:50:25
I am using iTextSharp in my application to generate a barcode. Though everything is working as I wanted, I need to display the value of the barcode under the barcode like the one showin in the attached image. Below is the C# code I use: Barcode39 barcodeImg = new Barcode39(); barcodeImg.Code = barcodeValue.ToString(); barcodeImg.CreateDrawingImage(System.Drawing.Color.Black, System.Drawing.Color.White).Save(stream, ImageFormat.Png); Prashant This is code I found while searching the net. Hope this solves your problem: string prodCode = context.Request.QueryString.Get("code"); context.Response

Decode South African (ZA) Drivers License

痞子三分冷 提交于 2019-11-28 23:22:33
问题 I am writing a solution to scan PDF417 barcode (http://en.wikipedia.org/wiki/PDF417) at the back of a South African drivers license for iOS. I can't find any documentation or specification how to decode barcode. Does anyone have a link to a specification or sample code that can decode driver license data stored in PDF417 barcode? Thanks 回答1: The data after scanning the PDF417 barcode is 720 bytes. First 4 bytes indicate the version of barcode. Version 2 covers all currently valid licenses.