{"_id":"pdf417-cordova","_rev":"45-19b8bfe1a1e55cdeaea378ed96572e0b","name":"pdf417-cordova","dist-tags":{"latest":"7.0.1"},"versions":{"7.0.0":{"name":"pdf417-cordova","version":"7.0.0","keywords":["pdf417","barcode","usdl","qr code","2d barcode","1d barcode","ecosystem:cordova","cordova-android","cordova-ios"],"author":{"name":"MicroBlink"},"license":"Commercial","_id":"pdf417-cordova@7.0.0","maintainers":[{"name":"microblinkadmin","email":"info@microblink.com"}],"homepage":"https://github.com/PDF417/pdf417-phonegap#readme","bugs":{"url":"https://github.com/PDF417/pdf417-phonegap/issues"},"dist":{"shasum":"25f52ba0fe6e16ae46d5520d4f9817257e1efc4c","tarball":"https://registry.npmjs.org/pdf417-cordova/-/pdf417-cordova-7.0.0.tgz","fileCount":12,"integrity":"sha512-eskSn78fwDs6/5LkRnwF+wRj+tJNbzBIw8YyHVXS3RLARLCl6+pmzDnFAYBWg6YLhHlgBpqToaxueeGpbSXPyw==","signatures":[{"sig":"MEYCIQCBXRkt0XwYTjd1RElgOz2YgNtzkJc9GAQJ3g82Rc1O4wIhAPWrQqAG7pWYbSDcaFXg77uk+ZBXC5jHqEoqafv4bDdA","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":86348},"cordova":{"id":"mobi.pdf417.Pdf417Scanner","platforms":["android","ios"]},"engines":[{"name":"cordova","version":">=7.0.0"},{"name":"cordova-android","version":">=7.0.0"}],"_npmUser":{"name":"microblinkadmin","email":"info@microblink.com"},"deprecated":"Please note that Microblink is no longer maintaining this repository.\nAs such, there will be no additional updates or releases for this codebase. You are welcome to continue using the code, as it remains source available.\nFurthermore, if you need to update it for a newer SDK or platform version, you can do so by forking this repository and maintaining the fork independently.\nIf you have questions regarding such, please contact our support team at support@microblink.com.","repository":{"url":"git+https://github.com/PDF417/pdf417-phonegap.git","type":"git"},"_npmVersion":"5.7.1","description":"A small and powerful PDF417 barcode scanning library","directories":{},"_nodeVersion":"8.9.3","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/pdf417-cordova_7.0.0_1522153967733_0.2280071205673917","host":"s3://npm-registry-packages"}},"7.0.1-0":{"name":"pdf417-cordova","version":"7.0.1-0","keywords":["pdf417","barcode","usdl","qr code","2d barcode","1d barcode","ecosystem:cordova","cordova-android","cordova-ios"],"author":{"name":"MicroBlink"},"license":"Commercial","_id":"pdf417-cordova@7.0.1-0","maintainers":[{"name":"igrce","email":"ivan.grce@microblink.com"},{"name":"jcular","email":"jure.cular@microblink.com"},{"name":"juraskrlec","email":"jura.skrlec@microblink.com"},{"name":"matvidako_micro","email":"matej.vidakovic@microblink.com"},{"name":"microblinkadmin","email":"info@microblink.com"}],"homepage":"https://github.com/PDF417/pdf417-phonegap#readme","bugs":{"url":"https://github.com/PDF417/pdf417-phonegap/issues"},"dist":{"shasum":"1754275712329945bd491ff06924c712d2476f04","tarball":"https://registry.npmjs.org/pdf417-cordova/-/pdf417-cordova-7.0.1-0.tgz","fileCount":13,"integrity":"sha512-nX0FJOuIhhidCkNYrlcOLD7Oe2bM43g7U1fL29iXH70E4OPaVQ69vps6goOdPJNLG7s29KQhyUPVoZCjargL4Q==","signatures":[{"sig":"MEYCIQCs9qGPmtjom9coM7GhG6XDkSJ4XRnwMb4XCUu1Wn8VnQIhALtBS1UfmNZR1edb53xp1QZFHL8XD5kEhe5yrssCquym","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":96446},"cordova":{"id":"mobi.pdf417.Pdf417Scanner","platforms":["android","ios"]},"engines":[{"name":"cordova","version":">=7.0.0"},{"name":"cordova-android","version":">=7.0.0"}],"_npmUser":{"name":"microblinkadmin","email":"info@microblink.com"},"deprecated":"Please note that Microblink is no longer maintaining this repository.\nAs such, there will be no additional updates or releases for this codebase. You are welcome to continue using the code, as it remains source available.\nFurthermore, if you need to update it for a newer SDK or platform version, you can do so by forking this repository and maintaining the fork independently.\nIf you have questions regarding such, please contact our support team at support@microblink.com.","repository":{"url":"git+https://github.com/PDF417/pdf417-phonegap.git","type":"git"},"_npmVersion":"5.7.1","description":"A small and powerful PDF417 barcode scanning library","directories":{},"_nodeVersion":"8.9.3","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/pdf417-cordova_7.0.1-0_1522239191898_0.4687466243189917","host":"s3://npm-registry-packages"}},"7.0.1":{"name":"pdf417-cordova","version":"7.0.1","keywords":["scan","scanner","PDF417","qr code","code39","code128","barcode","microblink","ionic","phonegap","ecosystem:cordova","cordova-android","cordova-ios"],"author":{"name":"MicroBlink"},"license":"Commercial","_id":"pdf417-cordova@7.0.1","maintainers":[{"name":"dbezak","email":"dragan.bezak@gmail.com"},{"name":"dodoent","email":"DoDoEntertainment@gmail.com"},{"name":"igrce","email":"ivan.grce@microblink.com"},{"name":"jcular","email":"jure.cular@microblink.com"},{"name":"juraskrlec","email":"jura.skrlec@microblink.com"},{"name":"matvidako_micro","email":"matej.vidakovic@microblink.com"},{"name":"microblinkadmin","email":"info@microblink.com"},{"name":"stepanic","email":"stepanic@loopus.co"}],"homepage":"https://github.com/PDF417/pdf417-phonegap#readme","bugs":{"url":"https://github.com/PDF417/pdf417-phonegap/issues"},"dist":{"shasum":"9a64281cf5a8add6e1434c7d07e3cfdced6d54c3","tarball":"https://registry.npmjs.org/pdf417-cordova/-/pdf417-cordova-7.0.1.tgz","fileCount":12,"integrity":"sha512-85sU3yld9TwPXiYudQ857tbrFPkEs/81z6hdBEUOnxXepx3zijQG2S/fhq3H80SjzXxvMVBvd9HzsFQUqZnE5g==","signatures":[{"sig":"MEUCIQCv3Id/ja57/OaScX+QIr39JXVzVb2H/kJOvKDEWnjkDAIgKAifphhiFKiHtzZoZVPjkfqFNWi+eAusx99jEwMKgG8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":91132,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb7SSHCRA9TVsSAnZWagAAUjEP/0yO/FYhctNjt9oA/apu\n9/97uEaFisdWD0gAggRj5OdsItOKRdtK/C8c0AUKeH7Cl5gDLxSaixW7Qafw\nhVNAqHqCvJhka398gxEvVGqZ5HjPwkc5yiV6gThq5F8T5eDFeDgh2bNSqG2y\nrgiWiMug19VbymYvJF4kNe9sl0CBpO19HpPVJk6lGObev+NK1Jm2bTGLVtN9\n3D7ZFrOjqKyhSZxbOCUncPUk1dBIoJs0DPD+f6qfNhgJyiOvIojJN7PdNgxz\nzWMh1Q12SXDCcQe2OGYacQldQquYYwoPGctQODPtICTVCvT8BsXQ0C3cFEwI\nxXM/EZdjja9LPXRjG7sFoBrt3uJY2OjkdZuhmaZTU8mgTfKLQ1yNxcZ/6GYF\nzqM6Oa3NRSlltJlYDf2VkOQJxPIaKqQqj4u26mN8u4uT/721C+4YzqIfTgfU\nyKTU8ylmtSt1mW1LPASDnWiAK+3XOgijJS29B/vk8P3NaFuJ7vCkf2COknpj\nhX8gwwmdwrKP0VJrQschsn8yfptXfgKDB3AL5E+/GlOG8ysx825y1+z9FeAC\nEvbqcWL9aok1dVQA3ageheJRheZiqCSb7wEyG0qo+r9gsk9XzqsEMNgICbtr\nmf9LC2cKIsyXLN5sB6Btk2N7Wo/IisI4GDl/HOX/z3rivylHCbc3hF57Gy2g\n7w2D\r\n=TZGs\r\n-----END PGP SIGNATURE-----\r\n"},"cordova":{"id":"pdf417-cordova","platforms":["android","ios"]},"engines":[{"name":"cordova","version":">=7.0.0"},{"name":"cordova-android","version":">=7.0.0"}],"_npmUser":{"name":"jcular","email":"jure.cular@microblink.com"},"deprecated":"Please note that Microblink is no longer maintaining this repository.\nAs such, there will be no additional updates or releases for this codebase. You are welcome to continue using the code, as it remains source available.\nFurthermore, if you need to update it for a newer SDK or platform version, you can do so by forking this repository and maintaining the fork independently.\nIf you have questions regarding such, please contact our support team at support@microblink.com.","repository":{"url":"git+https://github.com/PDF417/pdf417-phonegap.git","type":"git"},"_npmVersion":"6.4.1","description":"A small and powerful PDF417 barcode scanning library","directories":{},"_nodeVersion":"10.8.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/pdf417-cordova_7.0.1_1542268038505_0.8154205144092328","host":"s3://npm-registry-packages"}}},"time":{"created":"2018-03-27T12:32:47.689Z","modified":"2026-09-14T16:20:49.898Z","7.0.0":"2018-03-27T12:32:48.385Z","7.0.1-0":"2018-03-28T12:13:12.193Z","7.0.1":"2018-11-15T07:47:18.621Z"},"bugs":{"url":"https://github.com/PDF417/pdf417-phonegap/issues"},"author":{"name":"MicroBlink"},"license":"Commercial","homepage":"https://github.com/PDF417/pdf417-phonegap#readme","keywords":["scan","scanner","PDF417","qr code","code39","code128","barcode","microblink","ionic","phonegap","ecosystem:cordova","cordova-android","cordova-ios"],"repository":{"url":"git+https://github.com/PDF417/pdf417-phonegap.git","type":"git"},"description":"A small and powerful PDF417 barcode scanning library","maintainers":[{"email":"sandra.zivkovic@microblink.com","name":"szivkovic"},{"email":"ovidiu.cristurean@microblink.com","name":"ovi-cristur"},{"email":"nino.nikola.stanusic@microblink.com","name":"nnstanusic"},{"email":"horia.stere@microblink.com","name":"horia.stere.microblink"},{"email":"nico.moehn@microblink.com","name":"nico-microblink"},{"email":"mario.kresic@microblink.com","name":"mkresic"},{"email":"devops@microblink.com","name":"microblinkbot"},{"email":"info@microblink.com","name":"microblinkadmin"}],"readme":"# PDF417 SDK wrapper for PhoneGap\n\nThis repository contains example wrapper for PDF417 native SDKs ([iOS](https://github.com/PDF417/pdf417-ios) and [Android](https://github.com/PDF417/pdf417-android)). Not all features of native SDKs are available in PhoneGap wrapper. However, the wrapper is open source, so you can easily add features that you need. For 100% of features and maximum control, consider using native SDKs.\n\n## Installation\n\nFirst generate an empty project if needed:\n\n```shell\ncordova create <path> <package> <name>\n```\n\n> The shown instructions are for **Cordova**, the instructions for **PhoneGap** are practically the same, except for some slight command line argument differences.\n\nAdd the **pdf417** plugin to your project:\n\n```shell\ncd <path_to_your_project>\n\ncordova plugin add <pdf417_plugin_path> # or pdf417-cordova if you don't have pdf417-phonegap locally\n```\n\n### Android\n\nAdd Android platform support to the project:\n\n    cordova platform add android\n    \n### iOS\n\nIf you want to add iOS as a platform for your application, you will need to install **unzip** and **wget**.\nCurrently cordova plugin uses a hook script, that runs before adding ios platform, to download pdf417 framework and bundle from github.\n\nAdd iOS plaform support to the project:\n\n```shell\ncordova platform add ios\n```\n\n## Sample\n\nHere's a complete example of how to create and build a project for **Android** and **iOS** using **cordova** (you can substitute equivalent commands for **phonegap**):\n\n```shell\n# pull the plugin and sample application from Github\ngit clone https://github.com/PDF417/pdf417-phonegap.git\n\n# initialize and update submodules\ngit submodule init\ngit submodule update\n\n# create a empty application\ncordova create testcordova\n\ncd testcordova\n\n# add the pdf417 plugin\ncordova plugin add ../pdf417-phonegap/Pdf417\n\n# add android support to the project\ncordova platform add android@7\n\n# build the project, the binary will appear in the bin/ folder\ncordova build android\n\n# add ios support to the project\ncordova platform add ios\n\n# build the project\ncordova build ios\n\n```\n\nIn **phonegap** CLI instead of \"platform add\" just request a build for the platform using \"build android\" or \"build ios\". You will have to do the manual steps described above to be able to do a successfull build.\n\nYou can also use provided `initDemoApp.sh` script that will generate a demo app that uses the plugin:\n\n```shell\n./initDemoApp.sh\n```\n\nTo run the script, you'll need BASH environment on Windows (Linux and MacOS use BASH by default).\n\n\n## Usage\n\nTo use the plugin you call it in your Javascript code like the demo application:\n\n```javascript\n/**\n * Scan these barcode types\n * Available: \"PDF417\", \"USDL\", \"QR Code\", \"Code 128\", \"Code 39\", \"EAN 13\", \"EAN 8\", \"ITF\", \"UPCA\", \"UPCE\", \"Aztec\", \"Data Matrix\"\n */\nvar types = [\"PDF417\", \"QR Code\"];\n\n/**\n * Initiate scan with options\n * NOTE: Some features are unavailable without a license\n * Obtain your key at http://pdf417.mobi\n */\nvar options = {\n    beep : true,  // Beep on\n    noDialog : true, // Skip confirm dialog after scan\n    uncertain : false, //Recommended\n    quietZone : false, //Recommended\n    highRes : false, //Recommended\n    inverseScanning: false,\n    frontFace : false\n};\n\n// Note that each platform requires its own license key\n\n// This license key allows setting overlay views for this application ID: mobi.pdf417.demo\n// Valid until 2018-06-04\nvar licenseiOs = \"sRwAAAEQbW9iaS5wZGY0MTcuZGVtbz/roBZ34ygXMQRMupTjSPXnoj0Mz1jPfk1iRX7f78Ux6a+pfXVyW0HCjPTxl5ocxgXWF66PTrtFUbJFCDUpyznreSWY4akvhvqVFfcTYgVEKjB+UqO6vPD5iIaUCaEYhF4dVmM=\";\n\n// This license is only valid for package name \"mobi.pdf417.demo\"\nvar licenseAndroid = \"sRwAAAAQbW9iaS5wZGY0MTcuZGVtb2uCzTSwE5Pixw1pJL5UEN7nyXbOdXB61Ysy/sgAYt4SaB0T/g6JvisLn6HtB8LzLDmpFjULMxmB8iLsy3tFdHtMhLWOM6pr0tQmSLGyhrXfe6rVoHAxJtPrFEoCNTk4RjLltQ==\";\n\nscanButton.addEventListener('click', function() {\n    cordova.plugins.pdf417Scanner.scan(\n\n        // Register the callback handler\n        function callback(scanningResult) {\n\n            // handle cancelled scanning\n            if (scanningResult.cancelled == true) {\n                resultDiv.innerHTML = \"Cancelled!\";\n                return;\n            }\n\n            // Obtain list of recognizer results\n            var resultList = scanningResult.resultList;\n\n            var resToShow = \"\";\n\n            // Iterate through all results\n            for (var i = 0; i < resultList.length; i++) {\n                // Get individual resilt\n                var recognizerResult = resultList[i];\n                resToShow += \"(Result type: \" + recognizerResult.resultType + \") <br>\"\n                if (recognizerResult.resultType == \"Barcode result\") {\n                    // handle Barcode scanning result\n                    var raw = \"\";\n                    if (typeof(recognizerResult.raw) != \"undefined\" && recognizerResult.raw != null) {\n                        raw = \" (raw: \" + hex2a(recognizerResult.raw) + \")\";\n                    }\n                    resToShow += \"(Barcode type: \" + recognizerResult.type + \")<br>\"\n                                 + \"Data: \" + recognizerResult.data + \"<br>\"\n                                 + raw;\n                } else if (recognizerResult.resultType == \"USDL result\") {\n                    // handle USDL parsing result\n\n                    var fields = recognizerResult.fields;\n\n                    resToShow += /** Personal information */\n                                \"USDL version: \" + fields[kPPStandardVersionNumber] + \"; \" +\n                                \"Family name: \" + fields[kPPCustomerFamilyName] + \"; \" +\n                                \"First name: \" + fields[kPPCustomerFirstName] + \"; \" +\n                                \"Date of birth: \" + fields[kPPDateOfBirth] + \"; \" +\n                                \"Sex: \" + fields[kPPSex] + \"; \" +\n                                \"Eye color: \" + fields[kPPEyeColor] + \"; \" +\n                                \"Height: \" + fields[kPPHeight] + \"; \" +\n                                \"Street: \" + fields[kPPAddressStreet] + \"; \" +\n                                \"City: \" + fields[kPPAddressCity] + \"; \" +\n                                \"Jurisdiction: \" + fields[kPPAddressJurisdictionCode] + \"; \" +\n                                \"Postal code: \" + fields[kPPAddressPostalCode] + \"; \" +\n\n                                /** License information */\n                                \"Issue date: \" + fields[kPPDocumentIssueDate] + \"; \" +\n                                \"Expiration date: \" + fields[kPPDocumentExpirationDate] + \"; \" +\n                                \"Issuer ID: \" + fields[kPPIssuerIdentificationNumber] + \"; \" +\n                                \"Jurisdiction version: \" + fields[kPPJurisdictionVersionNumber] + \"; \" +\n                                \"Vehicle class: \" + fields[kPPJurisdictionVehicleClass] + \"; \" +\n                                \"Restrictions: \" + fields[kPPJurisdictionRestrictionCodes] + \"; \" +\n                                \"Endorsments: \" + fields[kPPJurisdictionEndorsementCodes] + \"; \" +\n                                \"Customer ID: \" + fields[kPPCustomerIdNumber] + \"; \";\n                }\n                resToShow += \"<br><br>\";\n            }\n            resultDiv.innerHTML = resToShow;\n        },\n\n        // Register the error callback\n        function errorHandler(err) {\n            alert('Error: ' + err);\n        },\n\n        types, options, licenseiOs, licenseAndroid\n    );\n});\n\n```\n\n+ Available barcode types for the scanner are:\n    + PDF417\n    + QR Code\n    + Code 128\n    + Code 39\n    + EAN 13\n    + EAN 8\n    + ITF\n    + UPCA\n    + UPCE\n    + Aztec\n    + Data Matrix\n    \n+ Additionally, USDL parsing is available when types array contains \"USDL\" string.\n\n+ The following options are available:\n    + **beep** - *Boolean* - set to true to play beep sound after successful scan\n    + **noDialog** - *Boolean* - set to true to show confirm dialog after successful scan (license required)\n    + **uncertain** - *Boolean* - set to true to scan even barcode not compliant with standards. For example, malformed PDF417 barcodes which were incorrectly encoded. Use only if necessary because it slows down the recognition process\n    + **quietZone** - *Boolean* - set to true to scan barcodes which don't have quiet zone (white area) around it. Use only if necessary because it drastically slows down the recognition process \n    + **highRes** - *Boolean* - set to true if you want to always use highest possible camera resolution (enabled by default for all devices that support at least 720p camera preview frame size)\n    + **inverseScanning** - *Boolean* - set to true if you want to enable scanning of barcodes with inverse intensity values (e.g. white barcode on black background)\n    + **frontFace** - *Boolean* - to use front facing camera. Note that front facing cameras do not have autofocus support, so it will not be possible to scan denser and smaller codes.\n\n\n+ All license parameters must be provided (for **iOS** and **Android**) even if you do not plan to run the application on both platforms. The licenses that you do not have/use must be set to `null`.\n\n+ For obtaining US Driver's license parsing result, see the sample code above, and usdl_keys.js javascript file which contains information about values which you can obtain from scanned USDL. \n\n## How to get started\n\n- [Download](https://github.com/PDF417/pdf417-phonegap/archive/master.zip) PDF417.mobi PhoneGap SDK, and try the sample app for iOS or Android.\n\nSample app is generated with a script\n\n```shell\n./initDemoApp.sh\n```\n\nTo run iOS demo application open Xcode project Pdf417Demo.xcodeproj\n\nTo run Android demo application type\n\n```shell\ncd PDF417Demo\ncordova run android\n```\n- [Generate](https://microblink.com/login?url=/customer/generatedemolicence) a **free demo license key** to start using the SDK in your app (registration required)\n\n- Get information about pricing and licensing od [microblink.com](https://microblink.com/products/pdf417?type=blink_sales#contact-us-form)\n","readmeFilename":"README.md"}