
Product
Introducing Scala and Kotlin Support in Socket
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
angular2-pdf417-barcode
Advanced tools
PDF417 barcode generator Module for Angular 2
An Angular2 component/module that creates a canvas with a PDF417 barcode from any string input.
This package uses PDF417-js, which is a direct port of parts of the TCPDF PHP library. The original library is licensed under the LGPL, which also applies to this derivative work.
The version used for porting is tcpdf_6_2_11
or more specific PDF417 class version 1.0.005
.
Original port is available on GitHub: [bkuzmic/pdf417-js] [bkuzmic/pdf417-js]: https://github.com/bkuzmic/pdf417-js
This package is for use in the [Angular 2] framework. [Angular 2]: https://angular.io/
In a parent / shared module, import the PDF417BarcodeComponent, either by exporting the Component as a Directive or simply re-export the provided module:
/* angular */
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
/* third-party */
import { PDF417BarcodeModule } from 'pdf417-module';
...
@NgModule({
exports: [
CommonModule,
FormsModule,
PDF417BarcodeModule,
]
}) export class SharedModule { }
Then use it in your component's template:
...
<div class="barcode">
<h5>Scan me:</h5>
<pdf417barcode [text]="'Hello, World!'"></pdf417barcode>
</div>
The component also accepts an opts
object with some options:
aspect: float
aspect ratio of the generated barcodeerrlvl: [-1 .. 8]
error correction level in the barcode, -1
means auto
pxw: float
pixel widthpxh: float
pixel heightThe default options are:
defaults = { aspect: 4, errlvl: -1, pxw: 1, pxh: 1 }
Use property binding like this:
<pdf417barcode [text]="'Hello, World!'" [opts]="{ pxw: 2, pxh: 2 }"></pdf417barcode>
FAQs
PDF417 barcode generator Module for Angular 2
The npm package angular2-pdf417-barcode receives a total of 8 weekly downloads. As such, angular2-pdf417-barcode popularity was classified as not popular.
We found that angular2-pdf417-barcode demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Product
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
Application Security
/Security News
Socket CEO Feross Aboukhadijeh and a16z partner Joel de la Garza discuss vibe coding, AI-driven software development, and how the rise of LLMs, despite their risks, still points toward a more secure and innovative future.
Research
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.