New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

pdf417-barcode

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pdf417-barcode

PDF417 barcode generator Module for Angular

  • 0.4.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
83
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

Angular PDF417 Barcode

An Angular component/module that creates a canvas with a PDF417 barcode from a string input.

Install

Use it in your Angular project by installing with yarn or npm:

yarn add pdf417-barcode

Usage

In a parent or shared module, import the Pdf417BarcodeModule, which imports the Component and Declaration.

[...]
import { Pdf417BarcodeModule } from "pdf417-barcode";

@NgModule({
  ...
  imports: [
    ...
    Pdf417BarcodeModule,
  ],
  ...
})
export class AppModule { }

Then use it in your own component's template:

import { Component } from '@angular/core';

@Component({
  selector: 'app-root',
  template: `
    <div>
      <h5>Scan Me:</h5>
      <pdf417barcode [text]="text" [opts]="{ pxw: 2, pxh: 2 }"></pdf417barcode>
    </div>
  `,
})
export class AppComponent {
  public text = 'Hello, World!';
}

barcode

Options

The component also accepts an opts object with some options:

keytypedefaultdescription
aspectfloat4aspect ratio of the generated barcode
errlvl-1 .. 8-1error correction level in the barcode, -1 means auto
pxwfloat1pixel width
pxhfloat1pixel height

You can use property binding directly like this:

<pdf417barcode [text]="'Hello, World!'" [opts]="{ pxw: 2, pxh: 2 }"></pdf417barcode>

Keywords

FAQs

Package last updated on 09 Apr 2019

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