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

github.com/blanceleven/barcode_pdf_generator

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/blanceleven/barcode_pdf_generator

  • v0.0.0-20190501171241-108325379694
  • Source
  • Go
  • Socket score

Version published
Created
Source

barcode_pdf_generator

A small library that generates a PDF of barcodes.

Use

Setup of CSV File

The generator requires a csv file that must be formatted according to RFC 4180. To make sure everything works properly be sure:

  • Values are separated by commas.
  • All records end with a CRLF line break.
  • There are no headings on the fields (I hope the change this in the future).

For best results, I recommend using Google Sheets to make csv files. Excel CSVs generate a strange symbol between names. Hopefully I can fix this soon.

Values should be:

  1. Last Name
  2. First Name
  3. Pin or the numeric value of the barcode. If any alphanumeric values are enterred, only numerals will be used.

Generate Barcodes from a CSV File

  1. Use the ReadCsv(filepath) method with the absolute path to the csv file to return an array of Students that will be needed for step 2.

  2. Run GeneratePdf(pdfPath, filename, heading, []Student) using the full destination path, filename, and the []Students from step 1.

FAQs

Package last updated on 01 May 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