Giter VIP home page Giter VIP logo

Comments (6)

casperbakker avatar casperbakker commented on May 24, 2024

I don't know how this is possible in the Code128 spec, because something is or in A-mode, or in B-mode. When you use C-mode, it alters between A-mode and B-mode so it creates the smallest code.

If you mean A+B mode, then you use the C-mode.

from php-barcode-generator.

simondaigre avatar simondaigre commented on May 24, 2024

Hi,
I have a 13 long digits string. I need to encode the 3 first digits in A and the 10 latests in C.
Its weird, but required by French post office. I dont understand why.

from php-barcode-generator.

casperbakker avatar casperbakker commented on May 24, 2024

This library has no support for that kind of requirements. I am sorry.

from php-barcode-generator.

simondaigre avatar simondaigre commented on May 24, 2024

Anyway, I still have an issue..
I'm trying to encode 2K12567898709 in C128, but its unreadable.
Here is what I get with your lib:
capture d ecran 2017-03-11 a 17 36 52

And this one generated with this website works perfect:
http://barcode.tec-it.com/fr/Code128?data=2K12567898709
capture d ecran 2017-03-11 a 17 36 57

Any idea of what I do wrong ?
Thanks

Edit: Seems an issue with $widthFactor, i'm trying to set 1.2, when I dont pass this parameter in getBarcode(), barcode is well too.

from php-barcode-generator.

casperbakker avatar casperbakker commented on May 24, 2024

Could you post the exact code you are using? Then I will create a separate issue for this one.

from php-barcode-generator.

simondaigre avatar simondaigre commented on May 24, 2024

Hi,

// include lib for gencode generation
require_once dirname(__FILE__).'/../librairies/php-barcode-generator/BarcodeGenerator.php';
require_once dirname(__FILE__).'/../librairies/php-barcode-generator/BarcodeGeneratorPNG.php';

$generator = new \Picqer\Barcode\BarcodeGeneratorPNG();
$barcode = $generator->getBarcode('2K12567898709', $generator::TYPE_CODE_128, 1.2)

Then I pass it to a PDF with base64_encode($barcode);

from php-barcode-generator.

Related Issues (20)

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.