Questions tagged [bwip-js]

Refers to the Barcode Writer in Pure JavaScript transpilation of BWIPP. For direct uses of Barcode Writer in Pure PostScript use the "bwipp" instead.

BWIP-JS is an Open Source barcode generator library for JavaScript (browser or Node.js).

https://github.com/metafloor/bwip-js

9 questions
2
votes
2 answers

Parsing FNC1 character with bwip-js gs1datamatrix

What I want is to generate a GS1 datamatrix using the bwip-js API with a FNC1 passed in. I have tried the example provided in their website (Online Barcode API documentation) throught Postman and it returns the correct value back (ie. without the…
Kavo
  • 543
  • 1
  • 6
  • 16
1
vote
0 answers

Issues with bwip-js `toCanvas` method in a React TypeScript application

I'm working with bwip-js in my React TypeScript application and I'm encountering a problem with the toCanvas method. When I try to use it, I receive the error: Property 'toCanvas' does not exist on type 'typeof BwipJs'. Upon inspecting the bwip-js…
JKamsker
  • 304
  • 2
  • 14
1
vote
1 answer

bwip.js: How to use the Group Separator character with GS1-128

There is a service hosted on for generating barcodes metafloor.com using bwip.js I want to generate a barcode for following data (GS character is represent by {GS}). (01)10875066000333(10)1212{GS}(17)121212(30)8{GS} According the documentation I'm…
Lluser
  • 246
  • 1
  • 10
1
vote
1 answer

Is printing a PDF embedded barcode as good in quality as printing plain text ZPL?

My company develop an inventory management web-app and part of the required functionality is to offer users to print barcodes from within the web app without the aid of a 3rd party solutions or a client app that bridges between the web and the zebra…
user1528465
  • 53
  • 1
  • 8
0
votes
0 answers

Sveltekit bwip-js QRCode

Its probably a newbie problem (Not understanding what is difference between, nodejs, browser and react code). I am using bwipjs-js to generate QR code in my sveltekit app. I am using bwipjs (toCanvas(...) method) in my myqr.ts file. It works fine…
Sardar Faisal
  • 594
  • 5
  • 20
0
votes
0 answers

Using global variable from UMD lib in Typescript without script tag

Let me say in advance, I´m not very experienced with the various types of JS modules so please excuse if this is a stupid question... I´m trying to use the UMD library bwip-js in my TypeScript project. The documentation states to use the script tag…
noel
  • 531
  • 2
  • 7
0
votes
1 answer

Having problem in creating a barcode and printing it in PDF using PDFKIT and bwip-js

I am trying to generate a barcode in a PDF with the below code, I've tried everything but it doesn't seems to work. : const PDFDocument = require('pdfkit'); const fs = require('fs'); const bwipjs = require('bwip-js'); // Create…
0
votes
1 answer

How to create a barcode for each items in an array in Node.js?

I'm trying to create a barcode for each item in an array in Node.js but since bwip-js (which is the implementation I'm using as my function is hosted in AWS Lambda) only has an asynchronous method for toBuffer(), I don't know how I can accomplish my…
Gabriel
  • 65
  • 2
  • 9
-1
votes
1 answer

Fs.ensure error no error occurs when trying to generate a barcode for the second time in the same session using bwip-js module

bwipjs.loadFont('Inconsolata', 108, require('fs').readFileSync('node_modules/bwip-js/fonts/Inconsolata.otf',…