pkoretic / pdf417-generator Goto Github PK
View Code? Open in Web Editor NEWPDF417 HUB3 2D barcode generator for browser and Node
Home Page: https://pkoretic.github.io/pdf417-generator
License: MIT License
PDF417 HUB3 2D barcode generator for browser and Node
Home Page: https://pkoretic.github.io/pdf417-generator
License: MIT License
Hi there,
Our app is trying to encode the following delimited string in a barcode using the pdf417 generator and it contains a lot of accents for french words. The issue is that if there is an accent in between two repeated data items.
The generator may potentially be adding extra fields / repeating data when we are decoding it. Please see below examples.
Can you please assist with troubleshooting the issue? We have narrowed it down to when any word with an accent is in the middle of two repeated fields.
Original input string passed to the pdf 417 generator
|anything|É|anything|
Decoding the generated barcode:
|anything||anything|É|anything|
This is breaking our app because the barcodes are giving wrong data / extra data when accents is present.
Attaching the barcode generated
Thank you in advance!
Can you please publish the latest changes?
pdf417-generator/lib/pdf417.js
Line 436 in bf1894d
Hi, I need the fix here, #5
When I do npm install pdf417-generator@latest i get version 1.0.2
Our project is using
"pdf417-generator": "^1.0.2",
And we are facing the bc-multiply error for special chars such as Chloè
Thanks!
Hi @pkoretic in some cases we get an error
bc_multiply is not a function.
stack trace:
ERROR TypeError: r.bc_multiply is not a function
at bcmul (main-es2015.a0fba3d24438133b4d38.js:1)
at Object.getCompaction (main-es2015.a0fba3d24438133b4d38.js:1)
at Object.draw (main-es2015.a0fba3d24438133b4d38.js:1)
Do you have any idea what would cause the problem?
Kind regards,
Ivan
I think this is actually an issue with wkhtmltopdf, but I though you may have advice. The barcode renders fine in a normal browser, but when using wkhtmltopdf it's just blank. Any ideas?
Hi @pkoretic,
library is great, but in our case when it is used with angular application
installed like npm package, and strict mode declared we have problem
with this two variables which are not declared.
sequence = this.getInputSequences(code);
codewords = []; // array of code-words
can you add var statement before them?
Thanks!
Kind regards,
Ivan
I can see the the file locally, so it doesn't make sense to me that it's complaining about not see this file in the path listed: node_modules/pdf417-generator/lib/bcmath.js
.
Can you confirm that this should work?
I'm not sure why these dependencies are not being recognized since they are part of the NPM package itself. I wouldn't think I would need to use CDN references if I have the NPM package installed. Further, the build tool seems to think it should be accessible as well. It might just be how I have the build script set up, but I would like to make sure that my expectations are right.
λ npm run build
> [email protected] build
> snowpack build
[snowpack] ! building source files...
[snowpack] ✔ build complete [0.24s]
[snowpack] ! building dependencies...
[snowpack] Failed to load node_modules/pdf417-generator/lib/bcmath.js
Unexpected token
[snowpack] Install failed.
When I attempt to create a PDF-417 barcode with a string containing more than 2000 characters, I do not receive anything back.
I have also opened an issue for the pdf417.js package.
I want the barcode bigger. Is there any way to setup it's size?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.