A few weeks ago, I wrote an article sharing how to read driver’s license information from PDF417 on Android. Comparing to building an Android native camera app, building a web camera app is much easier. In this article, let’s take a glimpse at a JavaScript sample, which is implemented with a few lines of code by invoking Dynamsoft web barcode SDK.
Secure Driver’s Licenses and Identification Cards Data Content and Format as Encoded in Sample PDF417 - 2011 AAMVA Standard, Revision Date: FIELD DATA ELEMENT ID CONTENT Class 6/ANS DCA C Restrictions 12/ANS DCB B. California Driver License's Format (DMV)- Magnetic Stripe Support, time and attendance, labor tracking, data terminals. This PDF417 barcode generator software is a popular and time-tested which can easily & quickly generate a high-quality PDF417 barcode images in Windows 2000, XP, Windows 7 & Vista. Please double click the exe file ' Linear Barcode Generator '. Please close the window or click button ' Exit '. Enter data at Data to Encode.
About Dynamsoft Web Barcode SDK
Installation
The JavaScript barcode library is available for download on npmjs.org.
You can either download the package via
or include the online JS file directly in your HTML file:
Building a Web Barcode Reader in less than 30 Seconds
Dynamsoft JavaScript barcode SDK is based on WebAssembly, which brings the high performance of barcode scanning functionality to web developers. Besides, it provides built-in camera module APIs. With the deeply encapsulated JavaScript SDK, you will find making an HTML5 barcode scanner with cameras can never be such convenient.
To quickly build a web barcode scanner app, copy the following code to your HTML file:
Note: you are authorized to use the SDK for 7-day free trial. To get more trial days, please apply for a 30-day trial license and update the line:
Parsing Driver’s License Information Based on AAMVA Standard
Pdf417 Drivers License Barcode Generator
For better balance the accuracy and performance of decoding PDF417 symbology, you’d better make some parameter configurations according to the online documentation:
The last thing is to create a JavaScript parser for extracting driver’s license information based on the AAMVA standard:
To save time, you can use alert() to show driver’s license information: