Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
= pdf417
A wrapper for the pdf417lib C Library, from the README:
A library to generate the 2D barcode PDF417
Project: http://pdf417lib.sourceforge.net/
Creator: Paulo Soares (psoares@consiste.pt)
License: LGPL or MPL 1.1
This library generates a PDF417 image of the barcode in a 1x1 scale.
It requires that the displayed image be as least stretched 3 times
in the vertical direction in relation with the horizontal dimension.
Fetching the codewords only can be handy for using rtex and the pst-barcode package. If you're using prawn or RMagic the to_blob function should help generate a complete barcode.
Much of this was based off of reading through the Nokogiri and RMagic source code. Thanks!
== Usage
There are a few ways to use the library, at its simplest:
PDF417.encode_text("readable barcode data") => [12, 827, 120, 90, 41, 146, 30, 512, 423, 146, 90, 570]
If you want to get the raw barcode data from the PDF417 library:
barcode = PDF417.new("readable barcode data") barcode.to_blob # oops, wrong text barcode.text = "ACTUAL barcode data" barcode.to_blob
If you want to get it as an array of strings (each array element representing a line) barcode.encoding
If you have chunky_png installed and you'd rather have a PNG barcode.to_png
See the RDocs for more information.
== Note on Patches/Pull Requests
== Copyright
Copyright (c) 2011 jamesprior. See LICENSE for details.
FAQs
Unknown package
We found that pdf417 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.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.