Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pdf417-e

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pdf417-e

Barcode generator in PDF417 format.

  • 0.1.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
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

Package last updated on 01 Aug 2018

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc