Socket
Socket
Sign inDemoInstall

pdf417-e

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    pdf417-e

Barcode generator in PDF417 format.


Version published
Weekly downloads
326
decreased by-9.7%
Maintainers
1
Install size
325 kB
Created
Weekly downloads
 

Readme

Source

pdf417

Barcode generator in PDF417 format. It returns a base64 encoded image url. This module is based on https://github.com/bkuzmic/pdf417-js.

screen shot 2017-06-19 at 2 52 59 pm

Install:

npm install --save pdf417

or

yarn add pdf417

Usage:

import generateBarcode from "pdf417";
//...
const Barcode = ({ text, blockWidth, blockHeight }) => {
    <div>
        <img src={generateBarcode(text, blockWidth, blockHeight)} />
    </div>
}

Properties:

Text: Text that you want encode into the barcode. The text is NOT included in the generated barcode image. If you want to see the text below the barcode you will need to add another element by yourself.

blockWidth, blockHeight: Width and height for the basic unit used for drawing the barcode in pixels. These two value will affect barcode's length-to-width ratio, and its size. You can also adjust the barcode size by adding your custom stlyes to the img element.

LICENSE: MIT

Keywords

FAQs

Last updated on 01 Aug 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc