Giter Site home page Giter Site logo

pdf417-js's People

Contributors

bkuzmic avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pdf417-js's Issues

Some string don t work well

Hi,

i don t know if it s because french character, but some string don t work well. You can try this one :

Coronavirus (SARS-CoV-2, COVID-19) : séquençage prioritaire|Humain|19WGS||||||||Bébé|2021-02-08|M|F|F|||||Non disponible||Adaltis inc.|f|||2021-02-09||f|Échantillon clinique|Arthropode|||||| Trousse:je|||||||||W-Mutation N501Y Et/Ou Del69-70 Détectée|||||||

Generate the canvas with the lib and scan it. there is duplication in the end. If i add a space here :

Trousse:je | it works. But i don t understand what is the problem : é ? | ? combination of multiple characters ?

thanks for your help

Duplication

Hello! I am trying to generate barcode for example:

One of fields is dublicated. Can you help me?

Barcode not appearing in PDF

Hi, I noticed that when I transform my html document to PDF, the barcode doesn't appear. Only the barcode value...

Please write a good demo so that we can debug

I am not java guy, but I like to understand your codes in pdf417.js. Could you please write a better demo with textbox and combo so that I can debug into to understand the logic. Thanks.

Composer install fails

composer require bigfish/pdf417 ^1.0.0 fails with error message
The requested package bigfish/pdf417 1.0.0 exists as bigfish/pdf417[0.1.0, 0.1.1, 0.1.2, 0.2.0, 0.3.0, dev-master] but these are rejected by your constraint.
composer require bigfish/pdf417 dev-master works

There is a data corruption when generating a barcode.

Just save the example, and open it in a browser.

<!DOCTYPE html>
<html>
<head>

<script type="text/javascript" src="https://rawgit.com/bkuzmic/pdf417-js/master/bcmath-min.js"></script>
<script type="text/javascript" src="https://rawgit.com/bkuzmic/pdf417-js/master/pdf417-min.js"></script>
<script type="text/javascript" src="https://jqueryjs.googlecode.com/files/jquery-1.3.2.js"></script>

<script>
$(document).ready(function () {
    var errorCorrectionLevel = 0;
    var aspectRatio = 2;
    var blockWidth = 2;
    var blockHeight = 2;
    var rotate = false;
    var color = 'black';

    var code = 'L01658912300000000040596068129571000000000000000000000000000000000000008043118630460154106140451627705400906800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000';

    PDF417.init(code, errorCorrectionLevel, aspectRatio);
    var barcodeArr = PDF417.getBarcodeArray();


    var canvas = document.getElementById('cid');
    if (rotate) {
        canvas.width = blockHeight * barcodeArr['num_rows'];
        canvas.height = blockWidth * barcodeArr['num_cols'];
    } else {
        canvas.width = blockWidth * barcodeArr['num_cols'];
        canvas.height = blockHeight * barcodeArr['num_rows'];
    }

    var ctx = canvas.getContext('2d');
    ctx.fillStyle = color;

    // print blocks
    for (var r = 0, y = 0; r < barcodeArr['num_rows']; r++, y += blockHeight) {
        for (var c = 0, x = 0; c < barcodeArr['num_cols']; c++, x += blockWidth) {
            if (barcodeArr['bcode'][r][c] == 1) {
                if (rotate) {
                    ctx.fillRect(y, x, blockWidth, blockHeight);
                } else {
                    ctx.fillRect(x, y, blockWidth, blockHeight);
                }
            }
        }
    }
});
</script>
</head>
<body>
    <textarea style="width: 100%; height: 150px;">
The generated barcode text should be:

L01658912300000000040596068129571000000000000000000000000000000000000008043118630460154106140451627705400906800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

But it's:
L0165891230000000004059606812957100000000000000000000000000000000000000804311863046015410614045162770540090680000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    </textarea>
    <canvas id='cid'></canvas>
</body>
<html>

Hrvatski dijakritički znakovi ne rade

Hvala na generatoru. :)
Na žalost ne radi kako treba ako ime, naziv ili adresa sadrže Hrvatske dijakritičke znakove. Ima li neki fix kako omogućiti da se generiraju ispravno?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.