Comments (6)
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.
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.
This library has no support for that kind of requirements. I am sorry.
from php-barcode-generator.
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:
And this one generated with this website works perfect:
http://barcode.tec-it.com/fr/Code128?data=2K12567898709
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.
Could you post the exact code you are using? Then I will create a separate issue for this one.
from php-barcode-generator.
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)
- Fatal error: Uncaught Picqer\Barcode\Exceptions\BarcodeException: Neither gd-lib or imagick are installed! in E:\SERVER\htdocs\my_learning\php-barcode-generator-2.2.4\vendor\picqer\php-barcode-generator\src\BarcodeGeneratorPNG.php:22 Stack trace: #0 E:\SERVER\htdocs\my_learning\php-barcode-generator-2.2.4\index.php(7): Picqer\Barcode\BarcodeGeneratorPNG->__construct() #1 {main} thrown in E:\SERVER\htdocs\my_learning\php-barcode-generator-2.2.4\vendor\picqer\php-barcode-generator\src\BarcodeGeneratorPNG.php on line 22 HOT 3
- Inconsistency in $foregroundColor (string and array) HOT 2
- Inline svg HOT 1
- Not compatible with PHP 73 HOT 1
- thrown in /home/devspedi/public_html/wp-content/themes/additrans/lib/php-barcode-generator/src/BarcodeGenerator.php on line 140 HOT 1
- using FORM as array like name='data[]' HOT 1
- Barcode images not showing in Gmail, tried with PNG and HTML as base64 is not supported HOT 1
- TYPE_EAN_13 Error with 13 numbers HOT 2
- Image not showing when used text and number, but also showing number. HOT 5
- Unable to work with php 8.2 and XAMPP on Windows x64 HOT 1
- PHP 8.2: fix E_DEPRECATED warning HOT 1
- Make $widthFactor to be float HOT 4
- Fatal error: Uncaught Error: Call to undefined function Picqer\Barcode\imagejpeg() HOT 3
- Page autosubmit after scan QR code HOT 2
- Barcode content validation question HOT 2
- Barcodes generated using BarcodeGeneratorDynamicHTML() do not render when printed HOT 1
- Feature Request: Add feature to optionally generate barcodes by width (px) not width factor HOT 18
- Cannot use object of type Picqer\\Barcode\\Barcode as array HOT 1
- Code128 donβt work HOT 2
- No dependencies? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-barcode-generator.